Search
Question: ClusterProfiler can't load gmt file
0
gravatar for sarah.blackstone7734
15 months ago by
sarah.blackstone77340 wrote:

Hi,

I am using clusterProfiler, and I would like to load a collection of gmt files to be used for GSEA. However, the instructions given in the vinette are not working for me.

 

gmtfile <- system.file("extdata", "genesets.gmt", package="clusterProfiler")

c5 <- read.gmt(gmtfile)

 

I think there is a problem with my use of the system.file() function, because gmtfile is empty:

> gmtfile <- system.file("extdata", "genesets.gmt", package="clusterProfiler")
> gmtfile
[1] ""

 

 

I can assure everyone I am in the correct directory.

 

Versions:

ClusterProfiler: 2.2.7

qusage: 1.8.7

R: 3.2.1

ADD COMMENTlink modified 15 months ago by Guangchuang Yu800 • written 15 months ago by sarah.blackstone77340
0
gravatar for Guangchuang Yu
15 months ago by
Hong Kong
Guangchuang Yu800 wrote:

Issue 1:

 

> rvcheck::check_bioc("clusterProfiler")
devel branch is used, this function only works for release version...
$package
[1] "clusterProfiler"

$installed_version
[1] ‘3.1.5’

$latest_version
[1] "3.0.4"

$up_to_date
[1] NA

 

your R & clusterProfiler are too old.

 

Issue 2:

gmtfile <- system.file("extdata", "genesets.gmt", package="clusterProfiler")

 

you need to read the docs by :

?system.file

 

Your file, genesets.gmt, is not packed in clusterProfiler, and of course can't be located by system.file.

 

All you need is something like:

 

gmtfile <- "path_to_your_file"

 

 

ADD COMMENTlink modified 15 months ago • written 15 months ago by Guangchuang Yu800
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 256 users visited in the last hour