Re: Tutorial: GTEx v8 MASH models integration with a Coronary Artery Disease GWAS

187 views
Skip to first unread message

Hae Kyung Im

unread,
Feb 8, 2022, 1:51:49 PM2/8/22
to PrediXcan/MetaXcan, LEMLER Lea
Dear Lea,
I am forwarding your question to the PrediXcan mailing list where Festus and others can help you.
Haky



On Tue, Feb 8, 2022 at 12:09 PM LEMLER Lea <L.Le...@sms.ed.ac.uk> wrote:

Dear Haky,

 

My supervisor has given me your contact details, I hope you don’t mind me contacting you directly.

 

I am currently trying to run above tutorial but I am struggling with this part:

 

# The following imputes a portion of the imput GWAS.
# The imputation is meant to be split over many executions to improve paralellism
# so you would have to iterate `-chromosome` between [1,22] and `-sub_batch` between [0,_sub_batches],
# ideally in an HPVC environment
python $GWAS_TOOLS/gwas_summary_imputation.py \
-by_region_file $DATA/eur_ld.bed.gz \
-gwas_file $OUTPUT/harmonized_gwas/CARDIoGRAM_C4D_CAD_ADDITIVE.txt.gz \
-parquet_genotype $DATA/reference_panel_1000G/chr1.variants.parquet \
-parquet_genotype_metadata $DATA/reference_panel_1000G/variant_metadata.parquet \
-window 100000 \
-parsimony 7 \
-chromosome 1 \
-regularization 0.1 \
-frequency_filter 0.01 \
-sub_batches 10 \
-sub_batch 0 \
--standardise_dosages \
-output $OUTPUT/summary_imputation_1000G/CARDIoGRAM_C4D_CAD_ADDITIVE_chr1_sb0_reg0.1_ff0.01_by_region.txt.gz

I get an error message saying that “AttributeError: 'MultiIndex' object has no attribute 'labels'” if I copy it like this.

Also I do not quite understand what is meant by “# The imputation is meant to be split over many executions to improve parallelism,  so you would have to iterate `-chromosome` between [1,22] and `-sub_batch` between [0,_sub_batches],”.

Could you give me some more explanations how to run this part?

 

Thank you very much & Best Regards,

Lea

 

Lea Lemler

PhD Student

 

L.Le...@sms.ed.ac.uk

 

Colon Cancer Genetics Group,
4th Floor MRC-HGU,
Institute of Genetics and Cancer,
University of Edinburgh,
Crewe Road, Edinburgh  EH4 2XU

 

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.


--
Hae Kyung Im, PhD - 任慧耕 - 임혜경 - She/her
Assistant Professor, Section of Genetic Medicine
The University of Chicago Medicine & Biological Sciences
Member of Committee on Genetics, Genomics & Systems Biology
Center for Translational Data Science
Computing Environment and Life Sciences Directorate, Argonne National Laboratory
5841 S. Maryland Ave. Chicago, IL 60637, USA| N412
Phone:  773.702.3898 | FAX: 773.702.2567
Email: ha...@uchicago.edu | Twitter: @hakyim
http://hakyimlab.org | https://github.com/hakyimlab | https://orcid.org/0000-0003-0333-5685
http://scholar.google.com/citations?user=1QD4sIcAAAAJ
Directions to my office https://tinyurl.com/hki-office

Festus

unread,
Feb 9, 2022, 10:37:24 AM2/9/22
to PrediXcan/MetaXcan
Hi Lea,

Kindly share the whole lg containing the error message. You can change the -parsimony to 1 so that everything message is logged.

Festus

Festus

unread,
Feb 10, 2022, 1:02:35 PM2/10/22
to PrediXcan/MetaXcan
Hi Lea,

Kindly install the conda environment from here using these commands provided here.

Rerun your analysis.

Festus

Lea L.

unread,
Feb 15, 2022, 4:10:12 AM2/15/22
to PrediXcan/MetaXcan
Hi Festus, 

Thank you. I have installed Miniconda now and tried to create the working environment via file software/conda_env.yaml.
But I get the errors attached. 

Thank you for any advice.

Best wishes,
Lea 
Error 2.PNG
Error 1.PNG

Festus

unread,
Feb 15, 2022, 1:26:42 PM2/15/22
to PrediXcan/MetaXcan
Hi Lea,

You need to download that file or copy the contents of the file to a file named conda_env.yaml then run
conda env create -f conda_env.yaml

Festus

Lea L.

unread,
Feb 16, 2022, 3:43:40 AM2/16/22
to PrediXcan/MetaXcan
Hi Festus, 

Ah ok, now I get it, thank you. imlabtools has already the packages (numpy etc.) installed and i dont need to run this part:

conda create -n myenv python=3.6 
source activate myenv       
conda install scipy numpy pandas -y  
conda install -c conda-forge pyarrow -y 
conda install -c bioconda pyliftover -y 

Nevertheless, again I am not able to get further than harmonising input gwas to our reference as described in my first email (following code here: https://github.com/hakyimlab/MetaXcan/wiki/Tutorial%3A-GTEx-v8-MASH-models-integration-with-a-Coronary-Artery-Disease-GWAS).

So I got the file output $OUTPUT/harmonized_gwas/CARDIoGRAM_C4D_CAD_ADDITIVE.txt.gz but running following code (gwas summary imputation) gives the attached error.

Do you have an idea what I could be the reason?

Thank you very much for your help, very appreciated.

Best Regards,
Lea 
chromosome1_error.PNG

Festus

unread,
Feb 17, 2022, 9:37:34 AM2/17/22
to PrediXcan/MetaXcan
Looks like you split your command into two that's why you getting that error.

Lea L.

unread,
Feb 18, 2022, 4:14:51 AM2/18/22
to PrediXcan/MetaXcan
Hi Festus, 

It is working now, thank you very much.

Best Regards,
Lea

Reply all
Reply to author
Forward
0 new messages