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...
• 5,541 views
•
link
2 answers
Current samtools (v.1.3) has a slightly different syntax.
$ samtools sort -o nophiX.sorted.bam nophiX.bam
• 1 views
•
link
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
• 1 views
•
link
Log in to answer this question.