mogamun_run: mogamun_run

Description Usage Arguments Value Examples

View source: R/MOGAMUN.R

Description

Run the algorithm with the specified values for the evolution parameters

Usage

1
mogamun_run(LoadedData, Cores = 1, NumberOfRunsToExecute = 1, ResultsDir = ".")

Arguments

LoadedData

list returned by mogamun_load_data()

Cores

to run MOGAMUN in parallel on the given number of cores (in line with the number of physical processor cores) (default = 1)

NumberOfRunsToExecute

number of runs (default = 1)

ResultsDir

outputs the results in the specified folder

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
DEGPath <- system.file("extdata/DE/Sample_DE.csv", package = "MOGAMUN")
NodesScoresPath <- 
    system.file("extdata/DE/Sample_NodesScore.csv", package = "MOGAMUN")
LayersPath <- 
    paste0(system.file("extdata/LayersMultiplex", package = "MOGAMUN"), "/")
EvolutionParameters <- mogamun_init(Generations = 1, PopSize = 10)
LoadedData <- 
    mogamun_load_data(
        EvolutionParameters = EvolutionParameters,
        DifferentialExpressionPath = DEGPath,
        NodesScoresPath = NodesScoresPath,
        NetworkLayersDir = LayersPath,
        Layers = "23"
    )
ResultsDir <- system.file("SampleResults", package="MOGAMUN")
mogamun_run(
    LoadedData = LoadedData,
    Cores = 1,
    NumberOfRunsToExecute = 1,
    ResultsDir = ResultsDir
)

MOGAMUN documentation built on Feb. 14, 2021, 2 a.m.