BAM_RMDUP_COLLAPSED(1)
π BAM_RMDUP_COLLAPSED π
okay bestie, welcome to the bam_rmdup_collapsed page from the User Commands section of the manual β she's a whole vibe and she's here to clean up your BAM file β¨
πΈ NAME πΈ
bam_rmdup_collapsed β filter BAM file for PCR duplicates π
π SYNOPSIS π
paleomix rmdup_collapsed [options] < sorted.bam > out.bam
likeβ¦ that's it. that's the whole summoning ritual πͺ
π¦ DESCRIPTION π¦
okay so here's the tea β: rmdup_collapsed filters a BAM file for PCR duplicates in unpaired reads, and it does this under one very specific assumption β that any unpaired read was generated by the merging of overlapping paired-end reads, and therefore represents the complete template sequence. no cap, that's the whole premise. π§
so because of that, PCR duplicates get detected based on both the 5' and 3' alignment coordinate. both ends. she's thorough like that. π
and listen β some reads just do NOT get filtered, they get a free pass and are simply written straight to the output. who are these VIPs? ποΈ
- Paired reads (
0x1) - unmapped reads (
0x4) - secondary alignments (
0x100) - reads that failed QC (
0x200) - chimeric alignments (
0x800)
all identified using the BAM record flags. they're not filtered, bestie, they just vibe through to the output. π«
by default, the reads that do get filtered are flagged using the "duplicate" flag (0x400) and written to the output. but if you want them GONE gone? use the --remove-duplicates command-line option and those records get yeeted from the output entirely. ποΈβ¨
this program is part of the paleomix(1) suite π«Ά
β¨ OPTIONS β¨
π positional arguments:
inputβ BAM file; if it's not set, input is read from STDIN. she's flexible like that π
π optional arguments:
-h,--helpβ show this help message and exit. iconic behavior honestly π--remove-duplicatesβ Remove duplicates from output; by default duplicates are only flagged (flag =0x400). so like, if you're tired of seeing them, this is your moment π«Ά--seed SEEDβ Seed used for randomly selecting representative reads when no reads have quality scores assigned [default: initialized using system time]. so yeah, if nobody has a quality score, she's just gonna pick a rep at random β and the seed controls that randomness. default is literally the system clock β°π²
π SEE ALSO π
π AUTHOR π
This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program. slay, Andreas π
and that's the whole page bestie!! πΈπβ¨ this is bam_rmdup_collapsed version 1.2.7, dated February 2017 β old but iconic, fr fr. now go forth and deduplicate responsibly π§ββοΈπ
π¦
π¦ where this page comes from
- debian bookworm: paleomix 1.3.7-3 Β· MIT
- debian trixie: paleomix 1.3.8-2 Β· MIT
- ubuntu jammy: paleomix 1.3.6-1 Β· MIT
- ubuntu noble: paleomix 1.3.8-1 Β· MIT
- ubuntu questing: paleomix 1.3.8-2
- ubuntu resolute: paleomix 1.3.10-1 Β· MIT
- ubuntu stonking: paleomix 1.3.10-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms