RajLabMSSM / echodata

echoverse module: Example data.
https://rajlabmssm.github.io/echodata
0 stars 0 forks source link

Fix `portal_query` #6

Closed bschilder closed 2 years ago

bschilder commented 2 years ago
local_finemap <- portal_query(
    dataset_types = "GWAS",
    phenotypes = c("schizophrenia", "parkinson"),
    file_types = "multi_finemap",
    loci = c("BST1", "CHRNB1", "LRRK2"),
    LD_panels = "1KGphase3"
)
Fetching echolocatoR Fine-mapping Portal study metadata.
+ 2 datasets remain after filtering.
+ Searching for multi_finemap files...
OK (HTTP 200).+ 0 unique files identified.
+ Downloading 0 files...
+ Returning local file paths.
bschilder commented 2 years ago

Simple fix, had just forgetten to name sep arg here in github_list_files:

 if (return_download_api) {
        filelist <- paste(
            "https://github.com", creator, repo, "raw",
            branch, filelist, sep="/"
        )
    }