phylotree 2.1.7 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/phylotree.js +872 -51
- package/dist/phylotree.min.js +1 -1
- package/package.json +4 -1
- package/src/branches.js +52 -3
- package/src/formats/newick.js +90 -0
- package/src/main.js +86 -3
- package/src/nodes.js +53 -0
- package/src/render/draw.js +62 -5
- package/src/render/edges.js +15 -3
- package/src/render/event-emitter.js +64 -0
- package/src/render/events.js +11 -1
- package/src/render/menus.js +121 -33
- package/src/render/nodes.js +12 -4
- package/src/render/selection-sets.js +259 -0
- package/src/render/styles/phylotree-menus.css +93 -0
- package/src/rooting.js +22 -0
package/README.md
CHANGED
|
@@ -64,6 +64,22 @@ curly braces directly after identifiers, e.g.:
|
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## Examples
|
|
67
|
+
|
|
68
|
+
### Interactive Examples Gallery
|
|
69
|
+
🚀 **[Browse Local Examples](examples/)** - Self-contained HTML/JS examples that you can run locally
|
|
70
|
+
|
|
71
|
+
**Available Examples:**
|
|
72
|
+
* [Basic Tree Visualization](examples/basic/01-basic-tree/) - Learn phylotree.js fundamentals
|
|
73
|
+
* [Cluster Analysis](examples/intermediate/05-cluster-analysis/) - Identify phylogenetic clusters
|
|
74
|
+
|
|
75
|
+
**Coming Soon:**
|
|
76
|
+
* Radial Tree Layout
|
|
77
|
+
* Bootstrap Value Coloring
|
|
78
|
+
* Metadata & Host Coloring
|
|
79
|
+
* Root-to-Tip Analysis
|
|
80
|
+
* Tree Center Computation
|
|
81
|
+
|
|
82
|
+
### Original Observable Notebooks
|
|
67
83
|
* [Simple Example](https://observablehq.com/@stevenweaver/phylotree-1-0-0?collection=@stevenweaver/phylotree-utilities)
|
|
68
84
|
* [Unscaled IAV HA colored by host](https://observablehq.com/@stevenweaver/phylotree-1-0-0-unscaled-iav-ha-colored-by-host?collection=@stevenweaver/phylotree-utilities)
|
|
69
85
|
* [HIV RT](https://observablehq.com/@stevenweaver/phylotree-1-0-0-hiv-rt?collection=@stevenweaver/phylotree-utilities)
|
|
@@ -74,6 +90,8 @@ curly braces directly after identifiers, e.g.:
|
|
|
74
90
|
* [Identifying Clusters in a Phylogenetic Tree with Phylotree.js](https://observablehq.com/@stevenweaver/identifying-clusters-in-a-phylogenetic-tree-with-phylotre?collection=@stevenweaver/phylotree-utilities)
|
|
75
91
|
* [Identifying Clusters in a Phylogenetic Tree with Phylotree.js Part II](https://observablehq.com/@stevenweaver/identifying-clusters-in-a-phylogenetic-tree-with-phylotre/2?collection=@stevenweaver/phylotree-utilities)
|
|
76
92
|
|
|
93
|
+
📚 View the complete [Observable Collection](https://observablehq.com/collection/@stevenweaver/phylotree-utilities)
|
|
94
|
+
|
|
77
95
|
## Options
|
|
78
96
|
|
|
79
97
|
phylotree.js supports a variety of options for common features, which can be set using
|