Skip to content

03b EQTL analysis

Ryan Schubert edited this page Oct 11, 2018 · 4 revisions

Once all the files have been placed in the correct format you can easily run eQTL analysis with the matrix eqtl script. This is a lightweight wrapper that implements the original MEQTL analysis strategy for cis/trans QTLs. The script is currently only capable on one set of files at a time, meaning that if experimental data is split by chromosome it must be run 22 times for each autosome. Please see MatrixEQTL page for complete options Minimum example for CLI

#Running on one chromosome
Rscript MatrixEQTL.R -sg PATH/TO/snp_genotype -sl PATH/RO/snp_location -ge PATH/TO/gene_expression_chr1 -gl PATH/TO/gene_location_chr1

#for all 22 chromosomes
for i in $(seq 1 22)
do
     Rscript MatrixEQTL.R -sg PATH/TO/snp_genotype -sl PATH/TO/snp_location -ge PATH/TO/gene_expression_chr"{$i}" -gl PATH/TO/gene_location_chr"{$i}" 
done
Clone this wiki locally