R/get_feature_selection_optimal_number_of_features_omada.R

Defines functions get_feature_selection_optimal_number_of_features.clusterAnalysis get_feature_selection_optimal_number_of_features

Documented in get_feature_selection_optimal_number_of_features

#' Get the optimal number of features
#'
#' @param object An object of class "clusterAnalysis"
#' @return The optimal number of features
#' @export
#'
#' @examples
#' oa.object <- omada(toy_genes, method.upper.k = 6)
#' get_feature_selection_optimal_number_of_features(oa.object)
get_feature_selection_optimal_number_of_features <- function(object) {
    UseMethod("get_feature_selection_optimal_number_of_features")
}

#' @export
get_feature_selection_optimal_number_of_features.clusterAnalysis <-
    function(object) {
        object$feature.selection.optimal.number.of.features
}
BioSok/omada documentation built on Aug. 21, 2023, 2:38 p.m.