MSMetaEnhancer


NameMSMetaEnhancer JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/RECETOX/MSMetaEnhancer
SummaryRepository for tool that adds more annotations (e.g. SMILES, InChI, CAS number) to MSP files (Python version).
upload_time2023-05-12 07:36:30
maintainerRECETOX
docs_urlNone
authorMatej Trojak
requires_python>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## MSMetaEnhancer

[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/msmetaenhancer/README.html)
[![docs](https://readthedocs.org/projects/msmetaenhancer/badge/?version=latest)](https://msmetaenhancer.readthedocs.io/en/latest/)
[![Conda](https://img.shields.io/conda/v/bioconda/msmetaenhancer)](https://anaconda.org/bioconda/msmetaenhancer)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.04494/status.svg)](https://doi.org/10.21105/joss.04494)

**MSMetaEnhancer** is a tool used for `.msp` files annotation.
It adds metadata like SMILES, InChI, and CAS number fetched from the following services: [CIR](https://cactus.nci.nih.gov/chemical/structure_documentation), [CTS](https://cts.fiehnlab.ucdavis.edu/), [PubChem](https://pubchem.ncbi.nlm.nih.gov/), [IDSM](https://idsm.elixir-czech.cz/), and [BridgeDb](https://bridgedb.github.io/).
The app uses asynchronous implementation of annotation process allowing for optimal fetching speed.

If you use MSMetaEnhancer in your work, please cite the following publication:

Troják et al., (2022). MSMetaEnhancer: A Python package for mass spectra metadata annotation. Journal of Open Source Software, 7(79), 4494, https://doi.org/10.21105/joss.04494
### Usage

```python
import asyncio

from MSMetaEnhancer import Application

app = Application()

# import your .msp file
app.load_spectra('tests/test_data/sample.msp', file_format='msp')

# curate given metadata (e.g. fix CAS numbers)
app.curate_metadata()

# specify requested services (these are supported)
services = ['CTS', 'CIR', 'IDSM', 'PubChem', 'BridgeDb', 'RDKit']

# specify requested jobs
jobs = [('name', 'inchi', 'IDSM'), ('inchi', 'formula', 'IDSM'), ('inchi', 'inchikey', 'IDSM'),
        ('inchi', 'iupac_name', 'IDSM'), ('inchi', 'canonical_smiles', 'IDSM')]

# run asynchronous annotations of spectra data
asyncio.run(app.annotate_spectra(services, jobs))

# export .msp file 
app.save_spectra('tests/test_data/sample_out.msp', file_format='msp')
```

### Installation

Prerequisites:

- Python 3.9+
- Anaconda

Install `MSMetaEnhancer` from Bioconda with:

```
# install MSMetaEnhancer in a new virtual environment to avoid dependency clashes
conda create --name MSMetaEnhancer python=3.9
conda activate MSMetaEnhancer
conda install --channel bioconda --channel conda-forge MSMetaEnhancer
```

### Developer Documentation

#### Setup

Create your development environment using the provided [script](conda/environment-dev.yml) via conda to install all required dependencies.

#### Contributing

We appreciate contributions - feel free to open an issue on our repository, create your own fork, work on the problem and post a PR. 
Please add your contributions to the [changelog](CHANGELOG.md) and to adhere to the [versioning](https://semver.org/spec/v2.0.0.html).
For more information see [here](CONTRIBUTING.md).

#### Testing

All functionality is tested with the [pytest](https://docs.pytest.org/en/6.2.x/contents.html) framework.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/RECETOX/MSMetaEnhancer",
    "name": "MSMetaEnhancer",
    "maintainer": "RECETOX",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "GalaxyToolsDevelopmentandDeployment@space.muni.cz",
    "keywords": "",
    "author": "Matej Trojak",
    "author_email": "matej.trojak@recetox.muni.cz",
    "download_url": "https://files.pythonhosted.org/packages/57/20/f9af5b058151d3dace3fe781b856ac5156166b55afb696350246c0d568f2/MSMetaEnhancer-0.3.0.tar.gz",
    "platform": null,
    "description": "## MSMetaEnhancer\n\n[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/msmetaenhancer/README.html)\n[![docs](https://readthedocs.org/projects/msmetaenhancer/badge/?version=latest)](https://msmetaenhancer.readthedocs.io/en/latest/)\n[![Conda](https://img.shields.io/conda/v/bioconda/msmetaenhancer)](https://anaconda.org/bioconda/msmetaenhancer)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.04494/status.svg)](https://doi.org/10.21105/joss.04494)\n\n**MSMetaEnhancer** is a tool used for `.msp` files annotation.\nIt adds metadata like SMILES, InChI, and CAS number fetched from the following services: [CIR](https://cactus.nci.nih.gov/chemical/structure_documentation), [CTS](https://cts.fiehnlab.ucdavis.edu/), [PubChem](https://pubchem.ncbi.nlm.nih.gov/), [IDSM](https://idsm.elixir-czech.cz/), and [BridgeDb](https://bridgedb.github.io/).\nThe app uses asynchronous implementation of annotation process allowing for optimal fetching speed.\n\nIf you use MSMetaEnhancer in your work, please cite the following publication:\n\nTroj\u00e1k et al., (2022). MSMetaEnhancer: A Python package for mass spectra metadata annotation. Journal of Open Source Software, 7(79), 4494, https://doi.org/10.21105/joss.04494\n### Usage\n\n```python\nimport asyncio\n\nfrom MSMetaEnhancer import Application\n\napp = Application()\n\n# import your .msp file\napp.load_spectra('tests/test_data/sample.msp', file_format='msp')\n\n# curate given metadata (e.g. fix CAS numbers)\napp.curate_metadata()\n\n# specify requested services (these are supported)\nservices = ['CTS', 'CIR', 'IDSM', 'PubChem', 'BridgeDb', 'RDKit']\n\n# specify requested jobs\njobs = [('name', 'inchi', 'IDSM'), ('inchi', 'formula', 'IDSM'), ('inchi', 'inchikey', 'IDSM'),\n        ('inchi', 'iupac_name', 'IDSM'), ('inchi', 'canonical_smiles', 'IDSM')]\n\n# run asynchronous annotations of spectra data\nasyncio.run(app.annotate_spectra(services, jobs))\n\n# export .msp file \napp.save_spectra('tests/test_data/sample_out.msp', file_format='msp')\n```\n\n### Installation\n\nPrerequisites:\n\n- Python 3.9+\n- Anaconda\n\nInstall `MSMetaEnhancer` from Bioconda with:\n\n```\n# install MSMetaEnhancer in a new virtual environment to avoid dependency clashes\nconda create --name MSMetaEnhancer python=3.9\nconda activate MSMetaEnhancer\nconda install --channel bioconda --channel conda-forge MSMetaEnhancer\n```\n\n### Developer Documentation\n\n#### Setup\n\nCreate your development environment using the provided [script](conda/environment-dev.yml) via conda to install all required dependencies.\n\n#### Contributing\n\nWe appreciate contributions - feel free to open an issue on our repository, create your own fork, work on the problem and post a PR. \nPlease add your contributions to the [changelog](CHANGELOG.md) and to adhere to the [versioning](https://semver.org/spec/v2.0.0.html).\nFor more information see [here](CONTRIBUTING.md).\n\n#### Testing\n\nAll functionality is tested with the [pytest](https://docs.pytest.org/en/6.2.x/contents.html) framework.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Repository for tool that adds more annotations (e.g. SMILES, InChI, CAS number) to MSP files (Python version).",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/RECETOX/MSMetaEnhancer"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4f18ee99e4133c782507fac8027f02a1c18acb5e2b2f3b3120c2f8e74708b63",
                "md5": "81bd59ccc4507b9bad03fdd00ee37bf1",
                "sha256": "eb4d4d4afef464ffb1449595b0f2d265ac36a0aa51dcfb247abbf6fb23beddd0"
            },
            "downloads": -1,
            "filename": "MSMetaEnhancer-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81bd59ccc4507b9bad03fdd00ee37bf1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 30067,
            "upload_time": "2023-05-12T07:35:53",
            "upload_time_iso_8601": "2023-05-12T07:35:53.612079Z",
            "url": "https://files.pythonhosted.org/packages/e4/f1/8ee99e4133c782507fac8027f02a1c18acb5e2b2f3b3120c2f8e74708b63/MSMetaEnhancer-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5720f9af5b058151d3dace3fe781b856ac5156166b55afb696350246c0d568f2",
                "md5": "ba36e5ac3c0b052ee891b00503bbd3d6",
                "sha256": "600c1d83164f0b1a94787b7be5828caa3c3d0274f04120b697de1aca1a415551"
            },
            "downloads": -1,
            "filename": "MSMetaEnhancer-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ba36e5ac3c0b052ee891b00503bbd3d6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 20190,
            "upload_time": "2023-05-12T07:36:30",
            "upload_time_iso_8601": "2023-05-12T07:36:30.673124Z",
            "url": "https://files.pythonhosted.org/packages/57/20/f9af5b058151d3dace3fe781b856ac5156166b55afb696350246c0d568f2/MSMetaEnhancer-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-12 07:36:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "RECETOX",
    "github_project": "MSMetaEnhancer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "msmetaenhancer"
}
        
Elapsed time: 1.56787s