QTLtools-fdensity(1)
π¦ QTLtools-fdensity(1) π¦
okay bestie, this is the QTLtools-fdensity(1) page from the Bioinformatics tools manual, and it is all about measuring functional density around molecular QTLs π no cap, it's giving science β¨
β¨ NAME β¨
QTLtools fdensity β Functional density around molecular QTLs πΈ
π SYNOPSIS π
QTLtools fdensity --qtl significant_genes.bed --bed TFs.encode.bed.gz --out output.txt [OPTIONS]
π DESCRIPTION π
okay so this mode measures how dense functional annotations are around the genomic positions of molecular QTLs π§ the method is detailed in https://www.nature.com/articles/ncomms15452 β¨
basically, we first list every annotation inside a window around the molecular QTLs (by default 1 Mb) π then we chop that window into tiny bins (default 1 kb) and count how many functional annotations overlap each bin. that gives you an annotation count per bin you can plot, so you can see if there's any peak or depletion around the molQTLs π it's the way that π
π OPTIONS π
--qtl in.bedβ your list of QTLs of interest, in BED format. REQUIRED. π¦--bed functional_annotation.bed.gzβ your functional annotations, in BED format. REQUIRED. π--out output.txtβ the output file. REQUIRED. π--window integerβ the window size around the molecular QTL position. DEFAULT=1000000 πΈ--bin integerβ the bin size in base pairs. DEFAULT=1000 β
π₯ INPUT FILES π₯
--qtl file
your list of QTLs of interest π here's an example:
1 15210 15211 1_15211 ENSG00000227232.4 -
1 735984 735985 1_735985 ENSG00000177757.1 +
1 735984 735985 1_735985 ENSG00000240453.1 -
1 739527 739528 1_739528 ENSG00000237491.4 +
and here's what each column means π«Ά
- Column
1β the variant chromosome - Column
2β the variant's start position (0-based) - Column
3β the variant's end position (1-based) - Column
4β the variant ID - Column
5β the phenotype ID (not used) π - Column
6β the phenotype's strand
--bed file
the list of annotations in BED format, looking like this π§
1 254874 265487
1 730984 735985
1 734984 736585
1 739527 748528
the columns, bestie:
- Column
1β chromosome - Column
2β start position (0-based) - Column
3β end position (1-based)
π€ OUTPUT FILE π€
--out file
the results come out as a space separated output file that details the enrichment π₯ with these columns:
- Column
1β the start position of the bin - Column
2β the end position of the bin - Column
3β the number of associations in this bin
π§ͺ EXAMPLE π§ͺ
okay so there are two steps, and they're both lowkey easy π₯Ή
- You need to prepare a BED file containing the positions of the QTLs of interest. To do so, extract all significant hits at a given FDR threshold (e.g. 5%), and then transform the significant QTL list into a BED file:
Rscript ./script/qtltools_runFDR_cis.R results.genes.full.txt.gz 0.05 results.genes
cat results.genes.significant.txt | awk '{ print $9, $10-1, $11, $8, $1, $5 }' | tr ' ' '\t' | sort -k1,1V -k2,2g > results.genes.significant.bed
- Measure the density using the following command:
QTLtools fdensity --qtl results.genes.significant.bed --bed TFs.encode.bed.gz --out density.TF.around.QTL.txt
π SEE ALSO π
QTLtools website: https://qtltools.github.io/qtltools π
π BUGS π
found a bug? slide into the DMs of the project: https://github.com/qtltools/qtltools π
π CITATION π
Delaneau, O., Ongen, H., Brown, A. et al. A complete tool set for molecular QTL discovery and analysis. Nat Commun 8, 15452 (2017). https://doi.org/10.1038/ncomms15452 π
π AUTHORS π
Olivier Delaneau (olivier.delaneau@gmail.com), Halit Ongen (halitongen@gmail.com) π
okay bestie, that's the whole page π«Ά this is QTLtools-v1.3, last updated 06 May 2020, so go forth and be iconic π π¦β¨
π¦ 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