R/sampleData.R

#' Sample data
#'
#' Metadata that describes the samples.
#'
#' This is a complement to the standard
#' [`colData()`][SummarizedExperiment::colData()] function, but improves support
#' for accessing sample metadata for datasets where multiple items in the
#' columns map to a single sample (e.g. cells for a single-cell RNA-seq
#' experiment).
#'
#' @export
#' @inheritParams AcidRoxygen::params
#'
#' @return `DataFrame`.
#'
#' @examples
#' showMethods("sampleData")
setGeneric(
    name = "sampleData",
    def = function(object, ...) {
        standardGeneric("sampleData")
    }
)



#' @rdname sampleData
#' @export
setGeneric(
    name = "sampleData<-",
    def = function(object, ..., value) {
        standardGeneric("sampleData<-")
    }
)
acidgenomics/AcidGenerics documentation built on April 9, 2024, 1:29 a.m.