Creating MS/MS User Libraries in NIST26
- Photo: Mass Spec Interpretation Services/James Little: Creating MS/MS User Libraries in NIST26
- Video: Mass Spec Interpretation Services/James Little: Creating MS/MS User Libraries in NIST26
Commercial and public spectral libraries provide broad coverage for LC-MS/MS identification, but they cannot contain every compound that matters to a specific laboratory. Proprietary products, metabolites, intermediates, impurities, degradation products, biomarkers, and internally characterized compounds may be highly relevant even if they are absent from standard reference collections. NIST26 allows laboratories to build their own MS/MS user libraries and integrate them directly into routine search workflows, creating a focused resource tailored to their analytical needs.
Why Create a User MS/MS Library?
User libraries are usually much smaller than commercial or public spectral databases, but their value is not determined by size alone.
A laboratory-specific library may contain exactly the compounds most important for a particular application. These can include:
- proprietary products,
- known metabolites,
- synthesis intermediates,
- impurities,
- degradation products,
- biomarkers,
- compounds associated with specific industrial or environmental samples.
Such libraries can therefore provide highly relevant identifications in pharmaceutical development, industrial R&D, medical laboratories, environmental analysis, and other specialized fields. A relatively small collection of carefully characterized compounds may be more useful for a particular laboratory than a much larger general-purpose database.
What Information Can Be Stored with Each Spectrum?
Creating a useful library entry involves more than importing an MS/MS spectrum.
A complete record can combine several types of information, including the experimental spectrum, chemical structure, instrumental parameters, ionization information, sample history, and additional user-defined metadata.
Spectra can be transferred from vendor software into NIST Library Search, or they can be sent from the Chromatogram tab directly to the Library Search environment in NIST26. Chemical structures can be imported through the Windows clipboard from a molecular drawing program, while standard experimental parameters and sample-history information can be prepared separately and added to the entry.
The ability to keep analytical metadata together with the spectrum is particularly important for internally generated libraries because it preserves the context in which the reference spectrum was acquired.
Using Tags to Organize LC-MS/MS Metadata
NIST26 supports a range of structured tags for LC-MS/MS spectra.
These can describe parameters such as:
- spectrum type,
- compound type,
- ion name,
- precursor type,
- precursor m/z,
- collision energy,
- instrument type,
- sample identifier,
- ionization mode,
- ion polarity,
- collision gas,
- pressure,
- mass range,
- maximum intensity,
- cone voltage,
- charge,
- molecular weight,
- known impurities,
- related CAS numbers,
- peptide sequence and peptide modifications.
This provides a convenient way to attach searchable and standardized experimental information to spectra rather than leaving all metadata in an unstructured comment field.
Tags can be entered individually through the Additional Info section in the Librarian interface, but when many spectra are being added, a grouped approach can be considerably faster.
Adding Groups of Tags Efficiently
For repetitive workflows, metadata can be prepared in advance and pasted into NIST26 as a group.
The presentation recommends maintaining frequently used tag sets in a simple text document, then copying them into the synonym field and using Add to List to convert them into structured information.
This is especially useful when the vendor software already transfers some parameters automatically. Users can then add only the missing information, such as ion adduct or polarity, rather than duplicating metadata already imported with the spectrum.
Care is required because entering information that is already present may create duplicate metadata.
This workflow can substantially accelerate library creation when many spectra share the same instrument configuration or acquisition parameters.
Preserving Sample History
A spectral match is more useful when the origin of the reference spectrum is known.
NIST26 therefore allows detailed sample information to be stored in the comment field. For batches of related samples, the text can be prepared in Notepad or another editor and pasted into multiple records.
Examples of useful information include sampling location, sampling date and time, analyst name, organization, internal sample identifier, project information, or other relevant context.
For environmental, clinical, pharmaceutical, and industrial laboratories, this information can become an important part of data traceability.
Adding Molecular Structures
A user library becomes considerably more useful when spectra are linked to molecular structures.
Structures can be created from scratch in a chemical drawing program. Alternatively, a similar structure can be located in NIST Search and sent to the default structure editor, where it can be modified as needed.
Once completed, the structure can be copied to the Windows clipboard and inserted into the NIST Librarian spectrum-information window. NIST26 can then calculate the molecular formula and molecular weight from the imported structure.
This linkage between spectrum and structure supports more informative library displays and structure-based searching.
Creating Custom User-Defined Tags
In addition to the standard LC-MS/MS tags, laboratories can define their own metadata fields.
Examples shown include identifiers such as:
- chemist,
- laboratory notebook number,
- analyst.
The information can be prepared in a text editor and added using the appropriate tag syntax. Once configured in the Comment Field Display settings, these values are displayed as separate structured lines rather than remaining embedded in the general comments.
This flexibility makes the library more suitable for laboratories with established internal documentation systems or quality-management requirements.
NIST can also automatically add information such as the InChIKey and an estimated retention index when appropriate structural information is available.
High-Resolution and Low-Resolution Libraries Should Be Kept Separate
User libraries do not have to contain only high-resolution spectra.
Low-resolution MS/MS spectra may also be valuable, including spectra generated by:
- in-source collision on single-quadrupole instruments,
- triple-quadrupole MS/MS,
- other nominal-mass workflows.
The recommendation is to maintain separate high-resolution and low-resolution user libraries, because the appropriate search strategies and handling can differ.
Low-resolution spectra can still generate strong library-search results and may be particularly useful when laboratories want to preserve historical data or incorporate spectra from multiple instrument types.
Important Software Considerations When Importing Spectra
The presentation also highlights several practical software issues that users should be aware of.
One concerns the Intensity Threshold setting in the Spectrum Import Options window. When an intensity threshold is applied during import from vendor software, high-resolution spectral values may be converted to nominal mass rather than preserving the expected decimal precision.
For laboratories building high-resolution user libraries, this is an important detail because accurate-mass information is one of the main advantages of HRMS data.
Another issue affects some library-search modes after high-resolution spectra are added to a user library.
HiRes No Precursor and Hybrid Search Limitations
After adding high-resolution spectra, certain HiRes NoPrecursor and Similarity Hybrid MS/MS searches may not function correctly.
A workaround involves exporting the affected library using Lib2NIST into MSP ASCII files together with the associated molecular structure files, then importing the data back into NIST library format.
The presentation specifically warns against attempting the problematic MS/MS Hybrid Search under these conditions because it may cause the software to crash.
An EI Normal search can mimic some of the functionality of HiRes No Precursor and may work effectively when high- and low-resolution libraries are searched together. HiRes NoPrecursor can also operate with presearch disabled, although this can make searching considerably slower.
Display Issues in the Chromatogram Window
Another software behavior concerns how spectral values are displayed in the Chromatogram tab.
Values from Spectrum Import Options are reflected in the head-to-head spectral display. If settings are adjusted for low-resolution spectra, the displayed masses may appear truncated.
Importantly, this visual behavior does not affect the results in the accurate-mass deconvolution and library-searching table; it affects only the spectral display at the top of the Chromatogram window.
Distinguishing display behavior from actual processing results is important to avoid misinterpreting valid search results as corrupted data.
Updating the Library After Adding New Entries
User-library maintenance does not end when a spectrum has been added.
Whenever a new entry containing a molecular structure is introduced, the structure index should be updated so that the new compound can be included properly in structure searching.
The InChIKey appears to update with the structure, but if duplicate records are not being handled correctly, the InChIKey index may also need to be rebuilt.
If a new library folder is added to the NIST26 MSSEARCH directory while the software is already running, users should also update the library list so that the newly added collection becomes available without restarting the entire environment.
Using Lib2NIST to Repair High-Resolution User Libraries
The Lib2NIST utility plays an important role in resolving some high-resolution library-search issues.
The workflow involves exporting the problematic high-resolution library to an MSP file together with its molecular structure files and then re-importing the data into NIST library format.
The corrected library can then be placed back into the NIST26 MSSEARCH directory. It is advisable to preserve the original library under a different name until the repaired version has been tested successfully.
The presentation also recommends closing NIST Search while performing Lib2NIST conversions.
Small Libraries Can Deliver High Analytical Value
The central message is straightforward: a user library does not need to contain hundreds of thousands of compounds to be useful.
A carefully curated collection of spectra from compounds that repeatedly appear in a laboratory's own samples can dramatically improve identification relevance. This is especially valuable for compounds that are proprietary, newly synthesized, application-specific, or otherwise poorly represented in public and commercial databases.
By combining MS/MS spectra with structures, acquisition metadata, sample history, tags, and internally defined information, NIST26 can become more than a search engine for commercial databases. It can serve as a laboratory-specific knowledge base built around compounds that genuinely matter to the user's work.
For specialized LC-MS/MS workflows, that may be one of the most valuable ways to extend the capabilities of spectral library searching.




