Is this historical contingency? Or is there a functional reason why mapping programs like BWA or Stampy don't map directly to BAM?
Unconfigured Ad
Collapse
X
-
But assuming it was trivial, is there a good reason to output to SAM. Seems like all downstream operations would be BAM-based anyways?
Comment
-
When mapping sequences each sequence is handled independently and the mapping program just wants to write this to the output file and move on (even more so when running multiple threads).
Many people who want to use BAM files want to have indexed files which allow for efficient random access. Because the files need to be sorted the output needs to be post-processed after all of the mapping is done, you can't just write them out as you go along. Mapping programs would therefore still have to write out SAM files as they went along and then convert these to BAM at the end. Since you can easily do this with a samtools command the mapping programs generally don't bother to do this and leave it up to the user.
Comment
-
Indeed. Or to put it another way,
Output of unsorted SAM is easy.
Output of pre-sorted SAM/BAM is hard.
Since you (or the tool) will have to do a SAM/BAM coordinate sorting step anyway, you might as well do the unsorted SAM to sorted BAM in one go with samtools.
Comment
Latest Articles
Collapse
-
by SEQadmin2
When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...-
Channel: Articles
11-24-2026, 07:04 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Yesterday, 11:10 AM
|
0 responses
11 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 11:10 AM
|
||
|
Single-Nucleus Sequencing Links Type 2 Diabetes Risk Variants to Specific Muscle Cell Types
by SEQadmin2
Started by SEQadmin2, 12-01-2026, 11:06 AM
|
0 responses
21 views
0 reactions
|
Last Post
by SEQadmin2
12-01-2026, 11:06 AM
|
||
|
Started by SEQadmin2, 11-23-2026, 11:11 AM
|
0 responses
58 views
0 reactions
|
Last Post
by SEQadmin2
11-23-2026, 11:11 AM
|
||
|
Started by SEQadmin2, 11-17-2026, 06:27 AM
|
0 responses
55 views
0 reactions
|
Last Post
by SEQadmin2
11-17-2026, 06:27 AM
|
Comment