Comments (4)
Hi Amy,
If a gene was imputed as 0 for all subjects, then it is likely that PrediXcan is not able to match the variants in your GWAS to the variants in the models. This can be caused by several issues.
Feel free to post here the full command line you are issuing to run PrediXcan.py.
Also, the --prediction_summary_output
argument generates an additional file that might be useful.
It contains, for each gene in the database, how many variants are in its model, and how many of these variants are also available in the GWAS.
You can also implement a sanity check.
The prediction model files are sqlite databases.
You can access them programmatically in tools like R or python, and check if the variants in the model coincide with the variants in your genotypes.
For example, assuming you assemble a table with your variants like so (in a text file):
id effect_allele non_effect_allele
rsid1 C G
rsid2 A T
....
Then you can run in R
library(RSQLite)
library(tidyverse)
db <- dbConnect(RSQLite::SQLite(), "my_model.db")
weights <- dbReadTable(db, "weights")
dbDisconnect()
# then load variants and alleles
variants <- read_tsv("my_variants.txt.gz")
# aligned variants
weights %>% inner_join(variants, by=c("rsid"="id", "ref_allele"="non_effect_allele", "eff_allele"="effect_allele")) %>% nrow
# swapped variants
weights %>% inner_join(variants, by=c("rsid"="id", "ref_allele"="effect_allele", "eff_allele"="non_effect_allele")) %>% nrow
from metaxcan.
Thanks very much for the prompt response. I ran PrediXcan as follows:
python PrediXcan.py
--predict
--dosages data/dosages
--dosages_prefix chr
--samples samples.fam
--weights data/weights/gtex_v7_Brain_Cortex_imputed_europeans_tw_0.5_signif.db
--output_prefix results/${DATE}_cortex
When I included the '--prediction_summary_output' flag, I received the following error message: PrediXcan.py: error: unrecognized arguments: --prediction_summary_output
Please let me know if there are errors in the code that I have missed. If not, I will look into running the sanity check, as described. As a side note, I initially ran the above command with python 2.7.8, but I have also tried with python 3.8.1.
Thanks again for all of your help,
Amy
from metaxcan.
Hi Amy, this looks like a command meant for the deprecated implementation:
https://github.com/hakyimlab/PrediXcan
You can find a tutorial for the new implementation in this repository (https://github.com/hakyimlab/MetaXcan) following this link.
Best,
Alvaro
from metaxcan.
Closing due to inactivity
from metaxcan.
Related Issues (20)
- heritability estimates of gtex-v8 genes
- Requesting help:about QTL_to_PredictDB: AttributeError: 'NoneType' object has no attribute 'endswith'
- issue while running SMulTiXcan.py. AttributeError: 'Series' object has no attribute 'zscore' HOT 2
- MASHR-based GTEx v8 gene expression models
- 0 % of model's snps used HOT 8
- Error when running SMultiXcan.py HOT 2
- The ethnic groups of genotype reference panel
- output_file
- Is there any way to output the variant_id or rsID for the SNPs used in S-PrediXcan ? HOT 2
- fewer SNP input, fewer genes output. Why?
- GWAS_parsing.py - AttributeError: 'DataFrame' object has no attribute 'sample_size'
- S_MultiXcan error (GWAS.py script) HOT 2
- pred_perf_r2,pred_perf_pval.pred_perf_qval are always NA HOT 3
- PrediXcan.py --predict issue
- snp_map_file format for SPrediXcan?
- Unable to find gwas_parsing.py
- Seeking Assistance with PrediXcan Prediction
- 0 % of model's snps used for trans QTL
- What is the "allele average" in PrediXcan dosage format file?
- INFO - Unexpected error: DataFrame.drop() takes from 1 to 2 positional arguments but 3 were given HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metaxcan.