QTLtools-mbv(1)
β¨ QTLtools-mbv(1) β¨
okay bestie, welcome to the QTLtools-mbv(1) page π it's all bioinformatics tools energy, and it's giving very useful π§¬
β¨ NAME β¨
QTLtools mbv - Match genotypes in a VCF to a BAM file π
β¨ SYNOPSIS β¨
QTLtools mbv --bam [sample.bam|sample.sam|sample.cram] --vcf
[in.vcf|in.bcf|in.vcf.gz] --out output_file [OPTIONS]
so you pass --bam, --vcf, and --out, then add whatever [OPTIONS] you want π
β¨ DESCRIPTION β¨
okay so this mode checks if the genotypes in the VCF are actually observed in the RNAseq reads in the BAM file π΅οΈββοΈ it's a quick way to catch sample mislabeling, cross-sample contamination, and PCR amplification bias. The details of the method are described at <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6044394/> if you want the full lore β¨
ngl here's the tea: for each individual in the VCF, we measure the proportions of heterozygous and homozygous genotypes where both alleles are captured by the sequencing reads in the BAM file. A 'match' should have close to 100% concordance for both measures π while a 'mismatch' has significantly lower concordance for both metrics π ββοΈ
the bias stuff is so specific π increased cross-sample contamination leads to decreased homozygous concordance with no change in heterozygous concordance. Meanwhile, increased amplification bias leads to decreased heterozygous concordance with no change in homozygous concordance. Two different vibes, two different signatures π¦
we recommend using uniquely mapping reads only, so set the correct --filter-mapping-quality π«Ά
β¨ OPTIONS β¨
--vcf [in.vcf|in.bcf|in.vcf.gz]β your genotypes in VCF/BCF format. It should contain all the samples in the dataset. REQUIRED π--bam [in.bam|in.sam|in.cram]β your sequence data in BAM/SAM/CRAM format. REQUIRED π--out outputβ the output file name. REQUIRED π--reg chr:start-endβ the genomic region you want processed, e.g.chr4:12334456-16334456, orchr5πΊοΈ--filter-mapping-quality integerβ minimum mapping quality for a read or read pair to be considered. Set this to only include uniquely mapped reads πDEFAULT=10--filter-base-quality integerβ minimum phred quality for a base to be considered.DEFAULT=5π--filter-binomial-pvalue floatβ binomial p-value threshold below which a heterozygous genotype is considered as showing allelic imbalance.DEFAULT=0.05β--filter-minimal-coverage integerβ minimum number of reads overlapping a genotype for it to be considered.DEFAULT=10πΈ--filter-imputation-qual floatβ minimum imputation information score for a variant to be considered.DEFAULT=0.9π§--filter-imputation-prob floatβ minimum posterior probability for a genotype to be considered.DEFAULT=0.99π--filter-keep-duplicatesβ keeps reads the aligner flagged as duplicates π₯
β¨ OUTPUT FILE COLUMNS β¨
okay so for --out filename: this file does not have a header π It contains the following columns, in this order:
- the sample ID in the VCF that the sequence data has been matched against π«Ά
- the number of missing genotypes for this sample
- the total number of heterozygous genotypes examined
- the total number of homozygous genotypes examined
- the number of heterozygous genotypes considered for the matching, i.e. the ones covered by more than
--filter-minimal-coverage - the number of homozygous genotypes considered for the matching, i.e. the ones covered by more than
--filter-minimal-coverage - the number of heterozygous genotypes that match between this sample and the BAM file
- the number of homozygous genotypes that match between this sample and the BAM file
- the percentage of heterozygous genotypes that match between this sample and the BAM file π
- the percentage of homozygous genotypes that match between this sample and the BAM file π
- the number of heterozygous genotypes with significant allelic imbalance π
β¨ EXAMPLES β¨
Running mbv on an RNAseq sample mapped with GEM π
QTLtools mbv --bam HG00381.chr22.bam --out HG00381.chr22.mbv.txt --vcf
genotypes.chr22.vcf.gz --filter-mapping-quality 150
then you can plot column 9 vs. 10 to find the genotyped sample in the VCF that matches your sequence data best. main character energy π
β¨ SEE ALSO β¨
QTLtools(1) π
QTLtools website: <https://qtltools.github.io/qtltools> π
β¨ BUGS β¨
if you find a bug, submit it here π <https://github.com/qtltools/qtltools>
β¨ CITATION β¨
Fort A., Panousis N. I., Garieri M. et al. MBV: a method to solve sample mislabeling and detect technical bias in large combined genotype and sequencing assay datasets, Bioinformatics 33(12), 1895 2017. <https://doi.org/10.1093/bioinformatics/btx074> π
β¨ AUTHORS β¨
Olivier Delaneau (olivier.delaneau@gmail.com), Halit Ongen (halitongen@gmail.com) π
bestie that's the whole tea β¨ this is QTLtools-v1.3 from 06 May 2020, and you're literally going to ace your sample matching now π¦ love you, mwah ππ
π¦ where this page comes from
- debian bookworm: qtltools 1.3.1+dfsg-4 Β· GPL-3.0-or-later
- debian trixie: qtltools 1.3.1+dfsg-4+b3 Β· GPL-3.0-or-later
- ubuntu jammy: qtltools 1.3.1+dfsg-2build2 Β· GPL-3.0-or-later
- ubuntu noble: qtltools 1.3.1+dfsg-4build3 Β· GPL-3.0-or-later
- ubuntu questing: qtltools 1.3.1+dfsg-4build6
- ubuntu resolute: qtltools 1.3.1+dfsg-4build7 Β· GPL-3.0-or-later
- ubuntu stonking: qtltools 1.3.1+dfsg-6 Β· GPL-3.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms