archaeopteryx 3.16.0 → 3.17.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
@@ -630,7 +630,8 @@ missing symbol `?` arrives as `X` or `N`. A phyloXML `<mol_seq>` is kept
630
630
  exactly as written, by both programs. Sequences
631
631
  of *unequal* length are not an alignment and cannot form a character matrix,
632
632
  so they are not written at all — the file says so in a bracketed comment
633
- rather than padding them into an alignment that does not exist.
633
+ rather than padding them into an alignment that does not exist, and the
634
+ Nexus entry of the Download menu says so before you choose it.
634
635
 
635
636
  ## Heat maps
636
637
 
@@ -1004,12 +1005,62 @@ a popup any more, and nothing fails silently.
1004
1005
  | **MrBayes** annotations | in (embedded in Newick/Nexus) | `prob=`/`prob.stddev=` blobs: posterior-probability clade support. | [8] |
1005
1006
  | **Metadata table** (`.tsv`, `.csv`) | in (beside a tree) | A header row and one row per tip, the first column naming the tip: every other column is joined onto the tips as a property, so it is offered for Color-by and Shape, searched, shown in the node data and written into phyloXML exports. See [Metadata tables](#metadata-tables). | — |
1006
1007
  | **FASTA** | out | The molecular sequence(s) of the selected tip(s), or every sequence the tree carries. Offered in the Download menu only when the tree actually carries molecular sequences (aligned or not). | [9] |
1007
- | SVG · PNG · vector PDF | out | A snapshot of the drawn tree for publication or further editing — vector (SVG, PDF) or raster (PNG). General-purpose graphics formats, not phylogenetic data, so no literature reference applies. | — |
1008
+ | SVG · PNG · vector PDF | out | The drawn tree for publication or further editing — vector (SVG, PDF) or raster (PNG), either as shown on screen or the whole tree at full size (see [Downloads](#downloads)). General-purpose graphics formats, not phylogenetic data, so no literature reference applies. | — |
1008
1009
 
1009
1010
  The parser for a given input is auto-detected (see **The entry points**
1010
1011
  above); the Download menu offers whichever output formats the current tree
1011
1012
  can carry.
1012
1013
 
1014
+ ### Downloads
1015
+
1016
+ The panel's **Download** section (folded until you open it) holds the choices
1017
+ every download shares, and its **Download…** button opens the format menu,
1018
+ grouped as Graphics, Tree and Tip data. Each entry says what that format keeps — phyloXML everything the
1019
+ tree carries, Newick only names, branch lengths and support — and the Nexus
1020
+ entry says, before you pick it, whether the file will carry the alignment or,
1021
+ when the sequences are of unequal length, why it cannot.
1022
+
1023
+ * **Name** — the file name; each format adds its own extension (a typed
1024
+ `.svg` or `.tre` is not doubled). It starts as the tree's name.
1025
+ * **Graphics: As shown / Full size** — what SVG, PDF and PNG draw. *As shown*
1026
+ is the window: the part of the tree in view, at the current zoom. *Full
1027
+ size* (the default) is the whole tree, re-laid-out large enough that no tip
1028
+ name has to be hidden — in rows in the rectangular layout, around the ring in
1029
+ the circular one — and cropped to the drawing, with the legends (colour,
1030
+ shape, domains, the heat-map ring's scale) stacked beside the tree rather
1031
+ than over it. The window itself is left exactly as it was. An unrooted fan
1032
+ is enlarged only while that still frees names: tips on very short branches
1033
+ can collide at any size. An alignment track is drawn as its window, the
1034
+ columns in view, in a full-size figure too: a genome-length alignment drawn
1035
+ whole would be hundreds of thousands of cells.
1036
+ * **PNG: 2× / 4× / 8×** — the image's resolution relative to the screen
1037
+ (`pngExportScale` sets the starting choice, snapped to one of the three). A browser caps how large a
1038
+ canvas it will paint; past that the PNG comes out at the largest scale it can
1039
+ paint, with a console warning, rather than blank.
1040
+ * **Copy Newick** puts the tree on the clipboard, exactly as the Newick
1041
+ download writes it.
1042
+ * **Copy PNG** puts the picture on the clipboard, drawn as the Graphics and PNG
1043
+ choices say — ready to paste into a Word document or a slide. It needs a
1044
+ secure page (https, or localhost) and canvg, and is offered only where both
1045
+ are there.
1046
+
1047
+ **In a subtree, and with clades collapsed.** Every download follows the tree
1048
+ you are looking at. In a **subtree** the files hold the subtree only — the
1049
+ menu's Tree and Tip data groups say so ("subtree, 19 of 50 tips"), and
1050
+ phyloXML and Nexus name it after the tree, marked "(subtree)"; the subtree is
1051
+ written as a rooted tree of its own, its root keeping the branch that leads
1052
+ into it. A **collapsed** clade is how the tree is drawn, not what it holds:
1053
+ the graphics draw it collapsed, as on screen, and every file writes it in
1054
+ full.
1055
+
1056
+ **TSV** (under Tip data) writes every tip's data as a table, one row per tip in
1057
+ the order drawn: the node menu's **Download Ext. Node Data** for the whole
1058
+ tree, with the same columns, and a table that joins back onto the tree as
1059
+ [metadata](#metadata-tables).
1060
+
1061
+ A full-size PDF taller or wider than 200 inches (14,400 pt, the PDF page
1062
+ limit) is scaled onto the largest page; it is vector, so nothing is lost.
1063
+
1013
1064
  Newick and Nexus files usually carry branch support as a bare internal label
1014
1065
  (`)100:0.05`). Archaeopteryx.js recognises those automatically and treats them
1015
1066
  as confidence values, so support-based features work without any setup. If your
@@ -1141,7 +1192,8 @@ branch-length values and support symbols are drawn only where they fit: each
1141
1192
  mark claims the box it is about to occupy, and one that would overlap a box
1142
1193
  already claimed in that pass is left out. The claim order is the tree's own,
1143
1194
  root first, so the mark nearer the root keeps its place and the same tree at
1144
- the same size always drops the same marks — on screen and in every export.
1195
+ the same size always drops the same marks — on screen and in an *As shown*
1196
+ export. A *Full size* figure is drawn larger, so it has room to keep more.
1145
1197
 
1146
1198
  **The Auto-hide Labels toggle lights up while it is taking something away**,
1147
1199
  and its tooltip says what. The switch governs three rules and the light asks
@@ -1274,7 +1326,7 @@ copy-pastable JSON.
1274
1326
  | `visualizationsLegendXpos` | `254` | Legend position, x. |
1275
1327
  | `visualizationsLegendYpos` | `30` | Legend position, y. |
1276
1328
  | `enableDownloads` | `true` | Offer the download buttons. |
1277
- | `pngExportScale` | `4` | PNG export resolution multiplier. |
1329
+ | `pngExportScale` | `4` | The PNG resolution the Download section starts on: 2, 4 or 8 (any other value is snapped to the nearest, with a console warning). |
1278
1330
  | `nhExportWriteConfidences` | `true` | Write confidences into exported Newick. |
1279
1331
  | `internalNumericLabels` | `'auto'` | Newick / Nexus parsing: how a bare numeric internal label (`)100:0.05`) is read. `'auto'` reads them as confidence values only when *every* internal label looks like support; `'confidence'` reads every numeric label as one, whatever its value; `'label'` keeps them as names. Replaces `nhConfidenceValuesAsInternalNames` (still accepted, with a warning; its `true` maps to `'confidence'`). |
1280
1332
  | `nodeLabels` | `null` | Custom label-field checkboxes: `{key: {label, description, propertyRef, showButton, selected}}` — each adds a panel checkbox labelling nodes with the named property's value. (Was `launch()`'s sixth positional argument.) |
@@ -1385,11 +1437,11 @@ All 118 of them, alphabetically:
1385
1437
  | `labelColorDefault` | The default label colour is fixed. |
1386
1438
  | `minBranchLengthValueToShow` | No longer configurable. |
1387
1439
  | `minConfidenceValueToShow` | No longer configurable. |
1388
- | `nameForFastaDownload` | Download names follow `treeName`. |
1389
- | `nameForNhDownload` | Download names follow `treeName`. |
1390
- | `nameForPhyloXmlDownload` | Download names follow `treeName`. |
1391
- | `nameForPngDownload` | Download names follow `treeName`. |
1392
- | `nameForSvgDownload` | Download names follow `treeName`. |
1440
+ | `nameForFastaDownload` | Download names follow `treeName`, or the Download section's Name field. |
1441
+ | `nameForNhDownload` | Download names follow `treeName`, or the Download section's Name field. |
1442
+ | `nameForPhyloXmlDownload` | Download names follow `treeName`, or the Download section's Name field. |
1443
+ | `nameForPngDownload` | Download names follow `treeName`, or the Download section's Name field. |
1444
+ | `nameForSvgDownload` | Download names follow `treeName`, or the Download section's Name field. |
1393
1445
  | `nhExportReplaceIllegalChars` | Always on; Newick cannot carry those characters. |
1394
1446
  | `nodeLabelGap` | The label gap is fixed. |
1395
1447
  | `nodeSizeDefault` | Node size is fixed; the Node size slider changes it. |
@@ -79,6 +79,8 @@ export interface ArchaeopteryxConfig {
79
79
  /** 'compact' tightens the control panel's spacing and narrows it (the
80
80
  * tree's left margin follows). The same controls, nothing hidden. */
81
81
  panelDensity?: 'comfortable' | 'compact';
82
+ /** The PNG resolution the Download section starts on, snapped to its
83
+ * 2x, 4x or 8x. */
82
84
  pngExportScale?: number;
83
85
  rootOffset?: number;
84
86
  searchAinitialValue?: string | null;