system.file() failed to load .gmt file.
1
0
Entering edit mode
@d312723d
Last seen 19 months ago
Poland

Hello everyone Im trying to load .gmt file into my project. Unfortunately function system.file() can't find my file. Pathway file has been downloaded from MSigDB - curated gene sets. R version - 4.2.1 Rstudio version - 2022.07.1 Build 554 pathwayPCA version - 1.12.0

I tried adding path to sytem.file() and still no success.

gmt_path <- system.file('extdata', 'c2.all.v2022.1.Hs.entrez.gmt', package = "pathwayPCA" ,mustWork = TRUE)
pathwayPCA Gsea • 1000 views
ADD COMMENT
0
Entering edit mode

Hi Mikolaj, I'm the maintainer for pathwayPCA. If you run into bugs, please report them here: https://github.com/gabrielodom/pathwayPCA/issues

ADD REPLY
2
Entering edit mode
@james-w-macdonald-5106
Last seen 8 days ago
United States

Did you actually download the .gmt file into the extdata subdirectory of the pathwayPCA library directory? If so, don't do that. The library directory structure is meant to contain code and data for the package, not files that the end user has downloaded.

More likely you have downloaded the file to your working directory, which is what you should have done, and to load the file you don't need system.file. Instead you can just point to the file name without the path, because R will look in your working directory for files.

ADD COMMENT
0
Entering edit mode

Thank you for the answer.

ADD REPLY

Login before adding your answer.

Traffic: 958 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6