Skip to content

Scripts Layout For FASTENLOC

Elyse Geoffroy edited this page Apr 27, 2020 · 2 revisions

main.py

Main wrapper/python program that runs each script

01_all1MbSNPs2dat.py

Matrix eQTL to .dat format from .db SNP list

02_all1MbSNPs_batch_scan.py

Makes file with batch commands to run DAP-G scan for 1Mb SNPs within each gene

02b_concat_scan_out_bf_files.py

Generates fie needed for TORUS (SNP gene logBF) Output: .bf output from scan_out includes SNP, log10BF, beta, standard error (se), t-stat

03_all1MbSNPs_torus.sh

Run TORUS to get SNP priors based on distance to gene and .bf’s from previous step

04_all1MbSNPs_batch_dapg.py

Runs DAP-G for each gene using .db SNPs

05_make_vcf.py

Make VCF of SNPs for use with the fastenloc prep. Script summarize_dap2enloc.pl ID must be the same as SNP IDs used in db file with column headers:

CHROM	POS	ID	REF	ALT

06_all1MbSNPs_make_fastenloc_anot.sh

Makes eQTL annotation file needed for fastenloc

07a_sumstats_names.R

R script to identify the necessary column names of beta, chr, se, bp, effect_allele, and other allele for 07.

07_prep_sumstats_1000G_LDblocks.py

Using summary stats from GWAS catalog (must by hg19/b37 for MESA db's), retrieves Z-scores for intersection SNPs with eQTL annotation file and generates SNP Locus Z-score file for torus (use LD locus blocks from an appropriate population)

08_gwas_zval_torus.sh

Run TORUS to get GWAS PIPs from z-val file

09_all1MbSNPs_fastenloc.sh

Runs fastenloc with example sumstats

10_get_sig_hits.py

Returns top 10 RCP values