BLOOMFILTER.SH(1)
π bloomfilter.sh β BLOOMFILTER.SH(1) π
okay bestie, gather round, because this one is a filter and it's giving main character energy π¦
β¨ NAME β¨
bloomfilter.sh β filters reads that might be sharing a kmer with a reference. yes that's the whole vibe π
πΈ SYNOPSIS πΈ
bloomfilter.sh in=<input file> out=<nonmatches> outm=<matches>
ref=<reference>
π« DESCRIPTION π«
So what it does: it filters reads that potentially share a kmer with a reference. that's it, that's the job π«Ά
And here's the tea β the more memory you give it, the higher the accuracy. lowkey a memory-hungry queen π
Now the important part, no cap: reads going to outu are guaranteed to not match the reference. but reads going to outm might may or may not match the reference. so likeβ¦ outu is a firm no, outm is a maybe π
π₯ EXAMPLES π₯
bloomfilter.sh in=reads.fq outm=nonhuman.fq outm=human.fq k=31 minhits=3
ref=human.fa
and also, iconic detail: error correction and depth filtering can be done simultaneously. multitasking icon π
π OPTIONS π
π File parameters:
in=<file>β the primary input, or read 1 input if you've got pairs.in2=<file>β read 2 input, for when your reads live in two separate files.outm=<file>β (out) the primary matched read output.outm2=<file>β (out2) matched read 2 output, if your reads are in two files.outu=<file>β primary unmatched read output.outu2=<file>β unmatched read 2 output, again for the two-file girlies.ref=<file>β reference sequence file, or a comma-delimited list of them.- For depth-based filtering, set this to the same as the input. π«‘
overwrite=t(ow) β set it to false and the program will straight up abort instead of overwriting a file you already have. protect your files bestie π
π§ Hashing parameters:
k=31β kmer length.hashes=2β number of hashes per kmer. higher generally reduces false positives, but you pay for it in speed. tradeoffs, always tradeoffs πminprob=0.5β ignore reference kmers whose probability of being correct is below this. (this only affects fastq references, fyi.)memmult=1.0β the fraction of free memory to use for the Bloom filter.1.0should generally work; if the program crashes with an out-of-memory error, set this lower. higher increases specificity. so basically: crank it, but not so hard it dies πcells=β option to set the number of cells manually. by default this gets autoset to use all available memory. the only reason to set this is if you want deterministic output. periodt.seed=0β this will change the hash function used. β¨
π¦ Reference-matching parameters:
minhits=3β consecutive kmer hits needed for a read to be considered matched.- higher reduces false positives at the expense of sensitivity.
mincount=1β minimum number of times a read kmer must occur in the reference to count as a match.requireboth=fβ require both reads in a pair to match the ref before they go tooutm.- by default, pairs go to
outmif either one matches. sofis the chill setting,tis the strict one π
- by default, pairs go to
β Java Parameters
-Xmxβ this will set Java's memory usage, overriding autodetection.-Xmx20gwill specify 20 gigs of RAM, and-Xmx200mwill specify 200 megs. the max is typically 85% of physical memory. don't be greedy bestie π
-eoomβ this flag will cause the process to exit if an out-of-memory exception occurs. requires Java 8u92+.-daβ disable assertions.
π AUTHOR π
Written by Brian Bushnell π«Ά
Please contact Brian Bushnell at bbushnell@lbl.gov if you encounter any problems. he's literally the guy, hit him up if stuff breaks π
This manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program. shoutout Andreas, absolute legend π
and that's a wrap!! this is bloomfilter.sh version 38.43, dated March 2019 β go forth and filter, you've got this, mwah ππΈβ¨
π¦ where this page comes from
- debian bookworm: bbmap 39.01+dfsg-2 Β· BSD-3-Clause
- debian trixie: bbmap 39.20+dfsg-2 Β· BSD-3-Clause
- ubuntu jammy: bbmap 38.95+dfsg-1 Β· BSD-3-Clause
- ubuntu noble: bbmap 39.06+dfsg-1 Β· BSD-3-Clause
- ubuntu questing: bbmap 39.20+dfsg-2
- ubuntu resolute: bbmap 39.20+dfsg-3 Β· BSD-3-Clause
- ubuntu stonking: bbmap 39.20+dfsg-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms