Skip to main content

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.11 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.11 cstag-cli -y
conda activate env-cstag

Using PyPI:

pip install cstag-cli

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

Development

python -m pip install -e . --group dev
ruff format --check .
ruff check .
mypy
python -m pytest tests -W error
sh tests/append/tests.sh
sh tests/test_version.sh
python -m build

💡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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cstag_cli-1.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cstag_cli-1.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file cstag_cli-1.0.1.tar.gz.

File metadata

  • Download URL: cstag_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cstag_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 48aeaa28e5f90141ee8edd8ebc3673697526fed6da3af593cf753454e4f1ab0c
MD5 192823c3248cc570bda834460994a6a1
BLAKE2b-256 2276fbe06db863923081434e6d3f797d50bc746ab8375c81460bd20e43ee1028

See more details on using hashes here.

File details

Details for the file cstag_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cstag_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cstag_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 863fd16c97ea8807ab86d282ea43b3da2f7456045384b1dc025d551f25d28b43
MD5 b3df13c8e7f3827b63fd41e81980760b
BLAKE2b-256 eb9780634084e9d579705cbdcde3a370d0d6cd2d3624766064f060f5dccb9137

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page