Output Nodes
Summary
Reference: nodes that present or export results — plots, tables, reports, and export files.
Output nodes make workflow results visible or exportable.
Nodes
output.plot: Show spectra, scores, loadings, diagnostics, dendrograms, or metrics-derived plots. Many model outputs carry plot-ready payloads.
output.contour: Show a 2D heatmap or contour view of matrix-like spectral data.
output.data_table: Inspect numeric arrays, metrics, sample tables, or selected variables as rows and columns.
stats.summary: Generate deterministic descriptive summaries for datasets and typed scientific results. Inferential decisions remain in dedicated diagnostic nodes.
output.export: Prepare exact, verified bytes for a scientist-controlled download or generated-script materialization. Choose a safe basename for the prepared export; the node never chooses a filesystem path.
Good Output Hygiene
All plot, table, statistics, and export surfaces are governed by the
Scientific Result Surface Contract.
It defines the required authority, population and transformation disclosures,
lifecycle behavior, refusal states, and acceptance cases. A successful render
or download alone does not establish scientific fidelity.
For chemometrics, useful output includes the numbers and the context: sample IDs, target names, units, metric names, split design, and model parameters.
Choosing the Right Output
- Use plots for pattern recognition: spectra, scores, loadings, residual diagnostics, dendrograms, and acceptance regions.
- Use tables for auditability: sample IDs, target values, predictions, selected variables, peak lists, and metric dictionaries.
- Use statistics summaries for quick health checks, not as a substitute for validation nodes.
- Use export only after confirming the dataset carries the sample and feature
labels, units, and role needed by the recipient. CSV (plain) is the default:
a header row followed by data rows, suitable for spreadsheets and other tools.
CSV (portable) adds Sherpa's encoded metadata preamble for round-trip
preservation of typed axes, units, and inclusion marks. JSON also retains
that scientific context. Plain CSV does not promise this metadata round trip.
JDX prepares a
.zip containing one
JCAMP-DX file per input spectrum, in row order, plus manifest.json mapping
filenames to source rows and recorded sample metadata. Even one spectrum
produces a ZIP. A measured numeric feature axis and declared axis units are
required; the node never invents them or a multi-spectrum JCAMP dialect.
Every row reaching the node is exported, with inclusion marks preserved in
the manifest; use Filter Samples upstream to remove excluded rows.
- After changing format or filename, rerun Prepare Export before downloading.
The Inspector and trial editor update the extension for the chosen format.
Existing saved
.jdx filenames remain accepted and produce a .zip on rerun;
historical single-file JDX artifacts remain readable without being rewritten.
- The DAG node prepares a closed artifact containing the filename, format,
media type, exact content, byte length, source digest, and content digest. It
never chooses or writes a filesystem path. The workbench download and the
generated-script host independently verify that contract before handing the
exact bytes to their host. The generated-script materializer additionally
refuses to overwrite an existing destination.
Saved model handoff
A reusable fitted model must appear in Runs → Artifacts with its source run and
be available to local Deploy after execution. Cohort-only clustering remains
inspectable but does not predict new observations. See the canonical artifact
acceptance contract.
Registry reference
Generated from registered node metadata. Edit methodology and examples outside the marked section.
Defaults and options below are JSON values; null means no concrete default is declared.
Internal parameters are retained for contract inspection and are not scientist-editable controls.
Conditional visibility describes the editor; execution admission remains node-owned.
| Node |
Operation |
| Contour Plot |
output.contour |
| Data Table |
output.data_table |
| Prepare Export |
output.export |
| Plot |
output.plot |
| Statistics |
stats.summary |
Contour Plot (output.contour)
Ports
| Direction |
Port |
Type URI |
Required |
Variadic |
Accepted data roles |
| input |
default |
spectrasherpa://types/Any/1.0 |
true |
false |
[] |
| output |
visualization |
spectrasherpa://types/Visualization/1.0 |
true |
false |
[] |
Parameters
| Parameter |
Editor type |
Required |
Default |
Options / enum |
Bounds / step |
Visibility / category |
Description |
colorscale |
select |
false |
"Viridis" |
["Viridis", "Hot", "RdBu", "Blues", "Greys", "Jet", "Spectral"] |
— |
{"category": "basic"} |
Color scale for contour plot |
plot_type |
select |
false |
"heatmap" |
["heatmap", "contour", "surface"] |
— |
{"category": "basic"} |
Type of 2D visualization |
reverse_x |
boolean |
false |
false |
— |
— |
{"category": "basic"} |
Reverse X-axis direction (auto-enabled for wavenumber axes) |
transpose |
boolean |
false |
false |
— |
— |
{"category": "basic"} |
Swap sample and feature axes |
Data Table (output.data_table)
Ports
| Direction |
Port |
Type URI |
Required |
Variadic |
Accepted data roles |
| input |
default |
spectrasherpa://types/Any/1.0 |
true |
false |
[] |
| output |
visualization |
spectrasherpa://types/Visualization/1.0 |
true |
false |
[] |
Parameters
| Parameter |
Editor type |
Required |
Default |
Options / enum |
Bounds / step |
Visibility / category |
Description |
max_rows |
number |
false |
100000 |
— |
{"max_value": 100000, "min_value": 10, "step": 10} |
{"category": "basic"} |
Maximum number of rows to display before truncating the table preview Bounds browser memory and serialized preview size. |
transpose |
boolean |
false |
false |
— |
— |
{"category": "basic"} |
Swap rows and columns |
show_index |
boolean |
false |
true |
— |
— |
{"category": "basic"} |
Display row indices |
Prepare Export (output.export)
Ports
| Direction |
Port |
Type URI |
Required |
Variadic |
Accepted data roles |
| input |
default |
spectrasherpa://types/Any/1.0 |
true |
false |
[] |
| output |
artifact |
spectrasherpa://types/ExportArtifact/1.0 |
true |
false |
[] |
Parameters
| Parameter |
Editor type |
Required |
Default |
Options / enum |
Bounds / step |
Visibility / category |
Description |
filename |
text |
true |
"output.csv" |
— |
— |
{"category": "basic"} |
Safe basename including the extension required by the selected format |
format |
select |
true |
"plain_csv" |
["plain_csv", "portable_csv", "csv", "json", "jdx"] |
— |
{"category": "basic"} |
Plain CSV, portable CSV with a metadata preamble, JSON, or JDX (ZIP of all input spectra) |
Plot (output.plot)
Ports
| Direction |
Port |
Type URI |
Required |
Variadic |
Accepted data roles |
| input |
default |
spectrasherpa://types/Any/1.0 |
true |
true |
[] |
| output |
visualization |
spectrasherpa://types/Visualization/1.0 |
true |
false |
[] |
Parameters
| Parameter |
Editor type |
Required |
Default |
Options / enum |
Bounds / step |
Visibility / category |
Description |
plot_type |
select |
false |
"spectra" |
["spectra", "contour", "heatmap", "scores", "biplot", "loadings", "scatter", "dendrogram", "explained_variance"] |
— |
{"category": "basic"} |
Type of plot to generate. Hosted execution admits spectra, scores, loadings, explained variance, or scatter. Plot input is bounded to 500,000 values and 2 MiB of text before expansion. |
colorscale |
select |
false |
"Viridis" |
["Viridis", "Hot", "RdBu", "Blues", "Greys", "Jet", "Spectral"] |
— |
{"category": "basic"} |
Color scale for contour/heatmap plots |
x_axis |
number |
false |
0 |
— |
{"max_value": 63, "min_value": 0} |
{"category": "basic"} |
Index or label for X axis Bounds component selection to a practical visualization range. |
y_axis |
number |
false |
1 |
— |
{"max_value": 63, "min_value": 0} |
{"category": "basic"} |
Index or label for Y axis Bounds component selection to a practical visualization range. |
plot_key |
text |
false |
"" |
— |
— |
{"category": "advanced"} |
Optional exact key selecting a plot payload from a structured input. Hosted execution requires this field to remain blank. |
Statistics (stats.summary)
Ports
| Direction |
Port |
Type URI |
Required |
Variadic |
Accepted data roles |
| input |
default |
spectrasherpa://types/Any/1.0 |
true |
false |
[] |
| output |
statistics |
spectrasherpa://types/StatisticsSummary/1.0 |
true |
false |
[] |
Parameters
| Parameter |
Editor type |
Required |
Default |
Options / enum |
Bounds / step |
Visibility / category |
Description |
max_samples |
number |
false |
100 |
— |
{"max_value": 10000, "min_value": 10} |
{"category": "basic"} |
Maximum rows in per-sample statistics table Bounds the serialized per-sample table and workbench response size; the result reports explicit truncation. |