forked from ltatka/ReactionNetworkEvolution.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_evolution.jl
40 lines (36 loc) · 993 Bytes
/
run_evolution.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Pkg
Pkg.activate(".")
using ReactionNetworkEvolution
using ArgParse
s = ArgParseSettings()
@add_arg_table s begin
"--ngenerations"
arg_type = Int
default = -1
"--ntrials"
arg_type = Int
default = -1
"--population_size"
arg_type = Int
default = -1
"--pathtosettings"
arg_type = String
default = ""
"--outputpath"
arg_type = String
default=""
"--seed"
arg_type = Int
default = -1
"--note"
arg_type = String
default = ""
end
parsed_args = parse_args(ARGS, s)
@time ReactionNetworkEvolution.run_evolution(ngenerations=parsed_args["ngenerations"],
ntrials=parsed_args["ntrials"],
population_size=parsed_args["population_size"],
pathtosettings=parsed_args["pathtosettings"],
outputpath=parsed_args["outputpath"],
seed=parsed_args["seed"],
note=parsed_args["note"])