This function sets the active run for the GeneDiscoveR object by updating the relevant fields in the object.

set_run_active(GeneDiscoveRobject = NULL, InflationValue = 1.8, cores = 1)

Arguments

GeneDiscoveRobject

The GeneDiscoveR object for which the active run needs to be set.

InflationValue

The inflation value to be set for the active run, only for OrthoFinder run.

cores

The number of cores to be used for parallel processing (default is 1), only for InParanoiDB run.

Value

The updated GeneDiscoveR object with the active run set.

Examples

# Create a GeneDiscoveR object
N0sDir <- system.file("extdata", "N0-1dot3-6", package = "GeneDiscoveR")
overallsDir <- system.file("extdata", "Comparatives-1dot3-6", package = "GeneDiscoveR")
dataFile <- system.file("extdata", "annotatedCDSs.tsv", package = "GeneDiscoveR")
minInflation <- 1.3
maxInflation <- 6
stepInflation <- 0.1

GeneDiscoveRobject <- GeneDiscoveR(overallsDir = overallsDir, N0sDir = N0sDir, dataFile = dataFile, minInflation = minInflation, maxInflation = maxInflation, stepInflation = stepInflation)

# Set active run
GeneDiscoveRobject <- set_run_active(GeneDiscoveRobject, InflationValue = 1.8)
#> -----------From OrthoFinder-----------
#> The process has been completed successfully