Skip to content

Commit

Permalink
Merge pull request #94 from natetrux/master
Browse files Browse the repository at this point in the history
Distance Metrics Documentation
  • Loading branch information
eaton-lab authored Sep 4, 2024
2 parents cb2f6fd + 11a9245 commit f9eb409
Show file tree
Hide file tree
Showing 6 changed files with 1,650 additions and 9 deletions.
796 changes: 796 additions & 0 deletions docs/docs-drafts.ipynb

Large diffs are not rendered by default.

523 changes: 523 additions & 0 deletions docs/node-distance.ipynb

Large diffs are not rendered by default.

323 changes: 323 additions & 0 deletions docs/tree-distance.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ nav:
# - composite plots
# - Modifying axes style: ...

- Consensus Trees: ...
#- Consensus Trees: ...
# - Species/Demographic Trees: ...
# - Admixture/Networks: ...
# - Admixture/Networks: ... # TO DO

# - <i>.mod</i> - tree modifications:
- <i>.mod</i> - tree modification:
- rooting trees: rooting.ipynb
- topology changes: mod-topology.ipynb
- edge/dist changes: mod-edges.ipynb
- edge/dist changes: mod-edges.ipynb #TO DO
# - Tree moves: ...

- <i>.enum</i> - tree enumeration:
Expand All @@ -116,9 +116,9 @@ nav:
- quadripartition methods: quadripartitions.ipynb
# - other: ...

- <i>.distance</i> - tree/node dists:
- node distances: ...
- tree distances: ...
- <i>.distance</i> - tree/node dists: # TO DO
- node distances: node-distance.ipynb
- tree distances: tree-distance.ipynb

- <i>.pcm</i> - evol analyses:
- Continuous traits: ...
Expand All @@ -130,7 +130,7 @@ nav:
# - MulTree analysis: ...
# - Tree inference: ...

- <i>.annotate</i> - add to drawings: ...
- <i>.annotate</i> - add to drawings: ... # TO DO

- <i>.rtree</i> - random trees: random-trees.ipynb

Expand Down
2 changes: 1 addition & 1 deletion toytree/distance/_src/quartet_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_quartet_resolutions_table(tree: ToyTree, df: bool = False) -> np.ndarray
assert len(snames) == len(set(snames)), "duplicate tip names are not allowed"

# an empty array to enumerate all quartets and their resolutions
ntips = toytree.enum.get_n_quartets(tree.ntips)
ntips = toytree.enum.get_num_quartets(tree.ntips)
arr = np.zeros(ntips, dtype=np.int_)

# a dict to map {tipset: resolved} as {frozenset(abcd): tuple(abcd)}
Expand Down
1 change: 0 additions & 1 deletion toytree/distance/_src/treedist.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"get_treedist_rfg_msi",
"get_treedist_rfg_spi",
"get_treedist_rfg_mci",
"get_treedist_rfg_jac",
]


Expand Down

0 comments on commit f9eb409

Please sign in to comment.