Error: Invalid .bed file size for yyy_Chr2.QC.bed.
Opened this issue · 3 comments
Thank you for your help the other day. I was able to create the covariate file using the pre-imputation files. Now, when I use this covariate file with the command: Rscript PRSice.R --prsice PRSice_linux --base xxx.gz --target yyy_Chr#.QC --binary-target T --pheno zzz.txt --pheno-col www --cov www.covariate --base-maf MAF:0.01 --base-info imputationInfo:0.8 --stat BETA --beta --snp SNPID --A1 Allele2 --A2 Allele1 --pvalue p.value --out yyy
I encounter the error: Error: Invalid .bed file size for yyy_Chr2.QC.bed.
When I changed the --target yyy_Chr#.QC part to --target yyy_Chr2.QC to process only chromosome 2, the analysis completed successfully. I also confirmed that there is no corruption in yyy_Chr2.QC.bed using the md5sum command. I am at a loss for what to do next and would greatly appreciate your guidance on how to resolve this issue. Thank you very much.
Actually, the output was:
~
Loading Genotype info from target
1900 people (1000 male(s), 900 female(s)) observed
1900 founder(s) included
Error: Invalid .bed file size for yyy_Chr2.QC.bed
Based on your response, does this error mean that the file size is incorrect relative to the sample size (rather than the variant number)? I have followed the PRSice2 tutorial for the analysis, but I'm not sure how to check the file with PLINK. Could you provide some references or commands that might help? Thank you.