R/get_cluster_voting_k_votes_omada.R

Defines functions get_cluster_voting_k_votes.clusterAnalysis get_cluster_voting_k_votes

Documented in get_cluster_voting_k_votes

#' Get k vote frequencies
#'
#' @param object An object of class "clusterAnalysis"
#' @return Matrix with k vote frequencies
#' @export
#'
#' @examples
#' oa.object <- omada(toy_genes, method.upper.k = 4)
#' get_cluster_voting_k_votes(oa.object)
get_cluster_voting_k_votes <- function(object) {
    UseMethod("get_cluster_voting_k_votes")
}
#' @export
get_cluster_voting_k_votes.clusterAnalysis <- function(object) {
    object$cluster.voting.k.votes
}
BioSok/omada documentation built on Aug. 21, 2023, 2:38 p.m.