Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get predicted expression level,Tg? #149

Open
ymqwa opened this issue Mar 28, 2022 · 4 comments
Open

how to get predicted expression level,Tg? #149

ymqwa opened this issue Mar 28, 2022 · 4 comments

Comments

@ymqwa
Copy link

ymqwa commented Mar 28, 2022

Hi,
I have GWAS summary data and individual level data in the same cohort, also have DNA methylation prediction models. I use GWAS summary data to run Predict.py, get the methylation-level association results. Now i want to get the predicted methylation value, just like predicted expression Tg . i dont know if it can be got ? and if can , how to do ?

Thank you,
best mqyang.

@Fnyasimi
Copy link
Collaborator

have a look at this for individual level data and this for summary stats.

I hope this helps

@ymqwa
Copy link
Author

ymqwa commented Mar 30, 2022

Really appreciate! @Fnyasimi

but when i run Predict.py, I got the following output:
INFO - Loading samples
INFO - Loading model
INFO - Preparing genotype dosages
INFO - Setting whitelist from available models
INFO - Processing genotypes
INFO - Preparing prediction
INFO - Couldn't import h5py_cache. Anyway, this dependency should be removed. It has been folded into h5py
Level 9 - Processing vcfs
Level 9 - Processing vcf chrall_qc_3.vcf.gz
Traceback (most recent call last):
File "/Public/xyzhao/data/methylation/metaxcan/MetaXcan-master/software/Predict.py", line 270, in
run(args)
File "/Public/xyzhao/data/methylation/metaxcan/MetaXcan-master/software/Predict.py", line 198, in run
results.update(gene, dosage, weight)
AttributeError: 'NoneType' object has no attribute 'update'

Here is my code:
conda activate MetaXcan
/Public/software/MetaXcan/Predict.py
--model_db_path methylation_r01_FHS.db
--vcf_genotypes chrall_qc_3.vcf.gz
--vcf_mode genotyped
--prediction_output methy_predict.txt
--prediction_summary_output methy_predict_summary.txt
--verbosity 9
--throw

i don't know how to fix it. Would you have any thoughts on that?
Looking forward to your reply
best mqyang.

@DoraCChen
Copy link

Hi, I also had a similar question -

Since Summary-PrediXcan directly computes the gene-level association results from summary GWAS data, is there any way to derive and output predicted gene expression level Tg? I know that for individual-level PrediXcan it is possible to get Tg output using the Predict.py script, but the association analyses are different between individual and summary-level PrediXcan. How can we extract this information? I looked through the wiki page that was linked for S-PrediXcan but wasn't able to find the relevant information.

@hakyim
Copy link
Contributor

hakyim commented Apr 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants