Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgetCausalSNPs from oxgen format #9
Comments
|
Hi Blair, at the step that I suspect it is failing, the sample IDs (contained in the .sample) file are not needed yet, so this won't be the issue. Can you paste the first 10 columns and lines of the file that is failing ie from geno_case_chr22.gen? |
|
Thank you so much for the quick reply Hannah. My first few lines look like this (I added "22-" after it's not working on the original hapgen2 output): |
|
I got it working when I transform my file format into the space-delimited format and follow the example you gave for .csv file. So don't worry about it if it requires a lot of time and work to get it working on oxgen format if I'm the only person who got this error. Thanks again for your help Hannah. Feel free to keep me posted on any thing related to this. |
|
I've just made changes in the develop branch. Could you check if it works after you do: Thanks |
|
Hi Hannah, I got an error: "Error in getCausalSNPs(N = 100, NrCausalSNPs = 10, chr = 22, genoFilePrefix = "test_time_", : |
|
My script: "causalSNPs <- getCausalSNPs(N=100, NrCausalSNPs=10, chr=22,genoFilePrefix="test_time_", genoFileSuffix="_100_out.controls.gen",NrSNPsOnChromosome = 119316, format="oxgen")" |
|
Hi Hannah and Blair, I got a similar error when running runSimulation. My script: Error I get: When I did the debugging, it seemed like the error came from this function: Any help is greatly appreciated. Kind regards, |
|
PS. This error never happened in the past. Last time I ran PhenotypeSimulator was in mid-Dec 2018 (can't remember the date exactly). |
|
Apologies for the late reply - I will look into it this week. Thanks |
|
This fixed now on github version 0.3.2. I will keep the issue open until this has been updated on CRAN. |
|
Latest release including this fix on CRAN (v0.3.3), closing this now. |
I have trouble to get this function work for oxgen format. My command is:
"causalSNPs <- getCausalSNPs(N=6000, NrCausalSNPs=10, chr=22,genoFilePrefix="geno_case_", genoFileSuffix=".gen", format="oxgen", NrSNPsOnChromosome=119317)"
The error message I got is "Error in
.rowNamesDF<-(x, value = value) : invalid 'row.names' length".My guess is that if I use suffix as ".gen" it cannot read ".sample" file so that the row.names is invalid. However, I cannot proceed without suffix flag. Any idea?
Any feedback would be greatly appreciated.
Thanks so much Hannah.
-Blair