R/plotCounts-methods.R

#' @name plotCounts
#' @author Michael Steinbaugh
#' @inherit AcidPlots::plotCounts
#' @note Updated 2022-03-07.
#'
#' @inheritParams AcidRoxygen::params
#' @inheritParams counts
#' @param ... Passthrough to `SummarizedExperiment` method defined in AcidPlots.
#' See `AcidPlots::plotCounts()` for details.
#'
#' @examples
#' data(bcb)
#'
#' ## bcbioRNASeq ====
#' g2s <- AcidGenerics::GeneToSymbol(bcb)
#' geneIds <- head(g2s[["geneId"]])
#' print(geneIds)
#' geneNames <- head(g2s[["geneName"]])
#' print(geneNames)
#' plotCounts(bcb, genes = geneIds, style = "facet")
#' plotCounts(bcb, genes = geneNames, style = "wide")
NULL



## Updated 2019-09-18.
`plotCounts,bcbioRNASeq` <- # nolint
    function(object, genes, normalized, ...) {
        args <- .normalizedPlotArgs(
            object = object,
            genes = genes,
            normalized = match.arg(normalized),
            ...
        )
        do.call(what = plotCounts, args = args)
    }

formals(`plotCounts,bcbioRNASeq`)[["normalized"]] <- # nolint
    .normalized



#' @rdname plotCounts
#' @export
setMethod(
    f = "plotCounts",
    signature = signature(object = "bcbioRNASeq"),
    definition = `plotCounts,bcbioRNASeq`
)
hbc/bcbioRnaseq documentation built on April 1, 2024, 11:31 a.m.