matchms Logo

Working with matchms

  • Installation
  • Quick start: collection-first workflow
  • Core architecture
    • Core concepts
      • SpectraCollection
      • Spectrum
    • Metadata handling
    • Peak data handling
  • Importing and exporting datasets
    • Importing datasets
    • Exporting datasets
  • Filtering and processing
    • SpectraProcessor
    • Processing reports
  • Similarity measures
    • Default preprocessing for spectral similarities
    • Pair and matrix comparisons
    • Working with Scores results
    • Repeated library searches with reusable indices
    • Saving and loading similarity indices
    • Exact top-k library search
    • Entropy and EntropySearch
    • Specialized similarity implementations
  • Command-line interface
  • Migrating from matchms 0.x
    • Data representation
    • Processing and filters
    • Similarity and results
    • Legacy APIs

Python API

  • matchms package
    • Subpackages
      • matchms.cli package
        • Submodules
      • matchms.exporting package
        • Functions for exporting mass spectral data
        • Submodules
      • matchms.filtering package
        • Processing and filtering mass spectra
        • Subpackages
        • Submodules
      • matchms.importing package
        • Functions for importing mass spectral data
        • Submodules
      • matchms.networking package
        • Functions for creating and analysing spectral networks
        • Submodules
      • matchms.plotting package
        • Functions for plotting one or multiple spectra
        • Submodules
      • matchms.reference_spectra package
        • Submodules
      • matchms.similarity package
        • Choosing a peak-based spectral similarity
        • Choosing between Entropy and EntropySearch
        • Specialized implementations
        • Other similarity measures
        • Custom similarities
        • Submodules
    • Submodules
      • matchms.calculate_scores module
        • calculate_scores()
      • matchms.constants module
      • matchms.fingerprints module
        • Fingerprints
      • matchms.fragment_collection module
        • CSRFragmentCollection
        • FragmentCollection
      • matchms.fragments module
        • Fragments
      • matchms.hashing module
        • compute_combined_hashes()
        • metadata_hash()
        • spectra_hashes()
        • spectrum_hash()
        • spectrum_hash_arrays()
      • matchms.logging_functions module
        • add_logging_to_file()
        • reset_matchms_logger()
        • set_matchms_logger_level()
        • set_rdkit_logger_level()
      • matchms.metadata module
        • Metadata
        • harmonize_metadata_values()
      • matchms.metadata_collection module
        • MetadataCollection
        • harmonize_metadata_collection_columns()
        • harmonize_metadata_column_name()
        • harmonize_metadata_types()
      • matchms.pipeline module
        • Pipeline
        • check_score_computation()
        • create_workflow()
        • get_unused_filters()
      • matchms.scores module
        • Scores
        • ScoresMask
      • matchms.spectra_collection module
        • SpectraCollection
      • matchms.spectrum module
        • Spectrum
      • matchms.typing module
        • ScoreFilter
      • matchms.utils module
        • filter_empty_spectra()
        • filter_none()
        • fingerprint_export_warning()
        • get_common_keys()
        • get_first_common_element()
        • load_export_key_conversions()
        • load_known_key_conversions()
        • rename_deprecated_params()
        • to_camel_case()
      • matchms.yaml_file_functions module
        • load_workflow_from_yaml_file()
        • ordered_dump()
        • ordered_load()

Community and contributors

  • Documentation for developers
    • Development installation
    • Code quality
    • Developer notes: collection-first design
    • Building the documentation
  • Citation
  • matchms ecosystem
    • Ecosystem compatibility
matchms
  • matchms 1.0 documentation
  • View page source

matchms 1.0 documentation

matchms is an open-source Python library for importing, cleaning, processing, exporting, and comparing tandem mass spectrometry (MS/MS) data. Version 1.0 introduces a collection-first workflow for processing large spectral datasets while preserving the familiar Spectrum API.

New to matchms? Start with Installation and the Quick start: collection-first workflow guide. Upgrading from 0.x? Read Migrating from matchms 0.x.

User guide

Working with matchms

  • Installation
  • Quick start: collection-first workflow
  • Core architecture
    • Core concepts
    • Metadata handling
    • Peak data handling
  • Importing and exporting datasets
    • Importing datasets
    • Exporting datasets
  • Filtering and processing
    • SpectraProcessor
    • Processing reports
  • Similarity measures
    • Default preprocessing for spectral similarities
    • Pair and matrix comparisons
    • Working with Scores results
    • Repeated library searches with reusable indices
    • Saving and loading similarity indices
    • Exact top-k library search
    • Entropy and EntropySearch
    • Specialized similarity implementations
  • Command-line interface
  • Migrating from matchms 0.x
    • Data representation
    • Processing and filters
    • Similarity and results
    • Legacy APIs

API reference

Python API

  • matchms package
    • Subpackages
    • Submodules

Project

Community and contributors

  • Documentation for developers
  • Citation
  • matchms ecosystem

For more tutorials, see the matchms user documentation. The source code is available on GitHub.

Next

© Copyright 2020-2026, matchms contributors.

Built with Sphinx using a theme provided by Read the Docs.