Description
Append the minimap2's CS tag to SAM file.
If the CS tag is already present, this command will overwrite the existing tag.
:warning: This tool will be maintained until the samtools team implements official CS caller.
Installation
You can install calcs using pip:
pip install calcs
Usage
calcs [options] <in.sam> -r/--reference <in.fasta>
Getting Started
# CS tag (short form)
calcs aln.sam -r ref.fasta > aln_cs.sam
# CS tag (long form)
calcs aln.sam -r ref.fasta -l > aln_cslong.sam
# PAF format with CS tag (short form)
calcs aln.sam -r ref.fasta -p > aln_cs.paf
# PAF format with CS tag (long form)
calcs aln.sam -r ref.fasta -p -l > aln_cslong.paf
# Multithreading
calcs aln.sam -r ref.fasta -t 4 > aln_cs.sam
Options
-l, --long: output the cs tag in the long form
-t, --threads INT: number of threads to use (default: 1)
Examples
calcs examples/example.sam -r examples/ref.fa > example_cs.sam
If the input file is a BAM/CRAN format, you can use samtools view.
samtools view examples/example.bam |
calcs -l -r examples/ref.fa |
samtools sort > example_cslong.bam
paftools.js sam2paf vs calcs
| sam2paf | calcs | |
|---|---|---|
| Speed | + | - |
| Report substitution | + (if SAM includes MD tag) | + |
| Report CS tag | + (if SAM includes MD tag) | + |
| Output format | PAF | SAM or PAF |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calcs-0.0.0.9999.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calcs-0.0.0.9999.tar.gz.
File metadata
- Download URL: calcs-0.0.0.9999.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cb00162204b1e05e3ab4c400c8bd6b7793b24834f18badc5396b119440689b3
|
|
| MD5 |
056ba2f7882950a71a35dcd27c0206ef
|
|
| BLAKE2b-256 |
f4bbc6329f9ecd0125c11fdbbd71dd3ecd08feefe3a96ed8031cd624e56d7297
|
File details
Details for the file calcs-0.0.0.9999-py3-none-any.whl.
File metadata
- Download URL: calcs-0.0.0.9999-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67942a66fa1680a91158d6c7db9695755a7567cf9629fc4b6338722c1ad1c82a
|
|
| MD5 |
cd2ff7a290dd8d9b1bf85f15b3fb6ce5
|
|
| BLAKE2b-256 |
0fa8dce6ad480566a0408912847c0c0b92b6504408fc2444819fd9f67ceee6ce
|