mzSpecLib is a formal standard and file format in development at HUPO-PSI to store and distribute spectral libraries. The main target audience for this format is the developers of spectral library search tools and resources.
Past file formats have been created to store and disseminate spectral libraries, such as MSP, X!Hunter binary MGF, BiblioSpec SQLite and SSL/MS2, SpectraST SPLIB/SPTXT, MassBank formats, and Spectronaut CSV. Each spectral library provider uses one of these formats. For example, PeptideAtlas uses SPLIB, PRIDE and NIST uses MSP, and GPMDB uses X!Hunter binary MGF. Some spectral library search engines support multiple formats, and some do not, making it difficult to share libraries and compare spectral library searching tools. In the proteomics community, there has been a long-standing effort to standardize raw mass spectrometric data and the results of data analysis, primarily identification. But spectral libraries straddle the boundary between the two and cannot be adequately served by either effort.
As there remains much fluidity and disagreement in what information should go into a spectral library, the format must be flexible enough to fit all the potential use cases of spectral libraries, and yet retain sufficient structure for it to be a practically useful standard. The specification therefore focuses on the data model and mechanism for providing controlled vocabulary-based metadata, while leaving open the serialization mechanism to several interchangeable possibilities.
Status
Updated: 2025-08-07
The specification has been formally ratified via the PSI Document Process to become an official PSI standard.
If you have questions or comments about this specification, please submit an issue at the repo to provide your feedback.
An associated format mzPAF for peak annotations to be used in mzSpecLib-formatted libraries has also been developed.
Available Materials
- The FINAL specification: 1.0 (PDF) or (.docx)
- The GitHUb repo associated with mzSpecLib: https://github.com/HUPO-PSI/mzSpecLib/issues
- Related mzPAF standard (GitHub repo: https://github.com/HUPO-PSI/mzPAF)
- Release paper: https://doi.org/10.1021/acs.analchem.4c04091
- Poster summarizing mzSpecLib and mzPAF (Lam et al, ASMS 2023)
- On-line spectral library converted can convert to mzSpecLib
Implementations
- Python: mzspeclib-py
- Rust: mzannotate
- Streamlit app: https://mzspeclib-app-viewer-demo.streamlit.app/