ClusterProfiler can't load gmt file
1
0
Entering edit mode
@sarahblackstone7734-11208
Last seen 8.4 years ago

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

GSEA clusterprofiler gmt • 2.9k views
ADD COMMENT
0
Entering edit mode
Guangchuang Yu ★ 1.2k
@guangchuang-yu-5419
Last seen 8 weeks ago
China/Guangzhou/Southern Medical Univer…

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 COMMENT

Login before adding your answer.

Traffic: 383 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