Skip to content

Commit

Permalink
R CoverageRDD collapse method was misnamed.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnothaft authored and heuermh committed Aug 2, 2017
1 parent 544f78e commit ca3c587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions adam-r/bdg.adam/R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ setGeneric("realignIndels",

#### Coverage operations ####

# @rdname CoverageRDD
# @export
setGeneric("collapse",
function(ardd, ...) { standardGeneric("collapse") })

# @rdname CoverageRDD
# @export
setGeneric("toFeatureRDD",
Expand Down
2 changes: 1 addition & 1 deletion adam-r/bdg.adam/R/rdd.R
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ setMethod("save",
#' @return An RDD with merged tuples of adjacent sites with same coverage.
#'
#' @export
setMethod("save", signature(ardd = "CoverageRDD"),
setMethod("collapse", signature(ardd = "CoverageRDD"),
function(ardd) {
CoverageRDD(sparkR.callJMethod(ardd@jrdd, "collapse"))
})
Expand Down

0 comments on commit ca3c587

Please sign in to comment.