Skip to main content

Auto MS mass checker

Project description

MScheck for locating target compound masses in mass spectra

PyPI version

MScheck is a python package that hunts for a target compound mass + given ion mass (eg. H+, Na+). MScheck was created to assist with the automated mass spectrum analysis of target compounds synthesised using a high throughput approach.

MScheck installation

MScheck relies on rdkit for generating molecule SVG images and for calculating molecular weights
Installing rdkit using conda works best followed by a pip install of MScheck

  1. Create a conda environment with rdkit

    conda create -c conda-forge -n MScheck rdkit

  2. Activate the MScheck conda environment created

    conda activate MScheck

  3. Pip install MScheck

    pip install mscheck

MScheck use

MScheck has been tested on using Agilent LCMS files (.D) as the starting file format. One challenge is to convert vendor file formats into a format with the binary decoded.

  1. Convert .D Agilent folder to a .d MassHunter format using Agilent's ChemStation to MassHunter Translator (B.04.00)
  2. Convert .d format into .mzML format using ProteoWizard's MSConvert tool
  3. Finally - we have an file format that we can use!
  4. In your favourite IDE or Jupyter notebook - as basic example of using MSCheck is prvided below:
from mscheck.analyse import AnalyseSpectrum

# Create MS scptrum object and find peaks
test = AnalyseSpectrum("<path to .mzML file>", mode="Positive")

# Analyse test spectrum
test.analyse(compoundsmiles=target_compound,
             ionstoadd=["[H]", "[Na]", "[K]", "[NH4+]"],
             tolerance=1)test.analyse

# Create a SVG report - if you do not give a compound_name
# the ending leaf of the file name will be used
test.create_report(compound_name="Test")

Example of report output:

Example SVG report

The .SVG report will be in a folder called Reports

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

mscheck-0.1.5b0.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file mscheck-0.1.5b0.tar.gz.

File metadata

  • Download URL: mscheck-0.1.5b0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for mscheck-0.1.5b0.tar.gz
Algorithm Hash digest
SHA256 fb997fe002d1ddcfd102d869408da3dd4a9f30acf2a13dbc780e68db9e8c2691
MD5 0db22508581437e6733e9f40846f8b34
BLAKE2b-256 29b97dcb71296a3414383838d8139e0823c54b4b31af5fd756bcf6f02d1646a3

See more details on using hashes here.

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