From 9c52cae24529b0733dbc245b79c4d9eb8f8e94fc Mon Sep 17 00:00:00 2001 From: Aly Cerruti Date: Fri, 15 Oct 2021 11:43:34 -0700 Subject: [PATCH] Add node for Newick Format --- molecular-evolutionary-genetics-analysis.md | 4 + newick-format.md | 97 +++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 newick-format.md diff --git a/molecular-evolutionary-genetics-analysis.md b/molecular-evolutionary-genetics-analysis.md index df3b964..14ddff9 100644 --- a/molecular-evolutionary-genetics-analysis.md +++ b/molecular-evolutionary-genetics-analysis.md @@ -11,3 +11,7 @@ - [[Newick Format]] - [[CSV]] - Does alignment via [[nucleotides]] + +[//begin]: # "Autogenerated link references for markdown compatibility" +[Newick Format]: newick-format "Newick Format" +[//end]: # "Autogenerated link references" diff --git a/newick-format.md b/newick-format.md new file mode 100644 index 0000000..69c285c --- /dev/null +++ b/newick-format.md @@ -0,0 +1,97 @@ +# Newick Format + +- Format to represent trees with distances and branch names + +# Examples + +Printed using DendroPY options +`show_internal_node_labels = True`, `width=40`, `plot_metric="length"`. + +## Single Descendant + +``` +(B)A; +``` +``` +A------------------------------------- B +``` + +## Two Descendants + +``` +(B,C)A; +``` +``` +/------------------------------------- B +A +\------------------------------------- C +``` + +## Two Levels Of Descendants + +``` +((D,E)B,(F,G)C)A; +``` +``` + /------------------ D +/------------------B +| \------------------ E +A +| /------------------ F +\------------------C + \------------------ G +``` + +## Distances + +``` +(A:1,B:2); +``` +``` +/------------------ A +@ +\------------------------------------- B +``` + +## Big Example + +``` +( + ( + ( + ( + Dasyatis_laosensis:0.00864712, + Hemitrygon_akajei:0.02501331 + ):0.00555551, + Dasyatis_sp._TT:0.01190329 + ):0.07844344, + Maculabatis_gerrardi:0.10443933 + ):0.03362855, + ( + Aetobatus_flagellum:0.06712780, + ( + Aetobatus_narinari:0.00190402, + Aetobatus_ocellatus:0.00159879 + ):0.05608476 + ):0.06364667, + Squatina_squatina:0.24404039 +); +``` + +``` + /Dasyatis laosensis + /@ + /-----@\- Hemitrygon akajei + | | +/-@ \ Dasyatis sp. TT +| | +| \------- Maculabatis gerrardi +| +| /----- Aetobatus flagellum +@---@ +| | /Aetobatus narinari +| \----@ +| \Aetobatus ocellatus +| +\------------------ Squatina squatina +```