Advanced Octave A57 — Scientific reference libraries
Advanced GNU Octave with GX-TXT · Module 10
A scientific library can collect spectra and reference metadata. Before using a correspondence, however, it is necessary to identify the source and verify its relevance to the problem studied.
Objectives and prerequisites
We use the discovery of resources and identifications seen in A55. The test uses GX-TXT dev112-P011-bis and GNU Octave 9.4.0. Import cerca_riferimenti.m, register it and run it in the Runner.
Search for a library
SCIENTIFIC_REFERENCE_LIBRARY_API_v1/list_libraries lists the IDs of reference libraries available through this API path. For each, the script includes library_info and a text search with search using water. The search is done only if the list contains a library.
In the test environment the list is empty: no correspondence is returned and we cannot evaluate a specific spectrum. This is a valid result, not a negative identification of a substance. If you install a library that is compatible with this path, please rerun the script and read its metadata and the IDs found. Other managed libraries can follow different interfaces and registration criteria: they are not necessarily included in this list.
Evaluate a correspondence
A research in metadata identifies candidates, does not show that the spectrum belongs to a sample. Check author, source, version, license, method of measurement, conditions, units and availability of data; then compare spectra with appropriate procedure. Keep the ID and version of the library used in the project, because different or up-to-date references can change the result.
Exercise
- Why don’t we see results for
waterin the test? - Does a search by name automatically identify a sample?
- What information on the source would be useful to store?
Worked solution
- There are no libraries in the questioned list, so the search is not performed.
- No: returns candidates requiring scientific evaluation.
- At least identity and version of the library, source, method, units and relevant conditions.
Other steps of this project
- Advanced Octave A75 — Dynamical systems in phase space
- Advanced Octave A81 — Geography of the waves and a 3D surface
- Advanced Octave A82 — Age, sex and demographic inequalities
- Advanced Octave A83 — All-cause mortality, certified COVID deaths and surveillance
- Advanced Octave A84 — A reproducible public account
- Advanced Octave A73 — Optimization landscapes and 3D trajectories