Skip to content

Commit

Permalink
Merge branch 'reverseCumulativesGGplot' into barOikPrivateBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Jul 31, 2023
2 parents e48ebb8 + 7ede402 commit a9d5ab2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions R/ExportMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,24 @@ setMethod("plotReverseCumulatives", "GRangesList",
.plotReverseCumulatives(L, values, fitInRange, group)
})

#' @rdname plotReverseCumulatives

setMethod("plotReverseCumulatives", "GRanges",
function( object, values = c("raw", "normalized")
, fitInRange = c(10, 1000)
, group = NULL) {
if(is.null(group)) {
sampleLabels <- "No sample name available"
} else {
sampleLabels <- group
}
L <- List(score(object))
names(L) <- sampleLabels
metadata(L)$colData <- metadata(object)$colData
if (is.null(metadata(L)$colData)) metadata(L)$colData <- DataFrame(sampleLabels=sampleLabels)
.plotReverseCumulatives(L, values, fitInRange, group = NULL)
})

#' @name plotInterquantileWidth
#'
#' @title Plot cluster widths
Expand Down
8 changes: 8 additions & 0 deletions man/plotReverseCumulatives.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/tagClusters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9d5ab2

Please sign in to comment.