Coder Social home page Coder Social logo

computational-metabolomics / beamspy Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 5.0 78.58 MB

BEAMSpy - Birmingham mEtabolite Annotation for Mass Spectrometry (Python Package)

License: GNU General Public License v3.0

Python 80.60% Batchfile 0.01% Jupyter Notebook 19.39%
metabolomics metabolite-identification mass-spectrometry lc-ms dims

beamspy's Introduction

BEAMSpy - Birmingham mEtabolite Annotation for Mass Spectrometry (Python package)

Version Py versions Git Bioconda Build Status License RTD doc codecov mybinder

BEAMSpy (Birmingham mEtabolite Annotation for Mass Spectrometry) is a Python package that includes several automated and seamless computational modules that are applied to putatively annotate metabolites detected in untargeted ultra (high) performance liquid chromatography-mass spectrometry or untargeted direct infusion mass spectrometry metabolomic assays. All reported metabolites are annotated to level 2 or 3 of the Metabolomics Standards Initiative (MSI) reporting standards (Metabolomics. 2007 Sep; 3(3): 211โ€“221. doi: 10.1007/s11306-007-0082-2). The package is highly flexible to suit the diversity of sample types studied and mass spectrometers applied in untargeted metabolomics studies. The user can use the standard reference files included in the package or can develop their own reference files.

Quick installation

  1. Install Miniconda. Follow the steps described here.
  2. Run the following commands to install BEAMSpy.

Windows-64, Linux-64 and OSx

$ conda create -n beamspy beamspy -c conda-forge -c bioconda -c computational-metabolomics
$ activate beamspy

Linux-64 and OSx

$ conda create -n beamspy beamspy -c conda-forge -c bioconda -c computational-metabolomics
$ source activate beamspy

Usage

Command line interface (CLI)

$ beamspy --help

Graphical user interface (GUI)

$ beamspy start-gui

Bug reports

Please report any bugs that you find here. Or fork the repository on GitHub and create a pull request (PR). We welcome all contributions, and we will help you to make the PR if you are new to git.

Credits

Code base

License

Released under the GNU General Public License v3.0 (see LICENSE)

beamspy's People

Contributors

rjmw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

beamspy's Issues

TypeError: 'method' object is not subscriptable

Hi there.
I wanted to run your Jupyter NB w/ your test data, however, executing

annotate_adducts(graphs, db_out, ppm, lib_adducts)
df_out = summary(df, db_out)
print(df_out)

resulted in the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-5b48a2fbb04c> in <module>
----> 1 annotate_adducts(graphs, db_out, ppm, lib_adducts)
      2 df_out = summary(df, db_out)
      3 print(df_out)

c:\ProgramData\Anaconda3\lib\site-packages\beamspy\annotation.py in annotate_adducts(source, db_out, ppm, lib, add)
    394     if isinstance(source, list) and len(source) > 0 and isinstance(source[0], nx.classes.digraph.DiGraph):
    395         for i, graph in enumerate(source):
--> 396             for assignment in _annotate_pairs_from_graph(graph, lib_pairs=lib_pairs, ppm=ppm, charge=None):
    397                 cursor.execute("""INSERT OR REPLACE into adduct_pairs (peak_id_a, peak_id_b, 
    398                                label_a, label_b,

c:\ProgramData\Anaconda3\lib\site-packages\beamspy\annotation.py in _annotate_pairs_from_graph(G, ppm, lib_pairs, charge)
    167     for e in G.edges(data=True):
    168 
--> 169         mz_x = G.nodes[e[0]]["mz"]
    170         mz_y = G.nodes[e[1]]["mz"]
    171 

TypeError: 'method' object is not subscriptable

Help is appreciated.

Cheers,
Thomas

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.