R/get_sample_memberships_omada.R

Defines functions get_sample_memberships.clusterAnalysis get_sample_memberships

Documented in get_sample_memberships

#' Get a dataframe with the memberships of the samples found in the input data
#'
#' @param object An object of class "clusterAnalysis"
#' @return A dataframe with the memberships of the samples found in the
#' input data
#' @export
#'
#' @examples
#' oa.object <- omada(toy_genes, method.upper.k = 4)
#' get_sample_memberships(oa.object)
get_sample_memberships <- function(object) {
    UseMethod("get_sample_memberships")
}
#' @export
get_sample_memberships.clusterAnalysis <- function(object) {
    object$sample.memberships
}
BioSok/omada documentation built on Aug. 21, 2023, 2:38 p.m.