AquaGrammar Help
How AquaGrammar works
Short answers, in the order the workflow applies them. If you arrived by clicking an i button in AquaGrammar, you have landed on the section that answers it.
SNV, and the three ranges
SNV (Standard Normal Variate) normalizes one scan against itself: it subtracts that scan's own mean and divides by its own standard deviation. The effect is to remove differences in overall level between scans, so that two spectra can be compared by *shape* rather than by how bright they were.
Preview applies SNV to every selected scan automatically. The one choice you make is which wavelength range sets the mean and standard deviation. In every case the whole spectrum is returned — the range chooses what sets the centre and scale, not which wavelengths survive.
Why water has these regions at all
Water's near-infrared spectrum has four main maxima, near 970, 1190, 1450 and 1940 nm. Working outwards from the OH stretching vibration, they correspond to its second overtone, a combination of the first stretching overtone with the OH bend, the first stretching overtone itself, and a stretch-plus-bend combination.muncan Two of those fall inside the range a MicroNIR records, which is why AquaGrammar offers the choices it does.
The three ranges
1st overtone, 1300–1600 nm — the default, and the published convention. The twelve Classic-12 coordinates were found experimentally in the water first overtone and all sit between 1342 and 1512 nm.muncan This region is used because the water bands resolve clearly there and their assignments are well documented.muncan The control is labelled with the conventional band. The window itself takes in every measured point between 1298 and 1601 nm, the closest a MicroNIR grid comes to those bounds, and μ and σ come from exactly the columns inside it, so the precise window is part of the method rather than a display detail. The established aquagram method applies scatter correction across this same region before the per-wavelength standardization,molecules2020 so choosing it reproduces standard practice. Start here.
Combination band, 1100–1300 nm. The band centred near 1190 nm in this window combines the first overtone of the O-H stretch with the fundamental O-H bend (2ν₁,₃ + ν₂).muncan It is a weaker absorber than the first overtone, and that weakness is the point: it is the region aquaphotomics turns to for deep-tissue penetration and short-wavelength NIR monitoring, where a standard 1 mm or 2 mm path length at the stronger bands would saturate the sensor. Reach for it when your sample is thick or strongly absorbing enough that the 1450 nm region overwhelms the detector.
As a normalization reference it has a second advantage: it lies *outside* the coordinates being plotted. Work on preprocessing for aquaphotomics recommends estimating scatter from regions where the chemical bands of interest are absent, and names 1000–1300 nm as one such window.roger
(The app's 1100–1300 nm window brackets the band generously; the absorption itself is concentrated around 1150–1250 nm.)
Full range — every wavelength in the file. Useful for exploration and for comparing against other tools, but be aware of the trade-off: full-spectrum SNV spreads variation belonging to the compound of interest across the whole spectrum, which the same work describes as detrimental when you are trying to recover specific spectral components.roger It also includes the noisy extremes of the detector.
Choosing one for an unfamiliar system
One criterion is concrete: if your sample is thick or strongly absorbing enough that the first-overtone region saturates the detector, work in the combination band. That is a property of your measurement, not a matter of taste.
Beyond that there is no rule, and no published decision procedure. When you are exploring a target system you do not know well, the standing advice in the field is to look at each region rather than assume one: some regions suit some aqueous systems better than others, so it is worth examining them.muncan Practically, run the same selection through more than one range and compare the resulting Aquagrams — if your groups separate under one range and not another, that itself is worth understanding before you draw conclusions.
Do not treat any of the three as "the correct answer". Record which one you used; it is part of the result, and Preview writes it into the provenance line and every processed row's formula for exactly that reason.
Standardization
After SNV, each wavelength is standardized across every scan in the file:
(value − mean) / SD
Where SNV works along one scan, standardization works down one wavelength. It puts every coordinate on a comparable footing, so that a coordinate with naturally large values does not dominate the chart's shape.
A wavelength that is identical in every scan has no spread; its standardized value is zero rather than an error.
Repeat averaging
Finally, the repeats within each group are averaged into a single row. A group scanned fifteen times becomes one line, not fifteen. This is why selecting the right groups in step 2 matters: averaging happens *within* a group, never across groups.
Operations: Average, Add, Subtract
These act on prepared rows, after everything above has run.
Average — the mean of two or more ticked rows. One representative line from several.
Add — the sum of two or more ticked rows.
Subtract — tick any number of rows to adjust, and choose one baseline row separately. Each adjusted row produces its own result: adjusted minus baseline. Ticking three rows against one baseline creates three results in a single step. A row subtracted from itself produces zero, which is a useful check that you have the operands you think you have.
Two things worth knowing:
- A processed row can be renamed (pencil) or removed (×) at any time, and can itself be an input to a further operation.
- Original groups and processed rows are equal citizens in the *Inputs for Aquagram®* list. You can plot any mixture of them.
Reading the Aquagram®
The chart has twelve spokes, one per Classic-12 WAMACS coordinate, each labelled with its target wavelength and its associated assignment — for example *1412nm (S0 free OH)*. Every row you selected is drawn as one closed line around those twelve spokes, in the colour shown in the legend.
Distance from the centre is the standardized value at that coordinate. Because the values are standardized, the informative question is where lines differ from one another, not what any single line's absolute value is.
Controls:
- Legend entries toggle a line's visibility — useful for comparing two lines with a third out of the way.
- Zoom runs from 50% to 300%; above 100% the chart can be dragged to pan.
- Hovering a visible line reads out its coordinate, wavelength and value.
An Aquagram® is a visualization. It does not establish a diagnosis, prove an effect, or characterise an individual. The interpretation rests on the experiment that produced the spectra.
The overall mean table
View overall mean table opens a fixed twelve-row table: for each Classic-12 coordinate, its target wavelength, the measured wavelength that was actually used, and the mean across the rows you plotted.
It exists so the numbers behind the picture can be inspected directly. Note the difference from the exports below: this table aggregates your plotted rows into one mean; the CSV and XLSX exports keep every line separate.
Exports
| Format | Contents |
|---|---|
| XLSX, CSV | A WAMACS column of target wavelengths, then one column per plotted line, each headed with the line's name and its colour |
| PNG, JPG | The chart image together with its legend |
XLSX and CSV are built for reuse — they contain what you need to redraw the chart in another tool or check the values by hand. PNG and JPG are for dropping into a document.
These four are the only formats Preview exports.
What Preview will not do
Absent by design, not hidden behind a setting:
- No connection to or control of a MicroNIR instrument
- No saved projects or sessions; opening a new file replaces the current one
- No manual preprocessing, and no editing of WAMACS definitions
- No PCA, SIMCA, PLSR, or other modelling
- No operations beyond Average, Add, and Subtract
Preview applies one approved workflow so that the same file gives the same result for everyone. If you need to vary the method itself, Preview is the wrong tool.
Questions
Write to aquagrammar@aquaphotomics.com with questions or comments.
Sources
- Muncan & Tsenkova, "Essentials of Aquaphotomics and Its Chemometrics Approaches", *Frontiers in Chemistry*, 2018.
- Muncan et al., *Molecules*, 2020 (PMC7248758).
- Roger et al., "Preprocessing NIR Spectra for Aquaphotomics", *Molecules*, 2022 (PMC9610546).