getOptimalKValue: Calculating the optimal value of k. getOptimalKValue

Description Usage Arguments Value Examples

View source: R/metricsAnalysis.R

Description

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

Usage

1
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

1
2
3
4
5
# 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)

evaluomeR documentation built on March 15, 2021, 6 p.m.