Skip to content

Commit 183e361

Browse files
author
Russell Neches
committed
documentation updates (and a cute little logo!)
1 parent ca440b5 commit 183e361

14 files changed

Lines changed: 140 additions & 23 deletions

docs/SuchTree_API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: SuchTree's API
3+
subtitle: A somewhat consice description of the core features of SuchTree.
4+
icon: material/file-document-outline
5+
---
6+
17
# SuchTree Class API Reference
28

39
## Overview

docs/api.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
---
2+
title: API Reference
3+
subtitle: A complete, always up-to-date reference of SuchTree's API.
4+
icon: material/qrcode-scan
5+
---
6+
17
# API Reference
28

9+
This reference is automatically generated from the [source code](https://github.com/ryneches/SuchTree)
10+
and docstrings using [`mkdockstrings`](https://mkdocstrings.github.io/). This page will always
11+
be up to date to the latest git commit, but you may prefer [documentation written by an actual
12+
human](SuchTree_API.md) to be somewhat more palatable.
13+
14+
Because `SuchTree` and `SuchLinkedTrees` are written in Cython and compiled into a shared library,
15+
the `mkdocstrings` is not (yet) able to extract the function implementations for documentation purposes.
16+
Sorry about that. You can always look in the source code.
17+
318
## SuchTree.SuchTree
419

520
::: SuchTree.MuchTree.SuchTree

docs/assets/cpu-tree.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/benchmarks.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Benchmarks
3+
subtitle: Get a general idea of how SuchTree performs.
4+
icon: material/gauge
5+
---
6+
17
### Benchmarks
28

39
`SuchTree` is motivated by the observation that the memory usage of distance

docs/datasets.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
### Example datasets
1+
---
2+
title: Example datasets
3+
subtitle: Data from the scientific literature that you can use with SuchTree.
4+
icon: material/bee-flower
5+
---
26

37
For analysis of ecological interactions, `SuchTree` is distributed
48
with a curated collection of several different examples from the
@@ -7,7 +11,7 @@ various properties, along with an annotated notebook of `Python` code
711
for generating them, is also included. Interactions are registered in
812
a JSON object (`data/studies.json`).
913

10-
#### Host/Parasite
14+
## Host/Parasite
1115

1216
* **gopher-louse** Hafner, M.S. & Nadler, S.A. 1988. *Phylogenetic trees support the coevolution of parasites and their hosts.* Nature 332: 258-259)
1317
* **dove-louse** Dale H. Clayton, Sarah E. Bush, Brad M. Goates, and Kevin P. Johnson. 2003. *Host defense reinforces host–parasite cospeciation.* PNAS.
@@ -20,7 +24,7 @@ Joost A. M. Raeymaekers, Pascal I. Hablützel, Céline Gillardin, Bart Hellemans
2024
Floris C. Breman, Stephan Koblmüller, Christian Sturmbauer, Jos Snoeks,
2125
Filip A. M. Volckaert & Tine Huyse. 2015. *Hidden biodiversity in an ancient lake: phylogenetic congruence between Lake Tanganyika tropheine cichlids and their monogenean flatworm parasites*, Scientific Reports.
2226

23-
#### Plant/Pollinator (visitor) interactions
27+
## Plant/Pollinator (visitor) interactions
2428

2529
These were originally collected by Enrico Rezende *et al.* :
2630

@@ -64,7 +68,7 @@ These were originally collected by Enrico Rezende *et al.* :
6468
* **smal** Small, E. 1976. *Insect pollinators of the Mer Bleue peat bog of Ottawa.* Canadian Field Naturalist 90:22-28.
6569
* **smra** Smith-Ramírez C., P. Martinez, M. Nuñez, C. González and J. J. Armesto 2005 *Diversity, flower visitation frequency and generalism of pollinators in temperate rain forests of Chiloé Island,Chile.* Botanical Journal of the Linnean Society, 2005, 147, 399–416.
6670

67-
#### Frugivory interactions
71+
## Frugivory interactions
6872

6973
* **bair** Baird, J.W. 1980. *The selection and use of fruit by birds in an eastern forest.* Wilson Bulletin 92: 63-73.
7074
* **beeh** Beehler, B. 1983. *Frugivory and polygamy in birds of paradise.* Auk, 100: 1-12.

docs/examples/SuchLinkedTree_examples.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"---\n",
8+
"title: SuchLinkedTrees, with working examples\n",
9+
"subtitle: Worked examples illustrating some basic applications of SuchLinkedTrees. This file is available as a Jupyter Notebook in the project repository under docs/examples.\n",
10+
"icon: material/notebook-outline\n",
11+
"---"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {},

docs/examples/SuchLinkedTree_examples.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# SuchLinkedTree_examples
1+
---
2+
title: SuchLinkedTrees, with working examples
3+
subtitle: Worked examples illustrating some basic applications of SuchLinkedTrees. This file is available as a Jupyter Notebook in the project repository under docs/examples.
4+
icon: material/notebook-outline
5+
---
26

37
# SuchLinkedTrees
48

@@ -185,7 +189,7 @@ seaborn.jointplot( 'microbe tree distances', 'host tree distances',
185189

186190

187191

188-
![png](output_12_1.png)
192+
![png](output_13_1.png)
189193

190194

191195

@@ -379,7 +383,7 @@ seaborn.jointplot( data.n_leafs, data.r, alpha=0.3, size=8 )
379383

380384

381385

382-
![png](output_21_1.png)
386+
![png](output_22_1.png)
383387

384388

385389

@@ -481,7 +485,7 @@ seaborn.jointplot( ld['TreeA'], ld['TreeB'] )
481485

482486

483487

484-
![png](output_25_1.png)
488+
![png](output_26_1.png)
485489

486490

487491

docs/examples/SuchTree_examples.ipynb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"editable": true,
7+
"slideshow": {
8+
"slide_type": ""
9+
},
10+
"tags": []
11+
},
12+
"source": [
13+
"---\n",
14+
"title: SuchTree, with working examples\n",
15+
"subtitle: Worked examples illustrating some basic applications of SuchTree. This file is available as a Jupyter Notebook in the project repository under docs/examples.\n",
16+
"icon: material/notebook-outline\n",
17+
"---"
18+
]
19+
},
320
{
421
"cell_type": "markdown",
522
"metadata": {},
@@ -844,7 +861,7 @@
844861
],
845862
"metadata": {
846863
"kernelspec": {
847-
"display_name": "Python 3",
864+
"display_name": "Python 3 (ipykernel)",
848865
"language": "python",
849866
"name": "python3"
850867
},
@@ -858,9 +875,9 @@
858875
"name": "python",
859876
"nbconvert_exporter": "python",
860877
"pygments_lexer": "ipython3",
861-
"version": "3.6.3"
878+
"version": "3.12.11"
862879
}
863880
},
864881
"nbformat": 4,
865-
"nbformat_minor": 1
882+
"nbformat_minor": 4
866883
}

docs/examples/SuchTree_examples.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# SuchTree_examples
1+
---
2+
title: SuchTree, with working examples
3+
subtitle: Worked examples illustrating some basic applications of SuchTree. This file is available as a Jupyter Notebook in the project repository under docs/examples.
4+
icon: material/notebook-outline
5+
---
26

37
# SuchTree
48

@@ -94,7 +98,7 @@ ete_tree.render("%%inline", w=120, units="mm", tree_style=ts)
9498

9599

96100

97-
![png](output_3_0.png)
101+
![png](output_4_0.png)
98102

99103

100104

@@ -216,7 +220,7 @@ seaborn.clustermap( df, xticklabels=False, cmap='viridis', figsize=(6,6) )
216220

217221

218222

219-
![png](output_15_1.png)
223+
![png](output_16_1.png)
220224

221225

222226

@@ -268,7 +272,7 @@ seaborn.clustermap( df, xticklabels=False, cmap='viridis', figsize=(6,6) )
268272

269273

270274

271-
![png](output_20_1.png)
275+
![png](output_21_1.png)
272276

273277

274278

@@ -307,7 +311,7 @@ seaborn.clustermap( df, xticklabels=False, cmap='viridis', figsize=(6,6) )
307311

308312

309313

310-
![png](output_23_1.png)
314+
![png](output_24_1.png)
311315

312316

313317

@@ -373,7 +377,7 @@ seaborn.jointplot( 'ML', 'neighbor joining', data=df, alpha=0.3, size=6 )
373377

374378

375379

376-
![png](output_28_1.png)
380+
![png](output_29_1.png)
377381

378382

379383

docs/examples/output_21_1.png

-59.4 KB
Loading

0 commit comments

Comments
 (0)