Describe the bug
I am new in PRSice 2.0 and I want to use it to perform a PRS analysis on BMI. It's a toy example so I am limiting my analysis only on the chrom 22. Currently I am not able to install both ggplot and data.table.
Error Log
Begin plotting
Current Rscript version = 2.3.3
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 36 did not have 3 elements
Calls: read.table -> scan
Execution halted
To Reproduce
The command that I run in the terminal is the following:
Rscript ~/antonio.nappi/PRSice2/PRSice.R --prsice ~/antonio.nappi/PRSice2/PRSice_linux --base ~/antonio.nappi/bmi-prsv2/BMI_chr_22_no_dup.sumstat --target ~/dataset/genos/imputed/bfile-filtered-hg38/ukb_imp_chr22_v3_filtered_hg38 --binary-target F --base-maf MAF:0.01 --base-info INFO:0.8 --out ~/antonio.nappi/bmi-prsv2/PRSice --cov ~/users/antonio.nappi/prs-bmi-v2/split_10_fold/split_1/covars_train_tab_sep.csv --pheno ~/users/antonio.nappi/eids_pheno.csv --ignore-fid Additional context
I have used GCTA to perform the GWAS analysis.
Here there is the sumstat file
CHR SNP POS A1 A2 N AF1 BETA SE P
22 22:16498458_G_A 15479504 A G 213183 0.0685655 0.0011949 0.0059535 0.840929
22 22:16495833_C_A 15482129 A C 217841 0.0780776 0.00016822 0.00553374 0.975749
22 22:16488702_G_C 15489260 C G 213695 0.0755539 0.000114636 0.00567338 0.983879
22 22:16488635_C_A 15489327 A C 213521 0.0763297 0.000305003 0.0056494 0.956944
22 22:16464274_A_C 15513688 C A 205582 0.0732263 -0.000321583 0.00588967 0.956456
22 22:16057417_T_C 15920590 C T 217841 0.898582 -0.000494364 0.00495179 0.920475
22 22:16054454_C_T 15923554 T C 214479 0.0999841 0.000306892 0.00502329 0.951284
22 22:16053862_C_T 15924146 T C 215354 0.0996197 0.000283129 0.00502081 0.95503
22 22:16051249_T_C 15926767 C T 216406 0.0990384 -0.00071405 0.0050229 0.886955
Edit.
I found the error, I had a missing value in the pheno file. Could I suggest to make the error message more clear (i.e. specifing which file misses values)?
Describe the bug I am new in PRSice 2.0 and I want to use it to perform a PRS analysis on BMI. It's a toy example so I am limiting my analysis only on the chrom 22. Currently I am not able to install both ggplot and data.table.
Error Log Begin plotting Current Rscript version = 2.3.3 Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 36 did not have 3 elements Calls: read.table -> scan Execution halted
To Reproduce The command that I run in the terminal is the following:
Rscript ~/antonio.nappi/PRSice2/PRSice.R --prsice ~/antonio.nappi/PRSice2/PRSice_linux --base ~/antonio.nappi/bmi-prsv2/BMI_chr_22_no_dup.sumstat --target ~/dataset/genos/imputed/bfile-filtered-hg38/ukb_imp_chr22_v3_filtered_hg38 --binary-target F --base-maf MAF:0.01 --base-info INFO:0.8 --out ~/antonio.nappi/bmi-prsv2/PRSice --cov ~/users/antonio.nappi/prs-bmi-v2/split_10_fold/split_1/covars_train_tab_sep.csv --pheno ~/users/antonio.nappi/eids_pheno.csv --ignore-fid
Additional context I have used GCTA to perform the GWAS analysis. Here there is the sumstat filehere the covars file
while the pheno file is the following:
Moreover I would like to know if I have to include or not the --ignore-fid option