# Tree menu; Check on datasheets & resemblances; Undefined resemblances

The other **Tools** menu item for aggregation sheets is distinctive to this case, namely **Tools>Tree**; it simply displays the hierarchical structure of an aggregation file in the same way as the Explorer tree, in a left-hand panel. Successive clicking on the  [![plus.jpg](https://learninghub.primer-e.com/uploads/images/gallery/2024-05/scaled-1680-/plus.jpg)](https://learninghub.primer-e.com/uploads/images/gallery/2024-05/plus.jpg)    icons unroll the taxonomic structure, and it can be rolled back with   [![minus.png](https://learninghub.primer-e.com/uploads/images/gallery/2024-06/scaled-1680-/minus.png)](https://learninghub.primer-e.com/uploads/images/gallery/2024-06/minus.png)   . No operations can be performed on the display in this state.

[![ScreenshotPage207a.png](https://learninghub.primer-e.com/uploads/images/gallery/2024-08/scaled-1680-/screenshotpage207a.png)](https://learninghub.primer-e.com/uploads/images/gallery/2024-08/screenshotpage207a.png)

When the active window is a <u>datasheet</u>, **Tools>Check** can check for the following: a) ✓Missing values, identified in the sheet by ‘<span style="color:green;">Missing!’</span>, and which might have been read in as blank cells in an Excel worksheet for example; b) ✓Negative values, which are not appropriate for abundance-type data analysed by Bray-Curtis, though common for environmental variables (especially normalised) input to Euclidean distance; c) ✓Duplicate sample (and/or) variable labels, which are tolerated for some analyses (warnings are usually given) but are best avoided wherever possible; d) ✓All zero samples (and/or) variables; and e) ✓Estimated values, displayed in red type in the matrix. The latter come from applying **Tools>Missing** (seen shortly) to environmental variables – or to other normally distributed data – containing <span style="color:green;">Missing!</span> cells, which otherwise might not be tolerated by some analysis routines requiring complete data. All or any of the 7 boxes can be ticked. Whether it is important to check for a particular attribute depends on the analysis. For example, species which are zero over all samples will be ignored when Bray-Curtis similarity is computed among samples, and can safely be left in the matrix, but all-zero samples are potentially more of a problem since Bray-Curtis similarity between two blank samples is set to <span style="color:green;">‘Undefined!’</span>. Dependent on the context, these samples might best be omitted, or a different similarity used (e.g. zero-adjusted Bray-Curtis, Section [5](https://learninghub.primer-e.com/books/primer-v7-user-manual-tutorial/chapter/5-resemblance-similarities-dissimilarities-and-distances)), or the entry left as ‘Undefined!’, i.e. treated as unknown.


[![ScreenshotPage207b.png](https://learninghub.primer-e.com/uploads/images/gallery/2024-08/scaled-1680-/screenshotpage207b.png)](https://learninghub.primer-e.com/uploads/images/gallery/2024-08/screenshotpage207b.png)

When the active window is a resemblance sheet, **Tools>Check** looks for only three data attributes: a) ✓Undefined values, arising as suggested above; b) ✓Out of bounds values, for distance coefficients (or transformations) that return very large or small values (NaN); and c) ✓Duplicate labels, as above. Blanking a cell in a resemblance matrix sets it to <span style="color:green;">Undefined!</span> status, and several of the core routines using resemblances (e.g. MDS, Cluster, ANOSIM) are carefully written in PRIMER to tolerate a few <span style="color:green;">Undefined!</span> entries, treating them as unknown. (You can appreciate that knowing the similarities $S_{12}$, $S_{13}$, $S_{14}$, $S_{23}$, $S_{24}$ might enable you to place four samples in relation to each other without knowing similarity $S_{34}$). Blanking out NaN (Not a Number) entries, to <span style="color:green;">Undefined!</span>, is one possibility therefore, but others may be equally good or better (replacing by a large, but finite value, modifying the coefficient or transformation which generated them etc.).