Skip to main content

PyMassSpec extension for searching mass spectra using NIST's Spectrum Search Engine

Project description

Build Status AppVeyor Documentation Status PyPI PyPI - Python Version

PyMassSpec extension for searching mass spectra using NIST’s Spectrum Search Engine

Usage

You will need to supply your own copy of the NIST Mass Spectral library to use this software.

The main class in this library is the Engine class. This class performs the actual searching. Start by initialising the search engine as follows:

search = pyms_nist_search.Engine(
                FULL_PATH_TO_MAIN_LIBRARY,
                pyms_nist_search.NISTMS_MAIN_LIB,
                FULL_PATH_TO_WORK_DIR,
                )

Where FULL_PATH_TO_MAIN_LIBRARY is the path to the location of your mass spectral library, and FULL_PATH_TO_WORK_DIR is the path to the working directory to be used by the search engine.

A MassSpectrum object can then be searched as follows:

search.full_search_with_ref_data(mass_spec)

This will return a list of tuples consisting of SearchResult and ReferenceData objects for the possible identities of the mass spectrum.

A list of just the SearchResult objects can be obtained with this method:

hit_list = search.full_search(mass_spec)

For each of these hits, the reference data can be obtained as follows:

for hit in hit_list:
        ref_data = search.get_reference_data(hit.spec_loc)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyms_nist_search-0.3.4.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distributions

pyms_nist_search-0.3.4-cp38-cp38-win_amd64.whl (553.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyms_nist_search-0.3.4-cp38-cp38-win32.whl (493.3 kB view hashes)

Uploaded CPython 3.8 Windows x86

pyms_nist_search-0.3.4-cp37-cp37m-win_amd64.whl (553.3 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyms_nist_search-0.3.4-cp37-cp37m-win32.whl (493.3 kB view hashes)

Uploaded CPython 3.7m Windows x86

pyms_nist_search-0.3.4-cp37-cp37m-manylinux2010_x86_64.whl (39.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pyms_nist_search-0.3.4-cp37-cp37m-manylinux1_x86_64.whl (39.5 kB view hashes)

Uploaded CPython 3.7m

pyms_nist_search-0.3.4-cp36-cp36m-win_amd64.whl (553.3 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyms_nist_search-0.3.4-cp36-cp36m-win32.whl (493.3 kB view hashes)

Uploaded CPython 3.6m Windows x86

pyms_nist_search-0.3.4-cp36-cp36m-manylinux2010_x86_64.whl (38.5 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pyms_nist_search-0.3.4-cp36-cp36m-manylinux1_x86_64.whl (38.5 kB view hashes)

Uploaded CPython 3.6m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page