A Python library to aid in the processing and interpretation of mass spectrometric data.
Project description
mass-spec-python-tools: mass spec made easier
What is it?
This is a collection of scripts to aid in the processing and interpretation of mass spectrometric data.
The project was created by Lars Yunker at the University of Victoria, Victoria, B.C.
Requirements and Installation:
This package has been written for python 3.5+.
Getting started
- Download the entire repository to a folder and load scripts as needed.
- Inexperienced python users can edit the input parameters in the files directly.
- Experienced python users can import many of the classes and scripts directly (e.g. in iPython). Not all scripts are completely callable yet (work in progres).
For specific instructions on using the PyRSIM script, see this tutorial video Additional instructional videos for using the other scripts are in development.
Errors
If you encounter an error, please submit an Issue in Github with as much information as possible Things that are helpful to include:
- the raw file you were trying to parse (zip it first)
- the exact parameters you were using
- any additional files you were supplying to the script
- the error output
Currently available tools:
PyRSIM
This script takes supplied raw and parameters files and generates reconstructred single ion monitoring traces.
isotope pattern overlay
Takes a supplied mass spectrum and overlays the predicted isotope pattern onto it.
video frame renderer
A tool for generating a series of images showing mass spectrum and traces which can be combined into a video.
y-axis zoom figure
Renders a series of images which zoom into the y-axis to illustrate the dynamic range of mass spectrometers.
barplotthese
Takes an excel file populated with spectra and saves them as publication-quality figures. (Makes bar plots with consistent axes, which can be very difficult in excel.)
Classes and packages
tome_v02
A collection of scripts which are required by several of the tools.
_Colour
Interprets a provided colour and converts it into several other formats (mostly this is used for pyplot colour conversion).
_Molecule
Takes a supplied molecular formula and calculates several physico-chemical properties of that formula.
Requires several other dictionaries to function:
- _crc_mass: a dictionary of exact masses and natural abundances used by the Molecule class (obtained from the CRC Handbook of Chemistry and Physics 2015)
- _nist_mass: as above but obtained from the NIST database
- _formabbrvs: a dictionary of common abbreviations in chemical formulas used by the Molecule class
_ScriptTime
A class for timing python scripts.
_Spectrum
Generates a spectrum which can be added to (very useful for combining spectra that have high-precision x values).
_XLSX
A class for handling and writing excel files (uses openpyxl).
_mzML
A class for loading and interpreting mzML files.
Still under development:
ED-ESI plot
This will eventually take a MS/MS plot and generate an energy dependant mass spectrum plot.
License
These tools are licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pythoms-1.0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97eb59bd11aa321ddb7a5e8ad337009951c04c547874f2788157cce7a9923ff1 |
|
MD5 | 24b312ca203df42adc2877694d7748b6 |
|
BLAKE2b-256 | b9ba129994c9112e2bf198a39334c985348bd227cf4199225eafe5a8bb4d4154 |