Closed PhoebeGuo97 closed 1 year ago
Hi @PhoebeGuo97, it looks like you're following the documentation from echolocatoR
1.0 with echolocatoR
2.0. Try running the example at the bottom of the help page that appears when you use: ?echolocatoR::finemap_loci
I realize this is a bit confusing as the documentation website has not yet been updated (i have to get it passing all GitHub Actions checks first). So in the meantime, please follow the documentation via the ?<function_name>
help pages instead.
Hi @bschilder, I tried using echolocatoR 2.0 and running the example. I got a new error: Error: object 'find_executables_remote' is not exported by 'namespace:echoconda'.
Hi @bschilder, I tried using echolocatoR 2.0 and running the example. I got a new error: Error: object 'find_executables_remote' is not exported by 'namespace:echoconda'.
Hi @PhoebeGuo97, sorry for the delay. This was due to a update in echoconda
where the function name had changed. Can you try updating all the echoverse packages and try again?
devtools::install_github("RajLabMSSM/echolocatoR", dependencies = TRUE)
Best, Brian
After reinstalling, can you try the following example @PhoebeGuo97 ? This seems to work for me.
#### Munge sumstats ####
fullSS_path <- MungeSumstats::format_sumstats(path = "https://ctg.cncr.nl/documents/p1651/AD_sumstats_Jansenetal_2019sept.txt.gz",
ref_genome = "GRCH37",
tabix_index=FALSE,
force_new=TRUE)
#### Prepare topSNPs dataframe ####
topSNPs <- echodata::import_topSNPs(topSS = "https://static-content.springer.com/esm/art%3A10.1038%2Fs41588-018-0311-9/MediaObjects/41588_2018_311_MOESM3_ESM.xlsx",
sheet = "Table S2",
startRow=5,
cols=1:13,
munge = TRUE)
#### Run echolocatoR ####
res <- echolocatoR::finemap_loci(
fullSS_path = fullSS_path,
topSNPs = topSNPs[1:2,], # test just the first 2 loci
finemap_methods = c("ABF","FINEMAP","SUSIE"),
dataset_name = "Jansen2019",
fullSS_genome_build = "hg19",
bp_distance = 1000,
munged = TRUE)
After reinstalling, can you try the following example @PhoebeGuo97 ? This seems to work for me.
#### Munge sumstats #### fullSS_path <- MungeSumstats::format_sumstats(path = "https://ctg.cncr.nl/documents/p1651/AD_sumstats_Jansenetal_2019sept.txt.gz", ref_genome = "GRCH37", tabix_index=FALSE, force_new=TRUE) #### Prepare topSNPs dataframe #### topSNPs <- echodata::import_topSNPs(topSS = "https://static-content.springer.com/esm/art%3A10.1038%2Fs41588-018-0311-9/MediaObjects/41588_2018_311_MOESM3_ESM.xlsx", sheet = "Table S2", startRow=5, cols=1:13, munge = TRUE) #### Run echolocatoR #### res <- echolocatoR::finemap_loci( fullSS_path = fullSS_path, topSNPs = topSNPs[1:2,], # test just the first 2 loci finemap_methods = c("ABF","FINEMAP","SUSIE"), dataset_name = "Jansen2019", fullSS_genome_build = "hg19", bp_distance = 1000, munged = TRUE)
Hi @bschilder, thanks for the update. I can successfully run the example. However, if I add "LD_reference = "UKB" in fine map_loci(), I will get ModuleNotFoundError: No module named 'scipy' at Step 2 ▶▶▶ Extract Linkage Disequilibrium and other steps won't be finished. Could you please let me know how to fix it? Thanks!
1. Bug description
Due to an issue as described in https://github.com/neurogenomics/MungeSumstats/issues/117, I ran MSS with tabix_index=FALSE and then ran tabix.createIndex(fullSS_path). After that, running finemap_loci got an error: Error in standardize_subset(locus = locus, top_SNPs = top_SNPs, fullSS_genome_build = fullSS_genome_build, : Could not find any rows in full data that matched query :(
Any help will be appreciated!
Expected behaviour
(A clear and concise description of what you expected to happen.)
2. Reproducible example
Code
Console output
Data
https://ctg.cncr.nl/documents/p1651/AD_sumstats_Jansenetal_2019sept.txt.gz
3. Session info
(Add output of the R function
utils::sessionInfo()
below. This helps us assess version/OS conflicts which could be causing bugs.)