Skip to content

Commit 65c7225

Browse files
authored
Several updates and fixes for next release (#8)
* Update README.rst * Update form (GUI) * Update tests and test data * Update and bump dependencies * Fix incompatibilities * Update configs project * Bump version to v0.1.5 (development version) * Update adduct and isotope libraries using nist_database.txt * Rename beams to beamspy
1 parent 0603d37 commit 65c7225

File tree

91 files changed

+2219
-2616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2219
-2616
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before_script:
1515
- "export DISPLAY=:99.0"
1616

1717
script:
18-
- beams --help
18+
- beamspy --help
1919
- green -vvv --run-coverage
2020

2121
after_script:

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ include examples/*.*
55
include tests/*.py
66
include tests/test_data/*.*
77
include tests/test_results/.gitignore
8-
include beams/data/*.txt
9-
include beams/data/databases/*.sql.gz
10-
include beams/data/databases/databases.txt
8+
include beamspy/data/*.txt
9+
include beamspy/data/databases/*.sql.gz
10+
include beamspy/data/databases/databases.txt

README.rst

Lines changed: 50 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,116 @@
1-
BEAMS - Birmingham mEtabolite Annotation for Mass SpectroMetry
2-
================================================================
1+
BEAMSpy - Birmingham mEtabolite Annotation for Mass Spectrometry (Python package)
2+
==================================================================================
33
|Version| |Py versions| |Git| |Bioconda| |Build Status (Travis)| |Build Status (AppVeyor)| |License| |RTD doc| |codecov| |mybinder|
44

5-
BEAMS is a Python Package to annotate LC-MS and DIMS data.
5+
BEAMSpy (Birmingham mEtabolite Annotation for Mass Spectrometry) is a Python package that includes several automated and
6+
seamless computational modules that are applied to putatively annotate metabolites detected in untargeted ultra (high)
7+
performance liquid chromatography-mass spectrometry or untargeted direct infusion mass spectrometry metabolomic assays
8+
in an automated process. All reported metabolites are annotated to level 3 of the Metabolomics Standards
9+
Initiative (MSI) reporting standards (Metabolomics. 2007 Sep; 3(3): 211–221. `doi: 10.1007/s11306-007-0082-2 <https://doi.org/10.1007/s11306-007-0082-2>`_).
610

11+
The package is highly flexible to suit the diversity of sample types studied and mass spectrometers applied in
12+
untargeted metabolomics studies. The user can use the standard reference files included in the package or can develop
13+
their own reference files.
14+
15+
16+
- :ref:`Quick installation <quick_installation>`
717
- |documentation|
8-
- |source|
918
- |bug reports|
19+
- |License|
1020

11-
Installation
12-
------------------------
21+
22+
.. _quick_installation:
23+
24+
Quick installation
25+
-------------------
1326

1427
Conda_
1528
~~~~~~~
1629

1730
1. Install |miniconda|. Follow the steps described |conda_install|.
18-
2. Run the following commands to install BEAMS.
31+
2. Run the following commands to install BEAMSpy.
1932

2033
Windows-64, Linux-64 and OSx
2134

2235
::
2336

24-
$ conda create -n beams beams -c conda-forge -c bioconda -c computational-metabolomics
25-
$ activate beams
37+
$ conda create -n beamspy beamspy -c conda-forge -c bioconda -c computational-metabolomics
38+
$ activate beamspy
2639

2740
Linux-64 and OSx
2841

2942
::
3043

31-
$ conda create -n beams beams -c conda-forge -c bioconda -c computational-metabolomics
32-
$ source activate beams
44+
$ conda create -n beamspy beamspy -c conda-forge -c bioconda -c computational-metabolomics
45+
$ source activate beamspy
3346

3447

3548
Usage
3649
------------------------
3750

38-
Command line
39-
~~~~~~~~~~~~~
51+
Command line interface (CLI)
52+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4053

4154
::
4255

43-
$ beams --help
56+
$ beamspy --help
4457

45-
GUI
46-
~~~~~~~~~~~~~
58+
Graphical user interface (GUI)
59+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4760

4861
::
4962

50-
$ beams start-gui
63+
$ beamspy start-gui
5164

52-
Bugs
65+
Bug reports
5366
------------------------
5467

55-
Please report any bugs that you find `here <https://github.com/computational-metabolomics/beams/issues>`_.
56-
Or fork the repository on `GitHub <https://github.com/computational-metabolomics/beams/>`_
68+
Please report any bugs that you find `here <https://github.com/computational-metabolomics/beamspy/issues>`_.
69+
Or fork the repository on `GitHub <https://github.com/computational-metabolomics/beamspy/>`_
5770
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 <https://guides.github.com/activities/hello-world/>`_.
5871

5972
License
6073
------------------------
6174

6275
Released under the GNU General Public License v3.0 (see `LICENSE file <https://github.com/computational-metabolomics/beams/LICENSE>`_)
6376

64-
.. |Build Status (Travis)| image:: https://img.shields.io/travis/computational-metabolomics/beams.svg?branch=dev&style=flat&maxAge=3600&label=Travis-CI
65-
:target: https://travis-ci.com/computational-metabolomics/beams
77+
.. |Build Status (Travis)| image:: https://img.shields.io/travis/computational-metabolomics/beamspy.svg?branch=dev&style=flat&maxAge=3600&label=Travis-CI
78+
:target: https://travis-ci.com/computational-metabolomics/beamspy
6679

67-
.. |Build Status (AppVeyor)| image:: https://img.shields.io/appveyor/ci/RJMW/beams.svg?style=flat&maxAge=3600&label=AppVeyor
68-
:target: https://ci.appveyor.com/project/RJMW/beams
80+
.. |Build Status (AppVeyor)| image:: https://img.shields.io/appveyor/ci/RJMW/beamspy.svg?style=flat&maxAge=3600&label=AppVeyor
81+
:target: https://ci.appveyor.com/project/RJMW/beamspy
6982

70-
.. |Py versions| image:: https://img.shields.io/pypi/pyversions/beams.svg?style=flat&maxAge=3600
71-
:target: https://pypi.python.org/pypi/beams/
83+
.. |Py versions| image:: https://img.shields.io/pypi/pyversions/beamspy.svg?style=flat&maxAge=3600
84+
:target: https://pypi.python.org/pypi/beamspy/
7285

73-
.. |Version| image:: https://img.shields.io/pypi/v/beams.svg?style=flat&maxAge=3600
74-
:target: https://pypi.python.org/pypi/beams/
86+
.. |Version| image:: https://img.shields.io/pypi/v/beamspy.svg?style=flat&maxAge=3600
87+
:target: https://pypi.python.org/pypi/beamspy/
7588

7689
.. |Git| image:: https://img.shields.io/badge/repository-GitHub-blue.svg?style=flat&maxAge=3600
77-
:target: https://github.com/computational-metabolomics/beams
90+
:target: https://github.com/computational-metabolomics/beamspy
7891

7992
.. |Bioconda| image:: https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat&maxAge=3600
80-
:target: http://bioconda.github.io/recipes/beams/README.html
93+
:target: http://bioconda.github.io/recipes/beamspy/README.html
8194

82-
.. |License| image:: https://img.shields.io/pypi/l/beams.svg?style=flat&maxAge=3600
95+
.. |License| image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg
8396
:target: https://www.gnu.org/licenses/gpl-3.0.html
8497

8598
.. |RTD doc| image:: https://img.shields.io/badge/documentation-RTD-71B360.svg?style=flat&maxAge=3600
86-
:target: http://beams.readthedocs.io/en/latest/beams/index.html
99+
:target: https://beamspy.readthedocs.io/en/latest/
87100

88-
.. |codecov| image:: https://codecov.io/gh/computational-metabolomics/beams/branch/master/graph/badge.svg
89-
:target: https://codecov.io/gh/computational-metabolomics/beams
101+
.. |codecov| image:: https://codecov.io/gh/computational-metabolomics/beamspy/branch/master/graph/badge.svg
102+
:target: https://codecov.io/gh/computational-metabolomics/beamspy
90103

91104
.. |mybinder| image:: https://mybinder.org/badge_logo.svg
92-
:target: https://mybinder.org/v2/gh/computational-metabolomics/beams/master?filepath=notebooks
105+
:target: https://mybinder.org/v2/gh/computational-metabolomics/beamspy/master?filepath=notebooks
93106

94107
.. |documentation| raw:: html
95108

96-
<a href="http://beams.readthedocs.io/en/latest/beams/index.html" target="_blank">Documentation</a>
97-
98-
.. |source| raw:: html
99-
100-
<a href="https://github.com/computational-metabolomics/beams/tree/dev/beams" target="_blank">Source</a>
109+
<a href="https://beamspy.readthedocs.io/en/latest/" target="_blank">Documentation</a>
101110

102111
.. |bug reports| raw:: html
103112

104-
<a href="https://github.com/computational-metabolomics/beams/issues" target="_blank">Bug reports</a>
113+
<a href="https://github.com/computational-metabolomics/beamspy/issues" target="_blank">Bug reports</a>
105114

106115
.. |conda_install| raw:: html
107116

@@ -113,4 +122,3 @@ Released under the GNU General Public License v3.0 (see `LICENSE file <https://g
113122

114123
.. _pip: https://pip.pypa.io/
115124
.. _Conda: http://conda.pydata.org/docs/
116-

beams/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

beams/data/BEAMS_DB.sqlite

-25.5 MB
Binary file not shown.

beams/data/adducts.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

beams/data/isotopes.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

beamspy/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__author__ = '[email protected]'
2+
__credits__ = '[email protected]'
3+
__version__ = '0.1.5'
4+
__license__ = 'GPLv3'

beams/__main__.py renamed to beamspy/__main__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from beams import __version__
4+
from beamspy import __version__
55
import argparse
66
import sys
77
import os
88
import networkx as nx
9-
from beams import in_out
10-
from beams import grouping
11-
from beams import annotation
12-
from beams import plots
9+
from beamspy import in_out
10+
from beamspy import grouping
11+
from beamspy import annotation
12+
from beamspy import plots
1313

1414

1515
def map_delimiter(delimiter):
@@ -21,7 +21,7 @@ def map_delimiter(delimiter):
2121

2222

2323
def main():
24-
print("Executing BEAMS version {}.".format(__version__))
24+
print("Executing BEAMSpy version {}.".format(__version__))
2525

2626
parser = argparse.ArgumentParser(description='Annotation package of LC-MS and DIMS data',
2727
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
@@ -137,7 +137,7 @@ def main():
137137
parser_amf.add_argument('-d', '--db', type=str, required=True,
138138
help="Sqlite database to write results.")
139139

140-
parser_amf.add_argument('-c', '--db-mf', type=str, required=True, default="http://mfdb.bham.ac.uk",
140+
parser_amf.add_argument('-c', '--db-mf', type=str, default="http://mfdb.bham.ac.uk",
141141
help="Molecular formulae database (reference).")
142142

143143
parser_amf.add_argument('-a', '--adducts-library', type=str, default=None, required=False,
@@ -334,7 +334,7 @@ def main():
334334

335335
if args.step == "start-gui":
336336
from PySide2 import QtWidgets
337-
from beams.gui import BeamsApp
337+
from beamspy.gui import BeamsApp
338338
app = QtWidgets.QApplication(sys.argv)
339339
app.setStyle("Fusion")
340340
form = BeamsApp()

0 commit comments

Comments
 (0)