This is a test version of Biostars. For the public version, visit https://www.biostars.org.
error of samtools sort

I got no outputs from samtools sort.

$bowtie2 -x genome nophiX.fastq -S nophiX.sam

$samtools view -bS nophiX.sam > nophiX.bam

$samtools sort nophiX.bam nophiX.sorted

[bam_sort] Use -T PREFIX / -o FILE to specify temporary and final output files

Usage: samtools sort [options...] [in.bam]

No outputs..

Some suggestions?

Thanks...

rna-seq

2 answers

Current samtools (v.1.3) has a slightly different syntax.

$ samtools sort -o nophiX.sorted.bam nophiX.bam

In the instructions it tells you to provide an output file:

  -o output.bam

However, I alternatively you can also use redirection arrows such as:

samtools sort accepted_hits.bam > acc_sort.bam

Log in to answer this question.