RABEMA_BUILD_GOLD_STANDARD(1)

๐Ÿ“ฆ
version 2.5.2 ยท 2 versions
, in ubuntu stonking

๐Ÿฆ‹ rabema_build_gold_standard โ€” RABEMA Gold Standard Builder ๐Ÿฆ‹

hiii bestie welcome to section 1 of the manual ๐Ÿ’– this is rabema_build_gold_standard, she builds gold standards, she's the moment, she knows exactly what she's doing and honestly? obsessed with her. let's get into it โœจ


โœจ NAME โœจ

rabema_build_gold_standard โ€” the RABEMA Gold Standard Builder. that's her name and her entire personality, and she ate. ๐Ÿ’…

๐ŸŒˆ SYNOPSIS ๐ŸŒˆ

rabema_build_gold_standard [OPTIONS] --out-gsi OUT.gsi --reference REF.fa --in-bam PERFECT.{sam,bam}

so like. [OPTIONS] is the fun flexible part, but then she needs three things from you: where the gold standard goes (--out-gsi), your reference (--reference), and your perfect map (--in-bam). not optional bestie, she means it ๐Ÿซถ

๐Ÿงš DESCRIPTION ๐Ÿงš

okay so this program lets you build a RABEMA gold standard. the input is a reference FASTA file and a perfect SAM/BAM map โ€” perfect like, e.g. one created using RazerS 3 in full-sensitivity mode. no cap, that's the vibe. ๐Ÿ’–

โš ๏ธ bestie. the input SAM/BAM file must be sorted by coordinate. this is not a suggestion, this is the law, and she will know if you skipped it.

also she's gonna create a FASTA index file REF.fa.fai so she can do fast random access into the reference. cute of her, honestly. ๐ŸŽ€


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -h, --help โ€” pop the help message. your emotional support flag. ๐ŸŒธ
  • --version โ€” shows you the version info. she's telling you exactly who she is. ๐Ÿ‘‘
  • -v, --verbose โ€” turns on verbose output. she talks more. you get more. ๐Ÿ’ฌ
  • -vv, --very-verbose โ€” even more verbose output. she is telling you EVERYTHING and honestly good for her. ๐Ÿ”ฅ

๐Ÿ“ฅ Input / Output: ๐Ÿ“ค

  • -o, --out-gsi OUTPUT_FILE โ€” the path where the resulting GSI file gets written. valid filetype is .gsi[.*], and that * can be: gz for transparent (de)compression. โœจ
  • -r, --reference INPUT_FILE โ€” the path to load the reference FASTA from. valid filetypes are: .sam[.*], .raw[.*], .gbk[.*], .frn[.*], .fq[.*], .fna[.*], .ffn[.*], .fastq[.*], .fasta[.*], .fas[.*], .faa[.*], .fa[.*], .embl[.*], and .bam, where * is any of the following extensions: gz, bz2, and bgzf for transparent (de)compression. like. she really said "bring me a format, any format" ๐Ÿ˜ญ
  • -b, --in-bam INPUT_FILE โ€” the path to load the "perfect" SAM/BAM file from (quotes are hers, she's being cute about it). valid filetypes are: .sam[.*] and .bam, where * is any of the following extensions: gz, bz2, and bgzf for transparent (de)compression. ๐Ÿฆ‹

๐Ÿ† Gold Standard Parameters: ๐Ÿ†

  • --oracle-mode โ€” enables oracle mode. this one's for simulated data, when the input SAM/BAM file gives you exactly one position that counts as the true sample position. one. single. position. main character energy, truly. ๐Ÿ”ฎ
  • --match-N โ€” when you set this, N matches all characters without penalty. she said no consequences for N, iykyk. ๐Ÿ’ซ
  • --distance-metric STRING โ€” sets the distance metric. valid values: hamming, edit. Default: edit. One of hamming and edit. Default: edit. yeah she said it twice, she's thorough like that ๐Ÿ’…
  • -e, --max-error INTEGER โ€” the maximal error rate to build the gold standard for, in percent. this parameter is an integer and it's relative to the read length. in the case of oracle mode, the error rate for the read at the sampling position is used and RATE is used as a cutoff threshold. Default: 0. ๐Ÿ“

๐ŸŒŸ RETURN VALUES ๐ŸŒŸ

a return value of 0 means success ๐ŸŽ‰ and any other value means an error ๐Ÿ˜ญ. that's it, that's the whole system, she keeps it simple.


๐ŸŒธ EXAMPLES ๐ŸŒธ

1.

rabema_build_gold_standard -e 4 -o OUT.gsi -s IN.sam -r REF.fa

build gold standard from a SAM file IN.sam with all mapping locations and a FASTA reference REF.fa to GSI file OUT.gsi with a maximal error rate of 4. ๐Ÿ”ฅ

2.

rabema_build_gold_standard --distance-metric edit -e 4 -o OUT.gsi -b
IN.bam -r REF.fa

same as above, but using Hamming instead of edit distance and BAM as the input. (yes bestie, she passed --distance-metric edit and then said "instead of edit distance" โ€” she contains multitudes, we don't question the queen ๐Ÿ˜ญ๐Ÿ‘‘)

3.

rabema_build_gold_standard --oracle-mode -o OUT.gsi -s IN.sam -r REF.fa

build gold standard from a SAM file IN.sam with the original sample position, e.g. as exported by read simulator Mason. ๐Ÿ”ฎโœจ


๐Ÿง  MEMORY REQUIREMENTS ๐Ÿง 

from version 1.1, great care has been taken to keep the memory requirements as low as possible. ๐Ÿ’– the memory required is two times the size of the largest chromosome plus some constant memory for each match.

for example, the memory usage for 100bp human genome reads at 5% error rate was 1.7GB. of this, roughly 400GB came from the chromosome and 1.3GB from the matches. (she said what she said, numbers are numbers, we respect them ๐Ÿซก)


๐Ÿ“š REFERENCES ๐Ÿ“š

  • M. Holtgrewe, A.-K. Emde, D. Weese and K. Reinert. A Novel And Well-Defined Benchmarking Method For Second Generation Read Mapping, BMC Bioinformatics 2011, 12:210.
  • https://www.seqan.de/rabema โ€” RABEMA Homepage
  • https://www.seqan.de/mason โ€” Mason Homepage

๐ŸŽ€ SEE YOU LATER ๐ŸŽ€

and that's the whole page bestie!! this was rabema_build_gold_standard version 1.2.14, section 1 of the manual ๐Ÿ’– (the date on the footer got cut off at [t, so we're just gonna send her off with love). go build that gold standard, you're gonna slay, mwah ๐ŸŒˆ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from