Skip to content

Commit

Permalink
eertree examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Adamczyk committed Sep 15, 2017
1 parent 341c06e commit c519b16
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
46 changes: 46 additions & 0 deletions examples/eertree-ex1.dot
Original file line number Diff line number Diff line change
@@ -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 ;
}
44 changes: 44 additions & 0 deletions examples/eertree-ex2.dot
Original file line number Diff line number Diff line change
@@ -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 ;

}
3 changes: 3 additions & 0 deletions gen_figures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c519b16

Please sign in to comment.