PRSice icon indicating copy to clipboard operation
PRSice copied to clipboard

Trying to run PRSice on files received by a collaborator but BGEN file is not being opened

Open varsh19 opened this issue 8 months ago • 1 comments

I used the following command to calculate PRS of a sequenced file coming from a collaborator. I imputed the vcf file which gave me separate vcf files for each chromosome. I then converted them to bgen and generated bgi and sample files too.

Rscript ../PRSice/PRSice.R --base ../ukb_prs/PGS000785.txt --target ../tempus_files/202030905/207532750086_R08C02/#,../tempus_files/202030905/207532750086_R08C02/1.sample --type bgen --snp SNP --chr CHR --bp BP --A1 A1 --A2 A2 --stat BETA --pvalue P --binary-target T --no-clump --fastscore --ignore-fid --pheno ../tempus_files/202030905/207532750086_R08C02/207532750086_R08C02_pheno.txt --out 207532750086_R08C02_results --prsice ../PRSice/PRSice_linux

But I get the following error: Error: Cannot open bgen file ../tempus_files/202030905/207532750086_R08C02/1.bgen

The paths are all correct, but I cannot identify what the problem is. Please help me figure this out.

varsh19 avatar Nov 14 '23 02:11 varsh19

Did you check if you can see the file "../tempus_files/202030905/207532750086_R08C02/1.bgen" in the folder that your run the script?

choishingwan avatar Feb 02 '24 19:02 choishingwan