Closed umakann-db closed 2 years ago
I have never seen the first error before.
For the second one, it is usually a matter of swapping the alleles.
Please give a bit more info on when do you get the first error. What type of architecture / installation you're running this on.
I am seeing this error every time I run the below code.
list_snp_id <- list("21_10460657_A_G")
rds <- bigsnpr::snp_readBGEN(
bgenfiles = "/databricks/driver/simulate_50000_samples_1000_simulated.bgen",
list_snp_id = list_snp_id,
backingfile = "/databricks/driver/test1"
)
Platform: Databricks Databricks Runtime Version: 9.1 LTS (includes Apache Spark 3.1.2, Scala 2.12) Docker Image: projectglow/databricks-glow:1.1.2
Could you run debugonce to tell me exactly which line of the code inside the function is failing?
Thank you so much for your response. Here's the actual error from the command.
terminate called after throwing an instance of 'Rcpp::exception'
what(): Probabilities should be stored using 8 bits.
Changed the number of bits used to represent each probability value to 8 and it's working fine.
I am trying to use the snp_readBGEN() function to read BGEN files. I see the below errors for different SNP lists.
Error1: RserveException: eval failed
Code snippet used for Error1
Error2 : Some variants have not been found (stored in '/databricks/driver/simulate_50000_samples_1000_simulated_not_found.rds'). Some(
Error: Some variants have not been found (stored in '/databricks/driver/simulate_50000_samples_1000_simulated_not_found.rds').
) Error: Some variants have not been found (stored in '/databricks/driver/simulate_50000_samples_1000_simulated_not_found.rds').Some variants from bgen file.
Any advice on this issue? Thank you very much.
Originally posted by @umakann-db in https://github.com/privefl/bigsnpr/issues/97#issuecomment-996121535