Skip to content

Commit 12b610f

Browse files
committed
remove colDataCols argument from signature
- move in MAE longFormat method
1 parent 49b4fd5 commit 12b610f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/MultiAssayExperiment-helpers.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,13 @@ setMethod("mergeReplicates", "ANY",
348348
#' @export
349349
setGeneric(
350350
"longFormat",
351-
function(object, colDataCols = NULL, i = 1L, ...)
351+
function(object, i = 1L, ...)
352352
standardGeneric("longFormat")
353353
)
354354

355355
#' @rdname MultiAssayExperiment-helpers
356356
#' @exportMethod longFormat
357-
setMethod("longFormat", "ANY", function(object, colDataCols, i = 1L, ...) {
357+
setMethod("longFormat", "ANY", function(object, i = 1L, ...) {
358358
rowNAMES <- rownames(object)
359359
if (is.null(rowNAMES))
360360
rowNames <- as.character(seq_len(nrow(object)))
@@ -378,7 +378,7 @@ setMethod("longFormat", "ANY", function(object, colDataCols, i = 1L, ...) {
378378
#' @exportMethod longFormat
379379
setMethod(
380380
"longFormat", "ExperimentList",
381-
function(object, colDataCols, i = 1L, ...) {
381+
function(object, i = 1L, ...) {
382382
samelength <- identical(length(object), length(i))
383383
if (!samelength && identical(length(i), 1L))
384384
i <- rep(i, length(object))
@@ -451,7 +451,7 @@ setMethod(
451451
#' @exportMethod longFormat
452452
setMethod(
453453
"longFormat", "MultiAssayExperiment",
454-
function(object, colDataCols = NULL, i = 1L, ...) {
454+
function(object, i = 1L, colDataCols = NULL, ...) {
455455
if (any(.emptyAssays(experiments(object))))
456456
object <- .dropEmpty(object, warn = FALSE)
457457

0 commit comments

Comments
 (0)