Open vermaa1 opened 1 year ago
Please let me know if you need other details to troubleshoot the issue.
@bschilder - Do you have any recommendations on how to resolve this issue?
haven't had a chance to look work on this project for a while but will let you know when i do
Hi @vermaa1, sorry for the delay, finally have some time to look at this now.
It looks like you may have sent just a portion of the console output. Would you mind sending the full output?
Actually, I think it's just abbreviated bc it exited early.
Ok, actually I think I see what's happening here. The conditioned SNPs are being extracted automatically from the topSNPs
dataframe, which contains multiple rows for the same locus. However you specify to finemap only one locus (loci = c("TCF7L2")
so there's a mismatch between the number of proposed conditioned SNPs and the number of loci actually being analyzed. But in practice, users should be able to specify however many conditioned SNPs they want per Locus.
I've just added some more flexible handling of conditioned SNPs (with warning messages about how conditioned_snps
will be used) to avoid this. If you reinstall, and rerun can you let me know if this works for you?
Okay. I will give it a try.
Did this work for you @vermaa1 ?
1. Bug description
finemap_loci()
errors out withconditioned_snps must have a length equal to 1 or the number of loci
2. Reproducible example
Code
Console output
Data
Header of lead SNP dataframe
3. Session info
(Add output of the R function
utils::sessionInfo()
below. This helps us assess version/OS conflicts which could be causing bugs.)