Question: ClusterProfiler can't load gmt file
0
gravatar for sarah.blackstone7734
3.0 years 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

clusterprofiler gsea gmt • 722 views
ADD COMMENTlink modified 3.0 years ago by Guangchuang Yu1.1k • written 3.0 years ago by sarah.blackstone77340
Answer: ClusterProfiler can't load gmt file
0
gravatar for Guangchuang Yu
3.0 years ago by
Guangchuang Yu1.1k
China/Guangzhou/Southern Medical University
Guangchuang Yu1.1k 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 3.0 years ago • written 3.0 years ago by Guangchuang Yu1.1k
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 16.09
Traffic: 250 users visited in the last hour