QTLtools-rtc-union(1)
πΈ QTLtools rtc-union πΈ
Manual name: QTLtools rtc-union, from the Bioinformatics tools pages 𧬠Let's get into it bestie π
β¨ NAME β¨
okay so the whole point is finding the union of QTLs from independent datasets π¦ QTLtools rtc-union is the mode that does it.
π SYNOPSIS π
QTLtools rtc-union --vcf [in.vcf|in.vcf.gz|in.bcf|in.bed.gz] ... --bed
quantifications.bed.gz ... --hotspots hotspots_b37_hg19.bed --results
qtl_results_files.txt ... [OPTIONS]
π DESCRIPTION π
ngl this mode is so iconic π It finds the best molQTL (it may or may not be genome-wide significant) in each region flanked by recombination hotspots, which we call a coldspot π The catch is that there has to be a molQTL in the same coldspot in at least one dataset.
Here's the process bestie π«Ά First, all the significant molQTLs from all of the datasets get mapped to coldspots. Then, if certain datasets don't have a significant molQTL in a given coldspot for a given phenotype, we take the most significant variant associated with that phenotype in that coldspot, for all the missing datasets. Main character energy π
π· OPTIONS π·
--vcf [in.vcf|in.bcf|in.vcf.gz|in.bed.gz] ...β This is where your genotypes go, in VCF/BCF format, or another molecular phenotype in BED format 𧬠If a variant's genotype FORMAT has a DS field (the dosage calculated from genotype probabilities, like after imputation), that's what gets used as the genotype β¨ If there's only the GT field, that gets used and it's converted to a dosage. If you pass a single file, all datasets are assumed to have the same genotypes, and all the datasets' samples are included in that file. If you pass multiple files, all--vcf,--bed,--cov, and--resultsfiles MUST be in the same order. For example, if the first vcf file is from dataset1, then the first bed, cov, and results files must also be from dataset1. REQUIRED π₯--bed quantifications.bed.gz ...β Your molecular phenotype quantifications in BED format, one for each dataset π All--vcf,--bed,--cov, and--resultsfiles MUST be in the same order. E.g. if the first vcf file is from dataset1, then the first bed, cov, and results files must also be from dataset1. REQUIRED πΈ--results significant_qtls.txt ...β The results file with the QTLs in each of the datasets π All--vcf,--bed,--cov, and--resultsfiles MUST be in the same order. E.g if the first vcf file is from dataset1, then the first bed, cov, and results files must also be from dataset1. REQUIRED π¦--hotspots recombination_hotspots.bedβ Recombination hotspots in BED format. REQUIRED π--out-suffix suffixβ If you provide this, your output files get suffixed with it π--cov covariates.txtβ Covariates to correct the phenotype data with, for each dataset. All--vcf,--bed,--cov, and--resultsfiles MUST be in the same order. E.g if the first vcf file is from dataset1, then the first bed, cov, and results files must also be from dataset1. π§--forceβ If the output file already exists, this overwrites it π--normalβ Rank normal transforms the phenotype data so each phenotype is normally distributed. RECOMMENDED β¨--conditionalβ molQTLs contain independent signals, so this runs the conditional analysis π₯--window integerβ The size of the cis window flanking each phenotype's start position. DEFAULT=1000000. RECOMMENDED=1000000. π--pheno-col integerβ The 1-based phenotype id column number. DEFAULT=1 π«Ά--geno-col integerβ The 1-based genotype id column number. DEFAULT=8 π--rank-col integerβ The 1-based conditional analysis rank column number. Only relevant if--conditionalis in effect. DEFAULT=12 π·--best-col integerβ The 1-based phenotype column number. Only relevant if--conditionalis in effect. DEFAULT=21 π¦--chunk integer1 integer2β For parallelization π It divides the data intointeger2number of chunks and processes chunk numberinteger1. Chunk 0 will print a header. This is mutually exclusive with--region. The minimum number of chunks has to be at least the same number of chromosomes in the--bedfile π--region chr:start-endβ The genomic region to be processed, e.g.chr4:12334456-16334456, orchr5. This is mutually exclusive with--chunkπ§
π¦ OUTPUT FILE π¦
The output file is a space separated file with the following columns π
- Column showing that this is a rtc-union result. It's always
__UNION__π - The phenotype ID πΈ
- The genotype ID. This can say
__UNION_FILLER_MAX_INDEP__,__UNION_FILLER_MISS_GENO__, or__UNION_FILLER_MISS_PHENO__, which are fillers for missing cases in one of the datasets π«Ά - The rank of the best variant in this coldspot. If this was discovered in the rtc-union run, this would be
-1. If there was already a significant variant in this coldspot, then a different value π₯ - Dummy field indicating that this is the best hit per rank π
- The p-value of the association. It will be
0if this was already significant in the dataset β¨ - The coldspot ID π
- The coldspot region π
π EXAMPLE π
okay so here's the vibe: find the union of 3 datasets, correcting for technical covariates, and rank normal transforming the phenotypes, with 20 jobs on a compute cluster. The qsub needs to be changed to whatever job submission system you use [bsub, psub, etc...] π§
for j in $(seq 1 20); do
echo "QTLtools rtc-union --bed dataset1.bed.gz dataset2.bed.gz
dataset3.bed.gz --vcf dataset1.bcf dataset2.bcf dataset3.bcf
--cov dataset1.covariates.txt dataset2.covariates.txt
dataset3.covariates.txt --results dataset1.txt dataset2.txt
dataset3.txt --hotspots hotspots_b37_hg19.bed --normal
--conditional --chunk $j 20 --out-suffix .chunk.$j.20.txt" | qsub
done
πΈ SEE ALSO πΈ
QTLtools(1) π
QTLtools website: <https://qtltools.github.io/qtltools> π«Ά
π BUGS π
π Versions up to and including 1.2 suffer from a bug in reading missing genotypes in VCF/BCF files. It affects variants with a DS field in their genotype's FORMAT that have a missing genotype (DS field is .) in one of the samples. In that case, genotypes for all the samples get set to missing, which effectively removes this variant from the analyses π
Please submit bugs to <https://github.com/qtltools/qtltools> π¦
π CITATION π
Ongen H, Brown AA, Delaneau O, et al. Estimating the causal tissues for complex traits and diseases. Nat Genet. 2017;49(12):1676-1683. doi:10.1038/ng.3981 <https://doi.org/10.1038/ng.3981> π
π AUTHORS π
Halit Ongen (halitongen@gmail.com), Olivier Delaneau (olivier.delaneau@gmail.com) β¨
Okay bestie, that's the whole rtc-union tea π«Ά You've got QTLtools-v1.3 from 06 May 2020, and honestly you're ready to go, no cap ππβ¨
π¦ 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