Giter Site home page Giter Site logo

msanalysis's Introduction

MSAnalysis

msanalysis is a lightweight python package to read and process mass spectra, specifically those in the mzXML format.

General


Build Info

OS Build Status
Linux Build Status
OSX Build Status

Python Versions Tested

OS 3.5 3.6 3.7 3.8
Linux ✔️ ✔️ ✔️ ✔️
OSX ✔️ ✔️ ✔️

Dependencies


Installation

Set up is meant to be easy! First we suggest installing all of prerequisites in a clean Conda env (run this inside the main directory of the package):

conda env create -f devtools/conda-envs/msanalysis_env.yaml

Then install using pip and we're done!

python -m pip install -e .

If you aren't doing this in a conda env and don't have root user privileges use:

python -m pip install -e . --user

Fresh install

git clone https://github.com/jamesETsmith/msanalysis.git
cd msanalysis
conda env create -f devtools/conda-envs/msanalysis_env.yaml
python -m pip install -e .
cd patches
python add_elements.py

Patches

Currently there is one patch while we wait to hear back on an issue from PyOpenMS. If you want to work with species like Indium, run the python script to patch up msanalysis.

cd patches
python add_elements.py

Testing

To check that everything is working, run the following from the main project directory:

pytest -v msanalysis --cov=msanalysis

Copyright

Copyright (c) 2019, James E. T. Smith/ CU Boulder


Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.1.

msanalysis's People

Contributors

codacy-badger avatar jamesetsmith avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

msanalysis's Issues

Travis CI Security Breach Notice

MolSSI is reaching out to every repository created from the MolSSI Cookiecutter-CMS with a .travis.yml file present to alert them to a potential security breach in using the Travis-CI service.

Between September 3 and September 10 2021, the Secure Environment Variables Travis-CI uses were leaked for ALL projects and injected into the publicly available runtime logs. See more details here. All Travis-CI users should cycle any secure variables/files, and associated objects as soon as possible. We are reaching out to our users in the name of good stewards of the third-party products we recommended and might still be in use and provide a duty-to-warn to our end-users given the potential severity of the breach.

We at MolSSI recommend moving away from Travis-CI to another CI provider as soon as possible. The nature of this breach and the way the response was mis-handled by Travis-CI, MolSSI cannot recommend the Travis-CI platform for any reason at this time. We suggest either GitHub Actions (as is used from v1.5 of the Cookiecutter-CMS) or some other service offered on GitHub.

If you have already addressed this security concern or it does not apply to you, feel free to close this issue.

This issue was created programmatically to reach as many potential end-users as possible. We do apologize if this was sent in error.

Peak loss in log-scale contour plots

Low intensity peaks don't show up in the current log scale contour plots (example 4). One resolution would be to remove the intense bands from precursor that are present throughout the temperature ramp. This requires input of m/z ranges of the intense bands that the users wish to exclude in the codes. Hopefully this will allow the low intensity peaks to show.

could not broadcast input array (aka empty MS scan in mzXML file)

Problem Description

Traceback (most recent call last):
  File "/Users/ann.lii.rosales/Desktop/Python/msanalysis/examples/05_relative_abundance.py", line 41, in <module>
    data = read_mzXML(mzXML_file)
  File "/Users/ann.lii.rosales/Desktop/Python/msanalysis/msanalysis/data_extraction/utils.py", line 125, in read_mzXML
    intensities[i] = s.get_peaks()[1]
ValueError: could not broadcast input array from shape (0) into shape (26947)

Steps to Reproduce

I modified example 5 to plot data from the real mzXML file (which we now know is corrupted/problematic) and ran the example:

bash python 05_relative_abundance.py


Expected/Desired Behaviour

The corrupted mzXML files is beyond our control, but we need a more descriptive error message when this happens in the future.

Peak detection/fitting and deconvolution

  • Peak detection/fitting would help speed up QMS data analysis immensely. This would include generating isotope patterns based on possible etch products. Then, fitting would entail fitting the calculated patterns to the experimental data. Fitting output would include quality of fitting (eg, percent match to the isotope fingerprints).

  • Peak deconvolution would help identify species with overlapping m/z values. Deconvolution would involve linear combination of relative peak intensities from different species.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.