matchms / matchms-backup

Python library for fuzzy comparison of mass spectrum data and other Python objects
Apache License 2.0
0 stars 1 forks source link
fuzzy-matching fuzzy-search mass-spectrometry python similarity-measures

.. image:: readthedocs/_static/matchms.png :width: 600 :alt: matchms logo

################################################################################ matchms ################################################################################ Vector representation and similarity measure for mass spectrometry data.

|

.. list-table:: :widths: 25 25 :header-rows: 1

.. |GitHub Badge| image:: https://img.shields.io/badge/github-repo-000.svg?logo=github&labelColor=gray&color=blue :target: https://github.com/matchms/matchms :alt: GitHub Badge

.. |License Badge| image:: https://img.shields.io/github/license/matchms/matchms :target: https://github.com/matchms/matchms :alt: License Badge

.. |Conda Badge| image:: https://anaconda.org/nlesc/matchms/badges/installer/conda.svg :target: https://conda.anaconda.org/nlesc :alt: Conda Badge .. |Research Software Directory Badge| image:: https://img.shields.io/badge/rsd-matchms-00a3e3.svg :target: https://www.research-software.nl/software/matchms :alt: Research Software Directory Badge

.. |Zenodo Badge| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3716378.svg :target: https://doi.org/10.5281/zenodo.3716378 :alt: Zenodo Badge

.. |CII Best Practices Badge| image:: https://bestpractices.coreinfrastructure.org/projects/3792/badge :target: https://bestpractices.coreinfrastructure.org/projects/3792 :alt: CII Best Practices Badge

.. |GitHub Actions Badge| image:: https://github.com/matchms/matchms/workflows/Build%20matchms/badge.svg :target: https://github.com/matchms/matchms/actions?query=workflow%3A%22Build+matchms%22 :alt: GitHub Actions Badge

.. |ReadTheDocs Badge| image:: https://readthedocs.org/projects/matchms/badge/?version=latest :alt: Documentation Status :scale: 100% :target: https://matchms.readthedocs.io/en/latest/?badge=latest

.. |Sonarcloud Quality Gate Badge| image:: https://sonarcloud.io/api/project_badges/measure?project=matchms_matchms&metric=alert_status :target: https://sonarcloud.io/dashboard?id=matchms_matchms :alt: Sonarcloud Quality Gate

.. |Sonarcloud Coverage Badge| image:: https://sonarcloud.io/api/project_badges/measure?project=matchms_matchms&metric=coverage :target: https://sonarcloud.io/component_measures?id=matchms_matchms&metric=Coverage&view=list :alt: Sonarcloud Coverage

.. |Python Build| image:: https://github.com/matchms/matchms/workflows/Python%20Build/badge.svg :target: https://github.com/matchms/matchms/actions?query=workflow%3A%22Python%20Build%22 :alt: Python Build

.. |Anaconda Build| image:: https://github.com/matchms/matchms/workflows/Anaconda%20Build/badge.svg :target: https://github.com/matchms/matchms/actions?query=workflow%3A%22Anaconda%20Build%22 :alt: Anaconda Build

.. |Anaconda Publish| image:: https://github.com/matchms/matchms/workflows/Anaconda%20Publish/badge.svg :target: https://github.com/matchms/matchms/actions?query=workflow%3A%22Anaconda%20Publish%22 :alt: Anaconda Publish


Documentation for users


Installation

Install matchms from Anaconda Cloud with

.. code-block:: console

conda install --channel nlesc --channel bioconda --channel conda-forge matchms

Glossary of terms

.. list-table:: :header-rows: 1


Documentation for developers


Installation

To install matchms, do:

.. code-block:: console

git clone https://github.com/matchms/matchms.git cd matchms conda env create --file conda/environment-dev.yml conda activate matchms-dev pip install --editable .

Run the linter with:

.. code-block:: console

prospector

Run tests (including coverage) with:

.. code-block:: console

pytest

Conda package

To build anaconda package locally, do:

.. code-block:: console

conda deactivate conda env create --file conda/environment-build.yml conda activate matchms-build BUILD_FOLDER=/tmp/matchms/_build rm -rfv $BUILD_FOLDER;mkdir -p $BUILD_FOLDER conda build --numpy 1.18.1 --no-include-recipe -c bioconda -c conda-forge \ --croot $BUILD_FOLDER ./conda

If successful, this will yield the built matchms conda package as matchms-<version>*.tar.bz2 in $BUILD_FOLDER/noarch/. You can test if installation of this conda package works with:

.. code-block:: console

conda install \ --channel bioconda \ --channel conda-forge \ --channel file://${CONDA_PREFIX}/output/noarch/ \ matchms

To publish the package on anaconda cloud, do:

.. code-block:: console

anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user nlesc --force $BUILD_FOLDER/noarch/*.tar.bz2

where secrets.ANACONDA_TOKEN is a token to be generated on the Anaconda Cloud website. This secret should be added to GitHub repository.

To remove matchms package:

.. code-block:: console

conda remove matchms

To remove matchms-build environment:

.. code-block:: console

conda env remove --name matchms-build

Flowchart

.. image:: flowchart.svg.png :width: 400 :alt: Flowchart

Contributing

If you want to contribute to the development of matchms, have a look at the contribution guidelines <CONTRIBUTING.md>_.


License


Copyright (c) 2020, Netherlands eScience Center

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Credits


This package was created with Cookiecutter <https://github.com/audreyr/cookiecutter> and the NLeSC/python-template <https://github.com/NLeSC/python-template>.