R unused arguments
1
0
Entering edit mode
4.7 years ago
bruseq ▴ 40

Hello,

I working on R package methylKit, while using obj=read.transcript.features("final.bed") Get an error message: Error in read.transcript.features("final.bed"): unused argument ("final.bed")

Can anyone guide how to solve this error?

R methylKit • 11k views
ADD COMMENT
0
Entering edit mode

Not sure if this is the issue but read.transcript.features() is deprecated and replaced by readTransciptFeatures() according to the project news page.

Another possibility is that you have another function with the same name.

ADD REPLY
0
Entering edit mode

Thanks for reply But again this error occurs obj=readTranscriptFeatures("final.bed") Error: could not find function "readTranscriptFeatures"

Why this "unused argument" error occur. Please guide me if there is any other way to sort this error.

ADD REPLY
0
Entering edit mode

To get proper help say which version of R and packages attached. Use sessionInfo() for this purpose.

ADD REPLY
0
Entering edit mode

I m using > sessionInfo() R version 3.3.3 (2017-03-06) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.1 LTS and methylKit_1.0.0 version and Bioconductor boiCLite_package version 3.4

ADD REPLY
1
Entering edit mode
4.7 years ago
ddiez ★ 1.9k

Please provide, as suggested in the comments, information about your system, including what version of the package you have installed. Looking at the current version in github, and as mentioned in the comments, the function read.transcript.features() has been deprecated. However, the replacement function, readTranscriptFeatures() cannot be found in the methylKit package, but in the Bioconductor package genomation. Since in your posted error message you didn't get the deprecation message (see below), I am guessing you have an earlier version of the package. Probably it is better that you have the latest release version installed.

#' @rdname genomation-deprecated
#' @aliases read.transcript.features
#' @export
read.transcript.features<-function(){
  .Deprecated("genomation::readTranscriptFeatures")
  message("Use functions in genomation package from Bioconductor\n",
          "See vignette for examples.")}
ADD COMMENT
0
Entering edit mode

Sir, I get this deprecated message when using below command > read.transcript.features function () { .Deprecated("genomation::readTranscriptFeatures") message("Use functions in genomation package from Bioconductor\n", "See vignette for examples.") } <environment: namespace:methylkit=""> I install genomation package also but same error occurs. Atlast it shows an unused argument error,

so please suggest me what next step i do.

ADD REPLY
0
Entering edit mode

Try using the whole path to your bed file.

ADD REPLY
0
Entering edit mode

Please, read the vignette in the methylKit package with instructions on how to use it. You need to call genomation::readTranscriptFeatures(), NOT the deprecated function read.transcript.features().

ADD REPLY

Login before adding your answer.

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