Weird error in the package submission
2
0
Entering edit mode
@alperkucukural-9803
Last seen 20 months ago
UMass Medical School Worcester MA

Hi,

When I am submitting a package, I got just one error that I couldn't solve it. It is working on many different machines but not on builders. 

I am using a function called enrichGO from another bioconductor package from clusterProfiler. It is saying unused argument but, that function is actually using it. 

Error in enrichGO(gene = genelist, organism = org, ont = ont, pvalueCutoff = pvalueCutoff,  : unused argument (organism = org)

How can we fix this? The issue# is 1408.

Thanks,

Alper

software error • 11k views
ADD COMMENT
0
Entering edit mode

Simply specify the OrgDb that will solve your issue.

E.g.
OrgDb='org.Hs.eg.db'

 

ADD REPLY
0
Entering edit mode
@martin-morgan-1513
Last seen 5 months ago
United States

From the clusterProfiler Bioconductor github mirror you can see that the development version of the package does not have 'organism' in its argument list, so in your code (function getEnrichGO, for instance) you are not allowed to use the argument. Maybe you are developing your code using Bioc-release and R-3.2.3, rather than Bioc-devel and R-devel?

Questions about package development should be directed to the Bioconductor developer mailing list.

ADD COMMENT
0
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 6 months ago
United States

Questions about packages you are submitting should go to bioc-devel.

But the answer is, you need to be using R-devel when you develop your package, because the next release of Bioconductor will only work with that version (which will be called R-3.3 upon its release).

The clusterProfiler package has changed between release and devel. In release, its arguments are:

> args(enrichGO)
function (gene, organism = "human", ont = "MF", pvalueCutoff = 0.05,
    pAdjustMethod = "BH", universe, qvalueCutoff = 0.2, minGSSize = 5,
    readable = FALSE)

In devel they are:

> args(enrichGO)
function (gene, OrgDb, keytype = "ENTREZID", ont = "MF", pvalueCutoff = 0.05,
    pAdjustMethod = "BH", universe, qvalueCutoff = 0.2, minGSSize = 5,
    readable = FALSE)

?enrichGO provides further information. Note that in release the organism argument is meant to be a character vector and in devel it appears this argument (no longer named, but required) is supposed to be an OrgDb object. clusterProfiler's NEWS file may also be helpful.

 

ADD COMMENT

Login before adding your answer.

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