Look into freebayes. There is samtools/bcftools based option as well.
Unconfigured Ad
Collapse
X
-
sorted bam and bbmap
Is there an option for bbmap that will result in a sorted bam? I know adding "out=mapped.bam" this will produce a bam but it appears to be unsorted:
Thank youCode:samtools view -H /home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam @HD VN:1.4 SO:unsorted
.
Comment
-
Of course, I do my best to prevent needing people to do work, so...Originally posted by GenoMax View PostNo. You have to do some work
Code:$ samtools sort your_file.bam your_file_sorted
That will write a script "bs.sh" that contains the command to make a sorted, indexed bam file, then execute it after BBMap is done. It saves... well, at least a couple of keystrokesCode:bbmap.sh in=reads.fq out=mapped.bam bs=bs.sh; sh bs.sh
Comment
-
Unfortunately, not easily, due to memory constraints. BBMap's shell script already grabs all available memory by default. It can launch a samtools process for conversion to bam, which is a low-memory streaming process; but sorting uses a lot of memory (to do it most efficiently), so it might run out of memory. Java cannot reduce its virtual memory allocation after starting, and won't share that memory with other programs.Originally posted by westerman View PostCouldn't you create the shell script and then execute it within BBMap?
It would work fine on most individual computers since physical memory limits would never be exceeded, but job schedulers often have strict limits on virtual memory and will kill jobs that exceed it. So, it would reduce stability (and typically fail) on clusters unless I did parsing in the shellscript to launch a new process after BBMap terminates, or the user launched BBMap with a custom -Xmx flag. I try to keep the shellscripts as simple as possible. Anyway, there are workarounds, but they all add complexity due to memory issues.
Comment
Latest Articles
Collapse
-
by SEQadmin2
The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.
This convergence of genetics, immunology, and computation...-
Channel: Articles
09-01-2026, 05:41 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 09-03-2026, 10:22 AM
|
0 responses
17 views
0 reactions
|
Last Post
by SEQadmin2
09-03-2026, 10:22 AM
|
||
|
Started by SEQadmin2, 09-02-2026, 12:32 PM
|
0 responses
19 views
0 reactions
|
Last Post
by SEQadmin2
09-02-2026, 12:32 PM
|
||
|
Started by SEQadmin2, 08-24-2026, 10:32 AM
|
0 responses
51 views
0 reactions
|
Last Post
by SEQadmin2
08-24-2026, 10:32 AM
|
||
|
Started by SEQadmin2, 08-20-2026, 11:17 AM
|
0 responses
51 views
0 reactions
|
Last Post
by SEQadmin2
08-20-2026, 11:17 AM
|
Comment