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

0 % of model's snps used #176

Open
CarlosAmadeo7 opened this issue Aug 11, 2023 · 8 comments
Open

0 % of model's snps used #176

CarlosAmadeo7 opened this issue Aug 11, 2023 · 8 comments

Comments

@CarlosAmadeo7
Copy link

Hello MetaXcan
I am trying to use SPrediXcan.py with the mashr Brain_Cortex training model db file, covariance file txt.gz, and GWAS summary data(chromosomes information compiled in just one text file).
However, it always comes up with ' 0 % of model's snps used'. I have been trying a lot but I can not fix it yet. I have checked the format of the GWAS summary file and it is almost exactly the same as that in provided example, with the only difference being that my SNPs column has a different format. The format I used is like" chr1:598941:G:A". I am not sure if this is the source of the problem. Would you help me figure out how to fix it? Thank you very much.

I attached the command I used:
./SPrediXcan.py \

--model_db_path eqtl/mashr/mashr_Brain_Cortex.db
--covariance eqtl/mashr/mashr_Brain_Cortex.txt.gz
--gwas_folder GWAS
--gwas_file_pattern ".*txt"
--snp_column SNP
--effect_allele_column Allele1
--non_effect_allele_column Allele2
--beta_column BETA
--pvalue_column PVAL
--output_file results/test.csv

This is the output:
INFO - Processing GWAS command line parameters
INFO - Building beta for manhattan_plot_input_sorted_model1_tarcchable.txt and eqtl/mashr/mashr_Brain_Cortex.db
INFO - Reading input gwas with special handling: GWAS/manhattan_plot_input_sorted_model1_tarcchable.txt
INFO - Processing input gwas
INFO - Aligning GWAS to models
INFO - Trimming output
INFO - Successfully parsed input gwas in 25.22468380700002 seconds
INFO - Started metaxcan process
INFO - Loading model from: eqtl/mashr/mashr_Brain_Cortex.db
INFO - Loading covariance data from: eqtl/mashr/mashr_Brain_Cortex.txt.gz
INFO - Processing loaded gwas
INFO - Started metaxcan association
INFO - 0 % of model's snps used
INFO - Sucessfully processed metaxcan association in 2.3573985470000025 seconds

@wei110110
Copy link

I met the same problem
Do you resolve it?

@CarlosAmadeo7
Copy link
Author

Not yet

@Fnyasimi
Copy link
Collaborator

The SNP ID in the GWAS summary stats should be the same to the VarID in the db

@DonaldSandoz2000
Copy link

I've converted it and it's still 0%, does this mean that these SNPs are not suitable for TWAS?
But I'm actually still getting results that seem reasonable.

@Fnyasimi
Copy link
Collaborator

Can you confirm the genome build of your summary stats is the same as the one in the db

@NancyZhong1126
Copy link

I also met the same problem. I converted the format and also checked the genome build. But it was still "0% of model's snps used".

@pablobio
Copy link

Hi all. I met the same problem. I already tried to use the rsID and the VarID in the GWAS data, but both results in the same message "0 % of model's snps used". I double-checked the assembly used to map the markers in the RNA-seq and the GWAS data and both are based on the same assembly. Additionally, during the analysis, I am meeting the following warning message:

INFO - Started metaxcan association
WARNING - Issues processing gene ABTB2, skipped
WARNING - Issues processing gene ALDH1L2, skipped
WARNING - Issues processing gene ANKS1A, skipped
WARNING - Issues processing gene ATXN7, skipped
WARNING - Issues processing gene BOLA1, skipped
WARNING - Issues processing gene C19H3orf18, skipped

Did someone find a solution for this issue?

Thank you very much.

@Fnyasimi
Copy link
Collaborator

Could you provide a context of how your input files look like and what command you ran?

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

6 participants