Sorting bam file
How can I sort my bam file according to read headers. Kindly Reply soon.
How can I sort my bam file according to read headers. Kindly Reply soon.
You are currently viewing the SEQanswers forums as a guest, which limits your access. Click here to register now, and join the discussion
samtools sort -n <infile.bam> <out.prefix>
bowtie2 <options> | samtools view -S -b - | samtools sort - output.sorted
samtools index <(samtools view -h ../out.aaa.bam | samtools view -Shu - | samtools sort -T . -O bam -o - | tee out.bam) out.bam.bai
Samtools-htslib-API: bam_index_build2() not yet implemented Aborted
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 07-24-2026, 12:17 PM
|
0 responses
29 views
0 reactions
|
Last Post
by SEQadmin2
07-24-2026, 12:17 PM
|
||
|
Started by SEQadmin2, 07-23-2026, 11:41 AM
|
0 responses
21 views
0 reactions
|
Last Post
by SEQadmin2
07-23-2026, 11:41 AM
|
||
|
Started by SEQadmin2, 07-20-2026, 11:10 AM
|
0 responses
212 views
0 reactions
|
Last Post
by SEQadmin2
07-20-2026, 11:10 AM
|
||
|
Started by SEQadmin2, 07-13-2026, 10:26 AM
|
0 responses
78 views
0 reactions
|
Last Post
by SEQadmin2
07-13-2026, 10:26 AM
|
Comment