choose_maximal_run: choose_maximal_run

View source: R/choose_maximal_run.R

choose_maximal_runR Documentation

choose_maximal_run

Description

Internal function to select the optimal corex run when biocroex is run with repeats > 1

Usage

choose_maximal_run(repeat_results, repeats, max_iter)

Arguments

repeat_results

List of repeated corex results

repeats

The number of repeat runs

max_iter

Numeric that specifies the maximum number of iterations the corex fits were run. Used in choose_maximal_run() to detect non-converged runs.

Value

Returns the run with the highest TC of all converged runs. If no runs have converged, choose_maximal_run() returns the run with maximal TC anyway - in such cases the results should not be interpreted, but may be useful for diagnostic purposes.


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.