Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid .bed file size for yyy_Chr2.QC.bed. #363

Open
acca1562 opened this issue Aug 8, 2024 · 3 comments
Open

Error: Invalid .bed file size for yyy_Chr2.QC.bed. #363

acca1562 opened this issue Aug 8, 2024 · 3 comments

Comments

@acca1562
Copy link

acca1562 commented Aug 8, 2024

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.

@choishingwan
Copy link
Owner

choishingwan commented Aug 8, 2024 via email

@acca1562
Copy link
Author

acca1562 commented Aug 9, 2024

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.

@choishingwan
Copy link
Owner

choishingwan commented Aug 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants