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

Unexpected error: Execution failed on sql 'SELECT gene, phi FROM extra': no such column: phi #206

Open
kys21207 opened this issue Feb 13, 2025 · 3 comments

Comments

@kys21207
Copy link

I got the unexpected error like the below.
INFO - Started metaxcan association
INFO - 10 % of model's snps found so far in the gwas study
INFO - 20 % of model's snps found so far in the gwas study
INFO - 30 % of model's snps found so far in the gwas study
INFO - 40 % of model's snps found so far in the gwas study
INFO - 50 % of model's snps found so far in the gwas study
INFO - 60 % of model's snps found so far in the gwas study
INFO - 70 % of model's snps found so far in the gwas study
INFO - 80 % of model's snps found so far in the gwas study
INFO - 80 % of model's snps used
INFO - Calibrating pvalue and zscore using phi in model, N and h2
INFO - Unexpected error: Execution failed on sql 'SELECT gene, phi FROM extra': no such column: phi

python /app/MetaXcan/software/SPrediXcan.py --model_db_path transitional_stage_B_cell.db --gwas_file dx_uc_v3.input.txt.gz --snp_column rsid --beta_column BETA --effect_allele_column ALLELE1 --non_effect_allele_column ALLELE0 --zscore_column Z --covariance transitional_stage_B_cell_covariances.txt.gz --keep_non_rsid --pvalue_column P --gwas_h2 0.1689 --gwas_N 14012 --output_file dx_uc_v3.preixcan_transitional_stage_B_cell_cells.csv

@hakyim
Copy link
Contributor

hakyim commented Feb 13, 2025 via email

@Fnyasimi
Copy link
Collaborator

Fnyasimi commented Feb 13, 2025

@kys21207 If you want to correct for the polygenicity induced inflation you can download the latest models with phi value from here with the tutorial explained here.

To run the normal SPredixcan as before just remove the --gwas_h2 and --gwas_N flag as they are only required when correcting for the polygenicity induced inflation.

@kys21207
Copy link
Author

Thank you for your comments. It is very helpful. However, I have two questions in terms of the polygenicity induced inflation .

  1. Should we always correct for inflation due to polygenicity? Are there any guidelines on when we should correct?
  2. I am very interested in scpredixcan with immune cell types of oneK1K. Is there an updated immune cell type with phi values?

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

3 participants