From c519b163b9b69835affeed1c7cbc62bb73d7a9cc Mon Sep 17 00:00:00 2001 From: Michal Adamczyk Date: Fri, 15 Sep 2017 14:33:08 +0200 Subject: [PATCH] eertree examples --- examples/eertree-ex1.dot | 46 ++++++++++++++++++++++++++++++++++++++++ examples/eertree-ex2.dot | 44 ++++++++++++++++++++++++++++++++++++++ gen_figures.sh | 3 +++ 3 files changed, 93 insertions(+) create mode 100644 examples/eertree-ex1.dot create mode 100644 examples/eertree-ex2.dot diff --git a/examples/eertree-ex1.dot b/examples/eertree-ex1.dot new file mode 100644 index 0000000..255756d --- /dev/null +++ b/examples/eertree-ex1.dot @@ -0,0 +1,46 @@ +digraph G { + size="6,6" ; + splines=true ; + 0:sw -> bb:nw [label=" b "] ; + + -1 -> a [label=" a "] ; + -1 -> b [label=" b "] ; + -1 -> c [label=" c "] ; + + b -> cbc [label=" c "] ; + c -> bcb [label=" b "] ; + cbc -> bcbcb [label=" b "] ; + bcbcb -> bbcbcbb [label=" b "] ; + bbcbcbb-> abbcbcbba [label=" a "] ; + + 0 -> -1 [style="dashed", color="blue", constraint=false] ; + -1:ne -> -1:nw [style="dashed", color="blue", constraint=false] ; + a -> 0 [style="dashed", color="blue", constraint=false] ; + b -> 0 [style="dashed", color="blue", constraint=false] ; + c -> 0 [style="dashed", color="blue", constraint=false] ; + bb -> b [style="dashed", color="blue", constraint=false] ; + bcb -> b [style="dashed", color="blue", constraint=false] ; + cbc -> c [style="dashed", color="blue", constraint=false] ; + bcbcb -> bcb [style="dashed", color="blue", constraint=false] ; + bbcbcbb -> bb [style="dashed", color="blue", constraint=false] ; + abbcbcbba -> a [style="dashed", color="blue", constraint=false] ; + + bb -> 0 [style="dotted", color="red", dir=forward] ; + bcbcb:nw -> b [style="dotted", color="red"] ; + + + -1 [ pos = "2,6!"] ; + 0 [ pos = "0,6!"] ; + a [ pos = "1,5!"] ; + b [ pos = "2,5!"] ; + c [ pos = "3,5!"] ; + bb [ pos = "0,4!"] ; + cbc [ pos = "2,3!"] ; + bcb [ pos = "3,3!"] ; + bcbcb [ pos = "2,2!"] ; + bbcbcbb [ pos = "2,1!"] ; + abbcbcbba [ pos = "2,0!"] ; + + sep=0.3 ; + nodesep=0.3 ; +} diff --git a/examples/eertree-ex2.dot b/examples/eertree-ex2.dot new file mode 100644 index 0000000..1ec610f --- /dev/null +++ b/examples/eertree-ex2.dot @@ -0,0 +1,44 @@ +digraph G { + splines=true ; + + 0 -> GC [label=" C "] + 0 -> CG [label=" G "] + 0 -> TA [label=" A "] + GC -> CGCG [label=" G "] + CGCG -> ACGCGT [label=" T "] + TA -> GTAC [label=" C "] + TA -> CTAG [label=" G "] + CTAG -> ACTAGT [label=" T "] + + + GC:ne -> 0 [style="dashed", color="blue", constraint=false] ; + CG:n -> 0 [style="dashed", color="blue", constraint=false] ; + TA:n -> 0 [style="dashed", color="blue", constraint=false] ; + GTAC:n -> 0 [style="dashed", color="blue", constraint=false] ; + CTAG -> 0 [style="dashed", color="blue", constraint=false] ; + ACGCGT:ne -> 0 [style="dashed", color="blue", constraint=false] ; + ACTAGT -> 0 [style="dashed", color="blue", constraint=false] ; + CGCG -> CG [style="dashed", color="blue", constraint=false] ; + + + 0 -> -1 [style="dashed", color="blue", constraint=false] ; + -1:ne -> -1:nw [style="dashed", color="blue", constraint=false] ; + + CGCG:nw -> 0 [style="dotted", color="red", constraint=false] ; + + + 0 [ pos="1,4!" ]; + -1 [ pos="2,4!" ]; + CG [ pos="0,2!" ]; + GC [ pos="1,2!" ]; + TA [ pos="4,2!" ]; + CGCG [ pos="1,1!" ]; + GTAC [ pos="3,1!" ]; + CTAG [ pos="5,1!" ]; + ACGCGT [ pos="1,0!" ]; + ACTAGT [ pos="4,0!" ]; + + sep=0.3 ; + nodesep=0.3 ; + +} diff --git a/gen_figures.sh b/gen_figures.sh index a34adf3..3b09786 100644 --- a/gen_figures.sh +++ b/gen_figures.sh @@ -6,3 +6,6 @@ ./all_pal_decomp_gaps_errors.x -d -L 5 -G 2 -E 2 -p < examples/ab286863.in | python drawDecomposition.py -d -E 2 -f not-maximal-all python ./drawDecomposition.py -d -E 1 < examples/vis-ex.in -f vis-ex + +cat examples/eertree-ex2.dot | neato -Tpdf > eertree-ex2.pdf +cat examples/eertree-ex1.dot | neato -Tpdf > eertree-ex1.pdf