Skip to content

Tutorial

Elyse Geoffroy edited this page Apr 22, 2020 · 33 revisions

Step 1: Clone the Repository to your directory.

git clone https://github.com/egeoffroy/FACT.git

Steps to Run COLOC Pipeline

Step 2: Change your working directory to this folder.

cd FACT/

Step 3: Identify which files you are using for your input and generate .frq file need be.

Step 4: Run the program with the following parameters:

python3 finemap.py --coloc --gwas_SS --pop --pop_size --pheno_id --frq [--meqtl] [--filter_by]


Steps to Run FASTENLOC Pipeline Method 1

Step 2: Change your working directory to this folder.

cd FACT/

Step 3: Run the Program

Note: Please make sure that your genotype files are in the format pop_(*)_snp.txt in which (*) is the chromosome number pop is the population id. The snp annotation files should similarly be in the format pop_(*)_annot.txt. Also note that this tool works best when only using two chromosomes at a time to prevent Segmentation Faults and the software aborting.

If you are working with gene expression prediction model eQTL files and GWAS Summary Statistics:

python3 finemap.py --fastenloc --geno genotype_folder --meqtl meqtl_file --genemap genemap_file --pop population_id --gwas_SS GWAS_SS_file --LD LD_annotation_file --pheno_id GWAS_Prefix --chr start stop

Steps to Run FASTENLOC Pipeline When You Already Have An Annotation File

cd FACT/
python3 finemap.py --fastenloc_SS --pop population_id --pheno_id phenotype_id --gwas_SS gwas_summary_statistics_file --LD LD_annotation_file

This analysis takes approximately 4 minutes for two chromosomes. Note: It is necessary that the FASTENLOC annotation file is located in the db2fastenloc folder and that it is in the format {pop}_all1Mb_fastenloc.eqtl.annotation.vcf.gz.


Steps to Run FASTENLOC Pipeline Method 2

Step 2: Change your working directory to this folder.

cd FACT/db2fastenloc/

Step 3: Run the Program

Note: Please make sure that your genotype files are in the format pop_(*)_snp.txt in which (*) is the chromosome number pop is the population id. The snp annotation files should similarly be in the format pop_(*)_annot.txt. Also note that this tool works best when only using two chromosomes at a time to prevent Segmentation Faults and the software aborting.

If you are working with gene expression prediction model eQTL files and GWAS Summary Statistics:

nohup python3 main.py --geno genotype_folder --meqtl meqtl_file --genemap genemap_file --pop population_id --gwas_SS GWAS_SS_file --LD_block LD_annotation_file --gwas_out_prefixes GWAS_Prefix --chr chr1 chr2 &

Or if you wish to more clearly specify the start and stop chromosomes:

nohup python3 main.py --geno genotype_folder --meqtl meqtl_file --genemap genemap_file --pop population_id --gwas_SS GWAS_SS_file --LD_block LD_annotation_file --gwas_out_prefixes GWAS_Prefix --start chr1 --stop chr2 &

Clone this wiki locally