montilab / hypeR

An R Package for Geneset Enrichment Workflows
https://montilab.github.io/hypeR-docs/
GNU General Public License v3.0
76 stars 11 forks source link

Cannot download genesets #17

Closed ahussain01 closed 4 years ago

ahussain01 commented 4 years ago

Hi hypeR developers,

I am currently using your hypeR package on R 4.0.0 and I am having trouble downloading the genesets. I get the following errors. I was using hypeR over a month ago and was having no issue with it at all.

Error in msigdb_download_all(species = "Homo sapiens") : could not find function "msigdb_download_all"

Error in msigdb_fetch(msigdb_path, "C2.CP.BIOCARTA") : could not find function "msigdb_fetch"

Please help.

Thanks

anfederico commented 4 years ago

We've introduced some changes to how genesets are downloaded to improve reproducibility of workflows in recent versions.

You can't bulk download all msigdb genesets but you can see all the available and download/save the ones you need.

library(hypeR)

hypeR::msigdb_info()

gsets <- msigdb_download(species="Homo sapiens", category="C2", "CP:BIOCARTA")

Please refer to the documentation for more information.

ahussain01 commented 4 years ago

Thanks a tonne.