choishingwan / PRSice

A software package for calculating, applying, evaluating and plotting the results of polygenic risk scores
http://prsice.info
GNU General Public License v3.0
187 stars 89 forks source link

Error in PRSice execution: "Error in if (argv_c[[i]]) command = paste(command, " --", i, sep = "") : missing value where TRUE/FALSE needed" #367

Open laiyongjie opened 1 month ago

laiyongjie commented 1 month ago

Hi, I'm encountering an error when running PRSice-2. The command I'm using is as follows:

Rscript ~/PRsice/PRSice.R --prsice ~/PRsice/PRSice_linux --base ~/AD_gwas_clean.txt --target /home/EXTRADATA/RAW_DATA/bulk/ukb_imp_chr#_v3 --pheno ~/AD_phenotype.txt --chr Chromosome --A1 Effect_allele --snp MarkerName --A2 Non_Effect_allele --or OR --pvalue Pvalue --type bgen --keep-ambig --allow-inter --out AD_PRS

However, I get the following error message:

Error in if (argv_c[[i]]) command = paste(command, " --", i, sep = "") : missing value where TRUE/FALSE needed Execution halted

Details: PRSice version: 2.3.5 (Linux) It seems like an issue related to missing values, but I’m not sure where the problem lies. Any help or suggestions would be appreciated! Thanks in advance.