I am converting sam to bam using 'samtools import' command.
I am curious why if I do 'samtools' I can not see the 'import' command?
Program: samtools (Tools for alignments in the SAM format) Version: 0.1.13 (r926:134)
Usage: samtools <command/> [options]
Command: view SAM<->BAM conversion sort sort alignment file pileup generate pileup output mpileup multi-way pileup faidx index/extract FASTA tview text alignment viewer index index alignment idxstats BAM index stats (r595 or later) fixmate fix mate information glfview print GLFv3 file flagstat simple stats calmd recalculate MD/NM tags and '=' bases merge merge sorted alignments rmdup remove PCR duplicates reheader replace BAM header targetcut cut fosmid regions (for fosmid pool only) phase phase heterozygotes
If I do samtools import
it says:
$ samtools import Usage: bamtk import <in.ref_list> <in.sam> <out.bam>
I find out the samtools import
time ago by chance in a blog (unable to find it in any samtools doc [is it there? where?]), until then I was doing it with a less concise command:
samtools view -bt ref.fa.fai aln.sam > aln.bam
Why is import
command not documented in the samtools help? Why samtools import usage talk about bamtk?
I believe import was deprecated over a year ago in favor of view.
@aaronQuinlan, I compiled samtools manually and didn't put the manpages. Looking to a man pae over internet: COMMANDS AND OPTIONS import samtools import [?] [?] [?]
http://www.genome.iastate.edu/bioinfo/resources/manuals/rna_bowtie.samtools.txt (2009)