Fine-Mapping#
This notebook shows the various fine-mapping methods available in our pipeline.
Miniprotocol Timing#
This represents the total duration for all miniprotocol phases. While module-specific timings are provided separately on their respective pages, they are also included in this overall estimate.
Timing < X minutes
Overview#
Each of these parts are independent of one another.
mnm_regression.ipynb susie_twas
: Univariate Fine-Mapping and TWAS with SuSiEmnm_regression.ipynb mnm_genes
: Multivariate Fine-Mapping for multiple genesmnm_regression.ipynb fsusie
: Univariate Fine-Mapping of Functional (Epigenomic) Data with fSuSiEmnm_regression.ipynb mnm
: Multivariate Fine-Mapping with mvSuSiE and mr.mashrss_analysis.ipynb univariate_rss
: Regression with Summary Statistics (RSS) Fine-Mapping and TWAS with SuSiE
Steps#
i. Univariate Fine-Mapping and TWAS with SuSiE#
sos run $PATH/protocol/pipeline/mnm_regression.ipynb susie_twas \
--name ROSMAP_mega_eQTL \
--genoFile $PATH/genofile/ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.11.bed \
--phenoFile $PATH/phenofile/Mic/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Mic.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Ast/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Oli/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Oli.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/OPC/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.OPC.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Exc/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Exc.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Inh/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Inh.mega.normalized.log2cpm.region_list.txt \
--covFile $PATH/phenofile/Mic/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Mic.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Ast/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Oli/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Oli.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/OPC/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.OPC.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Exc/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Exc.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Inh/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Inh.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
--customized-association-windows $PATH/windows/TADB_enhanced_cis.coding.bed \
--phenotype-names Mic_mega_eQTL Ast_mega_eQTL Oli_mega_eQTL OPC_mega_eQTL Exc_mega_eQTL Inh_mega_eQTL \
--max-cv-variants 5000 --ld_reference_meta_file $PATH/ldref/ld_meta_file.tsv \
--region-name ENSG00000073921 \
--save-data \
--cwd $PATH/output/ -s build
ii. Multivariate Fine-Mapping for multiple genes#
sos run $PATH/protocol/pipeline/mnm_regression.ipynb mnm_genes \
--name ROSMAP_Ast_DeJager_eQTL \
--genoFile $PATH/ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.11.bed \
--phenoFile $PATH/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.region_list.txt \
--covFile $PATH/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
--customized-association-windows $PATH/windows/TADB_sliding_window.bed \
--phenotype-names Ast_DeJager_eQTL \
--max-cv-variants 5000 --ld_reference_meta_file $PATH/ldref/ld_meta_file.tsv \
--independent_variant_list $PATH/ld_pruned_variants.txt.gz \
--fine_mapping_meta $PATH/Fungen_xQTL.cis_results_db.new.tsv \
--phenoIDFile $PATH/phenoIDFile_cis_extended_region.bed \
--skip-analysis-pip-cutoff 0 \
--coverage 0.95 \
--maf 0.01 \
--pheno_id_map_file $PATH/pheno_id_map_file.txt \
--prior-canonical-matrices \
--save-data \
--twas-cv-folds 0 \
--trans-analysis \
--region-name chr11_77324757_86627922 \
--cwd $PATH/output/ -s force
iii. Univariate Fine-Mapping of Functional (Epigenomic) Data with fSuSiE#
sos run $PATH/mnm_regression.ipynb fsusie \
--cwd $PATH/fsusie_test/ \
--name protocol_example_methylation \
--genoFile $PATH/mwe_data/protocol_data/output/genotype_by_chrom/protocol_example.genotype.chr21_22.genotype_by_chrom_files.txt \
--phenoFile $PATH/fsusie_test/protocol_example.ha.phenotype_by_region_files.corrected.reformat.txt \
--covFile $PATH/mwe_data/protocol_data/output/covariate/protocol_example.protein.protocol_example.samples.protocol_example.genotype.chr21_22.pQTL.plink_qc.prune.pca.Marchenko_PC.gz \
--container oras://ghcr.io/cumc/pecotmr_apptainer:latest \
--walltime 2h \
--numThreads 8 \
--customized-association-windows $PATH/fsusie_test/regions.reformat.txt \
-c ../scripts/csg.yml -q neurology \
--save-data \
--region-name TADB_1298
iv. Multivariate Fine-Mapping with mvSuSiE and mr.mash#
sos run $PATH/protocol/pipeline/mnm_regression.ipynb mnm \
--name ROSMAP_mega_eQTL --cwd $PATH/output/ \
--genoFile $PATH/genofile/ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.11.bed \
--phenoFile $PATH/phenofile/Mic/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Mic.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Ast/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Oli/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Oli.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/OPC/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.OPC.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Exc/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Exc.mega.normalized.log2cpm.region_list.txt \
$PATH/phenofile/Inh/analysis_ready/phenotype_preprocessing/snuc_pseudo_bulk.Inh.mega.normalized.log2cpm.region_list.txt \
--covFile $PATH/phenofile/Mic/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Mic.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Ast/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Ast.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Oli/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Oli.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/OPC/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.OPC.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Exc/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Exc.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
$PATH/phenofile/Inh/analysis_ready/covariate_preprocessing/snuc_pseudo_bulk.Inh.mega.normalized.log2cpm.rosmap_cov.ROSMAP_NIA_WGS.leftnorm.bcftools_qc.plink_qc.snuc_pseudo_bulk_mega.related.plink_qc.extracted.pca.projected.Marchenko_PC.gz \
--customized-association-windows $PATH/windows/TADB_enhanced_cis.coding.bed \
--region-name ENSG00000073921 --save_data --no-skip-twas-weights \
--phenotype-names Mic_mega_eQTL Ast_mega_eQTL Oli_mega_eQTL OPC_mega_eQTL Exc_mega_eQTL Inh_mega_eQTL \
--mixture_prior /data/analysis_result/mash/mixture_prior.EZ.prior.rds \
--max_cv_variants 5000 \
--ld_reference_meta_file $PATH/ldref/ld_meta_file.tsv
v. Regression with Summary Statistics (RSS) Fine-Mapping and TWAS with SuSiE#
sos run $PATH/rss_analysis.ipynb univariate_rss \
--ld-meta-data $PATH/ldref/ld_meta_file.tsv \
--gwas-meta-data $PATH/GWAS_sumstat_meta_cloud_Apr_9.tsv \
--qc_method "rss_qc" --impute \
--finemapping_method "susie_rss" \
--cwd $PATH/output/ \
--skip_analysis_pip_cutoff 0 \
--skip_regions 6:25000000-35000000 \
--region_name 22:49355984-50799822
Anticipated Results#
Univariate finemapping will produce a file containing results for the top hits and a file containing twas weights produced by susie. Multigene finemapping with mvSuSiE will produce a file for each gene and region containing results for the top hits and a file containing twas weights produced by susie. Univariate finemapping for functional data with fSuSiE will produce a file containing results for the top hits and a file containing residuals from SuSiE. Multivariate finemapping will produce a file containing results for the top hits for each gene and a file containing twas weights produced by susie. Summary statistics fine-mapping produces a results file for each region and gwas of interest.