error of samtools sort
2
0
Entering edit mode
8.7 years ago
jolin0701-dy ▴ 100

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 • 5.1k views
ADD COMMENT
2
Entering edit mode
8.7 years ago
GenoMax 147k

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

$ samtools sort -o nophiX.sorted.bam nophiX.bam
ADD COMMENT
0
Entering edit mode
8.7 years ago
Daniel ★ 4.0k

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
ADD COMMENT

Login before adding your answer.

Traffic: 2681 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6