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