call CS tag to SAM file
Project description
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 |
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for calcs-0.0.0.9999-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67942a66fa1680a91158d6c7db9695755a7567cf9629fc4b6338722c1ad1c82a |
|
MD5 | cd2ff7a290dd8d9b1bf85f15b3fb6ce5 |
|
BLAKE2b-256 | 0fa8dce6ad480566a0408912847c0c0b92b6504408fc2444819fd9f67ceee6ce |