GSEABase getGmt() fails when more than 1 line contains duplicates
1
0
Entering edit mode
dondelelcaro ▴ 10
@dondelelcaro-11528
Last seen 7.5 years ago
USA/Champaign/University of Illinois
> temp <- getGmt("Human_NetPath_September_01_2016_Entrezgene.gmt",geneIdType=EntrezIdentifier())
Error in doWithOneRestart(return(expr), restart) : bad error message

the failure is because .warningf() is called with more than one string as its second argument. Changing R/getObjects.R with the following diff corrects this error:

 

--- r-bioc-gseabase-1.34.0.orig/R/getObjects.R
+++ r-bioc-gseabase-1.34.0/R/getObjects.R
@@ -168,7 +168,7 @@
     }, dups)
     if (length(dups))
         .warningf("%d record(s) contain duplicate ids: %s",
-                  length(dups), selectSome(sort(ls(dups))))
+                  length(dups), paste(collapse=", ",selectSome(sort(ls(dups)))))
     GeneSetCollection(lapply(lines, function(line) {
         GeneSet(unlist(line[-(1:2)]),
                 geneIdType=geneIdType,

 

gseabase bug • 1.7k views
ADD COMMENT
1
Entering edit mode
@martin-morgan-1513
Last seen 14 hours ago
United States

Thanks, this has been fixed in GSEABase 1.34.1 (release) and 1.35.4 (devel).

ADD COMMENT

Login before adding your answer.

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