PRSice polygenic score with only controls
1
0
Entering edit mode
5.8 years ago
aldoc ▴ 10

Hi,

I'm trying to calculate polygenic scores using PRSice; my dataset contains only controls (PLINK-coded as "-9"). When running PRSice, I get the following message:

Error in if (levels(as.factor(prof$PHENO))[1] == "1" & levels(as.factor(prof$PHENO))[2] ==  :
  missing value where TRUE/FALSE needed
Execution halted

In principle, this happens because PRSice is trying to get different levels for the phenotype in order to do a regression and compare cases vs controls. But even when specifying "no.regression T" or "no.regression T report.individual.scores T", the program gives the same output. Has anyone experienced/solved this before?

A brute-force alternative could be to insert "random" phenotypes (namely, to use both "1"s and "2"s for every pheno), and just neglect the regression outputs. But this is not quite orthodox...

Any help is appreciated. Thanks,

SNP polygenic PRSice • 3.4k views
ADD COMMENT
3
Entering edit mode
5.8 years ago

This a known bug - no regression still requires a non-missing phenotype. I recommend you run PRSice with a dummy phenotype file as you describe and the no regression option on

ADD COMMENT
0
Entering edit mode

Thanks! I tried it with two different "random phenotype" files, and gives the same results. Just for future reference, the whole command was:

R --file=PRSice_v1.25.R -q --args plink PRSice_v1.25/plink_1.9_linux_160914 base referencefile.txt target myplinkfile slower 0 sinc 0.01 supper 0.5 report.best.score.only F no.regression T report.individual.scores T covary F pheno.file randomphenotypes.txt

The final output (after automatic cleanup) was two files: PROFILES.nosex and PRSice_SCORES_AT_ALL_THRESHOLDS.txt.

Best,

ADD REPLY
0
Entering edit mode

Hi,

Even I am also getting same error. But, after giving phenotype file, this is the error now, Error in family$linkfun(mustart) : Argument mu must be a nonempty numeric vector Calls: summary ... glm -> eval -> eval -> glm.fit -> <anonymous> -> .Call Execution halted

ADD REPLY

Login before adding your answer.

Traffic: 2045 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6