forked from neherlab/pangraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrace.jl
32 lines (24 loc) · 940 Bytes
/
trace.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
import PanGraph
cdir = pwd()
home = replace(cdir,"/pangraph/lib/julia"=>"")
root = "$home/data/synthetic"
# usage
PanGraph.main([]) # main usage
PanGraph.main(["help", "build"]) # build usage
PanGraph.main(["help", "export"]) # export usage
PanGraph.main(["help", "generate"]) # generate usage
PanGraph.main(["help", "marginalize"]) # marginalize usage
PanGraph.main(["help", "polish"]) # polish usage
PanGraph.main(["help", "help"]) # help usage
# build
PanGraph.main(["build", "-c", "-u", "-b", "0", "-a", "0", "$root/test.fa"])
# export
PanGraph.main(["export", "-o", "$root/export", "$root/test.json"])
# export
PanGraph.main(["generate", "-o", "$root/export.json", "$root/test.fa"])
# marginalize
PanGraph.main(["marginalize", "-o", "$root/pairs", "$root/test.json"])
# polish
PanGraph.main(["polish", "-c", "-l", "10000", "$root/test.json"])
# help
PanGraph.main(["help", "build"])