Giter Site home page Giter Site logo

qtl-mapping-pipeline's People

Contributors

bzmull avatar jackhump avatar kailashbp avatar ricardovialle avatar ryncuddleston avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qtl-mapping-pipeline's Issues

chunking error - testing same genes twice

my permutation results contain each gene twice:

$ ls *permutations.txt | xargs grep "^ENSG00000015592.16"

LumbarSpinalCord_expression_peer30_chunk152.permutations.txt:ENSG00000015592.16 chr8 27258420 27258420 - 6436 12913 . chr8 27245507 27245507 195 173.024 1.05009 656.504 2.17524e-47 -1.06769 9.999e-05 2.29836e-41
LumbarSpinalCord_expression_peer30_chunk609.permutations.txt:ENSG00000015592.16 chr8 27258420 27258420 - 6436 12913 . chr8 27245507 27245507 195 175.538 1.0437 715.465 2.17524e-47 -1.06769 9.999e-05 1.08018e-41

What's going on? I'm systematically over-reporting the number of significant eGenes found by the pipeline by a factor of 2.

Hopefully switching over to TensorQTL will get rid of the need for chunking and all the headaches that come with.

add group ID and strand columns to expression.bed.gz and splicing.bed.gz

GTEX pipeline produces BED files formatted for FASTQTL, not QTLtools. The only difference is that FASTQTL BED files have 6 columns before the per-sample columns:

Chromosome ID [string]
Start genomic position of the phenotype (here the TSS of gene1) [integer, 0-based]
End genomic position of the phenotype (here the TSS of gene1) [integer, 1-based]
Phenotype ID (here the exon IDs) [string].
Phenotype group ID (here the gene IDs, multiple exons belong to the same gene) [string]
Strand orientation [+/-]

These final two columns must be added in the eqtl_prepare_expression.py and the sqtl_prepare_expression.py

group sQTLs by cluster OR gene

Complex genes will have multiple splicing clusters within them. In theory each cluster could have independent cis genetic regulation.

Therefore add an option in sQTL mapping to either group QTLs by gene (current approach) or by leafcutter cluster.

This may increase number of sQTLs found.

map_junctions_to_genes

  1. does not take strand into account - this is obvious.

  2. should be run downstream of junction filtering to avoid mis-classifying a cluster

  3. if multiple genes overlap junctions in a cluster, which gene is picked as the name?

Conditionally independent (secondary) QTLs

tensorQTL has this option:

python3 -m tensorqtl ${plink_prefix_path} ${expression_bed} ${prefix} \
    --covariates ${covariates_file} \
    --cis_results ${cis_results_file} \
    --mode cis_independent

Plug it in, could be useful for COLOCing.

sQTLs - test only SNPs within 50kb of cluster boundary

Currently testing all SNPs within a megabase either side of gene TSS. This is unnecessary and leads to huge summary stat files and potentially lots of spurious colocalisations.

This will require hacking around with the leafcutter sQTL scripts. I believe TensorQTL only uses a single coordinate to window around, will have to test.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.