getOptimalKValue: Calculating the optimal value of k. getOptimalKValue

View source: R/metricsAnalysis.R

getOptimalKValueR Documentation

Calculating the optimal value of k. getOptimalKValue

Description

This method finds the optimal value of K per each metric.

Usage

getOptimalKValue(stabData, qualData, k.range = NULL)

Arguments

stabData

An output ExperimentList from a stabilityRange execution.

qualData

An output SummarizedExperiment from a qualityRange execution.

k.range

A range of K values to limit the scope of the analysis.

Value

It returns a dataframe following the schema: metric, optimal_k.

Examples

# Using example data from our package
data("rnaMetrics")
stabilityData <- stabilityRange(data=rnaMetrics, k.range=c(2,4), bs=20, getImages = FALSE)
qualityData <- qualityRange(data=rnaMetrics, k.range=c(2,4), getImages = FALSE)
kOptTable = getOptimalKValue(stabilityData, qualityData)



neobernad/evaluomeR documentation built on Nov. 12, 2024, 11:29 p.m.