Skip to content

Commit 36deab3

Browse files
authored
Merge pull request #1 from computational-metabolomics/Release-v0.1.0
Release v0.1.0
2 parents 8cc8ec0 + 367e8c1 commit 36deab3

35 files changed

+22433
-0
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = tests/*,setup.py,amimspy/__main__.py

.github/workflows/build-test.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: amimspy
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest]
12+
python-version: [3.7, 3.8]
13+
14+
env:
15+
OS: ${{ matrix.os }}
16+
PYTHON: ${{ matrix.python-version }}
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Setup conda - Python ${{ matrix.python-version }}
22+
uses: s-weigand/setup-conda@v1
23+
with:
24+
update-conda: true
25+
python-version: ${{ matrix.python-version }}
26+
conda-channels: conda-forge, bioconda
27+
28+
- name: Install dependencies
29+
run: |
30+
31+
python --version
32+
conda env update --file environment.yml --name base
33+
34+
- name: Lint with flake8
35+
run: |
36+
37+
conda install flake8
38+
39+
# stop build if there are Python syntax errors or undefined names
40+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
41+
42+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
44+
45+
- name: Test with pytest-cov
46+
run: |
47+
48+
python setup.py install
49+
amimspy --help
50+
51+
conda install pytest codecov pytest-cov -c conda-forge
52+
pytest --cov ./ --cov-config=.coveragerc --cov-report=xml
53+
54+
- name: Upload code coverage to codecov
55+
uses: codecov/codecov-action@v1
56+
with:
57+
flags: unittests
58+
env_vars: OS,PYTHON
59+
fail_ci_if_error: true
60+
verbose: true

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*,cover
47+
.hypothesis/
48+
debug.py
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
docs/source/images/alignment.graffle
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# dotenv
82+
.env
83+
84+
# virtualenv
85+
.venv
86+
venv/
87+
venv-py3/
88+
ENV/
89+
90+
# PyCharm
91+
# User-specific stuff:
92+
.idea/
93+
94+
# vscode
95+
.vscode
96+
97+
# R-lanaguage
98+
# History files
99+
.Rhistory
100+
.Rapp.history
101+
102+
# Session Data files
103+
.RData
104+
105+
#macOS
106+
*.DS_Store
107+
108+
*~
109+

.readthedocs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
12+
# Optionally build your docs in additional formats such as PDF and ePub
13+
formats: all
14+
15+
conda:
16+
environment: environment.yml
17+
18+
python:
19+
version: 3.7
20+
install:
21+
- method: pip
22+
path: .

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include README.rst
2+
include LICENSE
3+
include requirements.txt
4+
include examples/*.*
5+
include tests/*.py
6+
include tests/data/*.*
7+
include tests/results/*.*

README.rst

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
AMIMSpy
2+
=======
3+
|Build Status| |Build Status (AppVeyor)| |codecov| |License| |RTD doc| |Git|
4+
5+
Python package for processing acoustic mist ionization mass spectrometry-based metabolomics and lipidomics data
6+
7+
- **Documentation:** https://amimspy.readthedocs.io/en/latest
8+
- **Source:** https://github.com/computational-metabolomics/amimspy
9+
- **Bug reports:** https://github.com/computational-metabolomics/amimspy/issues
10+
11+
12+
Installation
13+
------------
14+
See the `Installation page <https://amimspy.readthedocs.io/en/latest/installation.html>`__ of
15+
the `online documentation <https://amimspy.readthedocs.io/en/latest/>`__.
16+
17+
18+
Bug reports
19+
-----------
20+
Please report any bugs that you find `here <https://github.com/computational-metabolomics/amimspy/issues>`_.
21+
Or fork the repository on `GitHub <https://github.com/computational-metabolomics/amimspy/>`_
22+
and create a pull request (PR). We welcome all contributions, and we
23+
will help you to make the PR if you are new to `git`.
24+
25+
26+
Credits
27+
-------
28+
29+
**Developers and contributers**
30+
- Matthew Smith ([email protected]) - `University of Birmingham (UK) <https://www.birmingham.ac.uk/>`__
31+
- Ralf J. M. Weber ([email protected]) - `University of Birmingham (UK) <https://www.birmingham.ac.uk/staff/profiles/biosciences/weber-ralf.aspx>`__
32+
33+
**AMIMSpy acknowledges support from the following funders:**
34+
- BBSRC and Waters Corporation for an iCASE PhD studentship.
35+
36+
37+
License
38+
--------
39+
AMIMSpy is licensed under the GNU General Public License v3.0 (see `LICENSE file <https://github.com/computational-metabolomics/amimspy/blob/master/LICENSE>`_ for licensing information). Copyright © 2020 Matthew Smith, Ralf Weber
40+
41+
42+
.. |Build Status| image:: https://github.com/computational-metabolomics/amimspy/workflows/amimspy/badge.svg
43+
:target: https://github.com/computational-metabolomics/amimspy/actions
44+
45+
.. |Build Status (AppVeyor)| image:: https://img.shields.io/appveyor/ci/RJMW/amimspy.svg?logo=appveyor&style=flat-square&maxAge=600
46+
:target: https://ci.appveyor.com/project/RJMW/amimspy/branch/master
47+
48+
.. |Git| image:: https://img.shields.io/badge/repository-GitHub-blue.svg?style=flat&maxAge=3600
49+
:target: https://github.com/computational-metabolomics/amimspy
50+
51+
.. |License| image:: https://img.shields.io/badge/License-GPLv3-blue.svg
52+
:target: https://www.gnu.org/licenses/gpl-3.0.html
53+
54+
.. |RTD doc| image:: https://img.shields.io/badge/documentation-RTD-71B360.svg?style=flat&maxAge=3600
55+
:target: https://amimspy.readthedocs.io/en/latest/
56+
57+
.. |codecov| image:: https://codecov.io/gh/computational-metabolomics/amimspy/branch/master/graph/badge.svg
58+
:target: https://codecov.io/gh/computational-metabolomics/amimspy

amimspy/__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright © 2020-2021 Matthew Smith, Ralf Weber
5+
#
6+
# This file is part of AMIMSpy.
7+
#
8+
# AMIMSpy is free software: you can redistribute it and/or modify
9+
# it under the terms of the GNU General Public License as published by
10+
# the Free Software Foundation, either version 3 of the License, or
11+
# (at your option) any later version.
12+
#
13+
# AMIMSpy is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
# GNU General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU General Public License
19+
# along with AMIMSpy. If not, see <https://www.gnu.org/licenses/>.
20+
#
21+
22+
__author__ = 'Matthew Smith ([email protected]), Ralf Weber ([email protected])'
23+
__credits__ = 'Matthew Smith ([email protected]), Ralf Weber ([email protected])'
24+
__version__ = '0.1.0'
25+
__license__ = 'GPLv3'

0 commit comments

Comments
 (0)