@grunwaldlab/heat-tree 0.1.1 → 0.2.0

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 CHANGED
@@ -26,20 +26,8 @@ npm install heat-tree
26
26
 
27
27
  ```javascript
28
28
  import { heatTree } from 'heat-tree';
29
-
30
29
  const newickString = "(A:0.1,B:0.2,(C:0.3,D:0.4):0.5);";
31
-
32
- heatTree(
33
- {
34
- trees: [
35
- {
36
- name: 'My Tree',
37
- newick: newickString
38
- }
39
- ]
40
- },
41
- '#container'
42
- );
30
+ heatTree('#container', {name: 'My Tree', newick: newickString});
43
31
  ```
44
32
 
45
33
  ## Usage
@@ -93,7 +81,8 @@ heatTree(
93
81
  );
94
82
  ```
95
83
 
96
- Metadata tables should be tab-separated or comma-separated text with a `node_id` column that corresponds to node IDs in the newick string.
84
+ Metadata tables should be tab-separated or comma-separated text with a column that corresponds to node IDs in the newick string.
85
+ The column that contains node IDs is automaticly selected.
97
86
 
98
87
  ### Default Aesthetic Mappings
99
88
 
@@ -222,7 +211,8 @@ Use the toolbar's "Data" tab to switch between loaded trees.
222
211
 
223
212
  ## Dependencies
224
213
 
225
- - [D3.js](https://d3js.org/) v7.9.0
214
+ - [D3.js](https://d3js.org/)
215
+ - [vanilla-picker](https://www.npmjs.com/package/vanilla-picker)
226
216
 
227
217
  ## License
228
218