目录

Licence Test Python PyPI Bioconda JOSS DOI

cstag-cli

cstag-cli is a command-line tool of cstag for manipulating minimap2’s cs tags.

🌟Features

  • cstag append: Appends cs tags to a SAM/BAM file

🛠 Installation

Prerequisites

  • Python 3.7 or later
  • Unix-like environment (Linux, macOS, WSL, etc.)

Installation

Using Bioconda (Recommended):

conda create -n env-cstag -c conda-forge -c bioconda python=3.10 cstag-cli -y
conda activate env-cstag

[!NOTE] To Apple Silicon (ARM64) users:
Since the Bioconda channel does not yet support Apple Silicon, please use the following command to install cstag-cli through Rosetta.

CONDA_SUBDIR=osx-64 conda create -n env-cstag -c conda-forge -c bioconda python=3.10 cstag-cli -y
conda activate env-cstag
conda config --env --set subdir osx-64

Using PyPI:

pip install cstag-cli

[!CAUTION] If you encounter any issues during the installation, please refer to the Troubleshooting Guide

💡Usage

Appending cs tags to a SAM/BAM File

cstag append <file> [-l/--long]
  • <file>: Path to the SAM/BAM file. If omitted, the program reads from standard input.

[!IMPORTANT] The SAM/BAM file must contain an MD tag.
if the SAM/BAM files do not have MD tags, use samtools calmd.

  • -l/–long: Generates cs tags in long format

Examples

  • Appending cs tags in short format:

    cstag append tests/append/data/example.bam > example_cs_short.sam
  • Appending cs tags in long format:

    cstag append tests/append/data/example.bam --long > example_cs_long.sam
  • Reading data from standard input:

cat tests/append/data/example.bam | cstag append > example_cs_short.sam

📣Feedback and Support

For questions, bug reports, or other forms of feedback, we’d love to hear from you!
Please use GitHub Issues for all reporting purposes.

Please refer to CONTRIBUTING for how to contribute and how to verify your contributions.

🤝 Code of Conduct

Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.

📄 Citation

关于

用于生成C/C++代码的标签文件,以支持代码导航和自动补全

330.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号