summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-gd-phylogenetics.tex
blob: d6ce489fc5210b96818f359f310e628718ec4e12 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
% Copyright 2018 by Sarah Mäusle and Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Free Documentation License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.


\section{Graph Drawing Layouts: Phylogenetic Trees}
\label{section-library-graphdrawing-phylogenetics}

{\noindent {\emph{by Sarah Mäusle and Till Tantau}}}

\ifluatex
\else
    This section of the manual can only be typeset using Lua\TeX.
    \expandafter\endinput
\fi

\tikzset{/graph drawing/phylogenetic inner node/.style={
    /tikz/.cd,
    draw, circle, inner sep=0pt, minimum size=5pt}
}
\tikzset{/graph drawing/phylogenetic edge/.style={
    /tikz/.cd,
    thick, rounded corners,edge node={node[auto,font=\tiny, inner  sep=2pt]{}}}
}

\includeluadocumentationof{pgf.gd.phylogenetics.library}
\includeluadocumentationof{pgf.gd.phylogenetics.PhylogeneticTree}


\subsection{Generating a Phylogenetic Tree}

... \todosp{I guess something should be added here, right?}

When a phylogenetic tree is generated, new nodes and edges get created. In
order to give you a chance at styling them, the following styles are executed:

\begin{stylekey}{/graph drawing/phylogenetic inner node}
    The style is added every newly created inner node. In this manual, this key
    is set to:
    %
\begin{codeexample}[code only]
\pgfgdset{phylogenetic inner node/.style={
    /tikz/.cd, draw, circle, inner sep=0pt, minimum size=5pt
  }
}
\end{codeexample}
    %
\end{stylekey}

\begin{stylekey}{/graph drawing/phylogenetic edge=\meta{length}}
    The style is added every newly created phylogenetic edge. The \meta{length}
    will be set to the computed evolutionary length of the edge. In this
    manual, this key is set to:
    %
\begin{codeexample}[code only]
\pgfgdset{phylogenetic edge/.style={
    /tikz/.cd, thick, rounded corners
  }
}
\end{codeexample}
    %
\end{stylekey}

\includeluadocumentationof{pgf.gd.phylogenetics.AuthorDefinedPhylogeny}
\includeluadocumentationof{pgf.gd.phylogenetics.SokalMichener1958}
\includeluadocumentationof{pgf.gd.phylogenetics.BalancedMinimumEvolution}
\includeluadocumentationof{pgf.gd.phylogenetics.BalancedNearestNeighbourInterchange}


\subsection{Laying out the Phylogram}

\includeluadocumentationof{pgf.gd.phylogenetics.Maeusle2012}


%%% Local Variables:
%%% mode: latex
%%% TeX-master: "pgfmanual-pdftex-version"
%%% End: