aiproteomics
A package for MSMS spectral library prediction models from the field of (phospho-)proteomics, intended to facilitate the testing and comparison of different neural network architectures and existing models.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.1%) to scientific vocabulary
Keywords
Repository
A package for MSMS spectral library prediction models from the field of (phospho-)proteomics, intended to facilitate the testing and comparison of different neural network architectures and existing models.
Basic Info
- Host: GitHub
- Owner: aiproteomics
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://aiproteomics.github.io/aiproteomics/
- Size: 5.61 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 27
- Releases: 6
Topics
Metadata Files
README.dev.md
aiproteomics developer documentation
If you're looking for user documentation, go here.
Development install
```shell
Create a virtual environment, e.g. with
python3 -m venv env
activate virtual environment
source env/bin/activate
make sure to have a recent version of pip and setuptools
python3 -m pip install --upgrade pip setuptools
(from the project root directory)
install aiproteomics as an editable package
python3 -m pip install --no-cache-dir --editable .
install development dependencies
python3 -m pip install --no-cache-dir --editable .[dev] ```
Afterwards check that the install directory is present in the PATH environment variable.
Running the tests
There are two ways to run tests.
The first way requires an activated virtual environment with the development tools installed:
shell
pytest -v
The second is to use tox, which can be installed separately (e.g. with pip install tox), i.e. not necessarily inside the virtual environment you use for installing aiproteomics, but then builds the necessary virtual environments itself by simply running:
shell
tox
Testing with tox allows for keeping the testing environment separate from your development environment.
The development environment will typically accumulate (old) packages during development that interfere with testing; this problem is avoided by testing with tox.
Test coverage
In addition to just running the tests to see if they pass, they can be used for coverage statistics, i.e. to determine how much of the package's code is actually executed during tests. In an activated virtual environment with the development tools installed, inside the package directory, run:
shell
coverage run
This runs tests and stores the result in a .coverage file.
To see the results on the command line, run
shell
coverage report
coverage can also generate output in HTML and other formats; see coverage help for more information.
Running linters locally
For linting we will use prospector and to sort imports we will use isort. Running the linters requires an activated virtual environment with the development tools installed.
```shell
linter
prospector
recursively check import style for the aiproteomics module only
isort --recursive --check-only aiproteomics
recursively check import style for the aiproteomics module only and show
any proposed changes as a diff
isort --recursive --check-only --diff aiproteomics
recursively fix import style for the aiproteomics module only
isort --recursive aiproteomics ```
To fix readability of your code style you can use yapf.
You can enable automatic linting with prospector and isort on commit by enabling the git hook from .githooks/pre-commit, like so:
shell
git config --local core.hooksPath .githooks
Generating the API docs
shell
cd docs
make html
The documentation will be in docs/_build/html
If you do not have make use
shell
sphinx-build -b html docs docs/_build/html
To find undocumented Python objects run
shell
cd docs
make coverage
cat _build/coverage/python.txt
To test snippets in documentation run
shell
cd docs
make doctest
Versioning
Bumping the version across all files is done with bumpversion, e.g.
shell
bumpversion major
bumpversion minor
bumpversion patch
Making a release
This section describes how to make a release in 3 parts:
- preparation
- making a release on PyPI
- making a release on GitHub
(1/3) Preparation
- Update the
(don't forget to update links at bottom of page) - Verify that the information in
CITATION.cffis correct, and that.zenodo.jsoncontains equivalent data - Make sure the version has been updated.
- Run the unit tests with
pytest -v
(2/3) PyPI
In a new terminal, without an activated virtual environment or an env directory:
```shell
prepare a new directory
cd $(mktemp -d aiproteomics.XXXXXX)
fresh git clone ensures the release has the state of origin/main branch
git clone https://github.com/https://github.com/ai-proteomics/aiproteomics .
prepare a clean virtual environment and activate it
python3 -m venv env source env/bin/activate
make sure to have a recent version of pip and setuptools
python3 -m pip install --upgrade pip setuptools
install runtime dependencies and publishing dependencies
python3 -m pip install --no-cache-dir . python3 -m pip install --no-cache-dir .[publishing]
clean up any previously generated artefacts
rm -rf aiproteomics.egg-info rm -rf dist
create the source distribution and the wheel
python3 setup.py sdist bdist_wheel
upload to test pypi instance (requires credentials)
twine upload --repository-url https://test.pypi.org/legacy/ dist/* ```
Visit https://test.pypi.org/project/aiproteomics and verify that your package was uploaded successfully. Keep the terminal open, we'll need it later.
In a new terminal, without an activated virtual environment or an env directory:
```shell cd $(mktemp -d aiproteomics-test.XXXXXX)
prepare a clean virtual environment and activate it
python3 -m venv env source env/bin/activate
make sure to have a recent version of pip and setuptools
pip install --upgrade pip setuptools
install from test pypi instance:
python3 -m pip -v install --no-cache-dir \ --index-url https://test.pypi.org/simple/ \ --extra-index-url https://pypi.org/simple aiproteomics ```
Check that the package works as it should when installed from pypitest.
Then upload to pypi.org with:
```shell
Back to the first terminal,
FINAL STEP: upload to PyPI (requires credentials)
twine upload dist/* ```
(3/3) GitHub
Don't forget to also make a release on GitHub. If your repository uses the GitHub-Zenodo integration this will also trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.
Owner
- Name: aiproteomics
- Login: aiproteomics
- Kind: organization
- Repositories: 1
- Profile: https://github.com/aiproteomics
Citation (CITATION.cff)
# YAML 1.2
---
cff-version: "1.1.0"
title: "aiproteomics"
authors:
-
family-names: Richardson
given-names: Robin A
orcid: "https://orcid.org/0000-0002-9984-2720"
-
family-names: Bodor
given-names: Dani L
orcid: "https://orcid.org/0000-0003-2109-2349"
-
family-names: Henneman
given-names: Alex A
orcid: "https://orcid.org/0000-0002-3746-4410"
-
family-names: Pham
given-names: Thang V
orcid: "https://orcid.org/0000-0003-0333-2492"
-
family-names: Camphuijsen
given-names: Jaro
email: j.camphuijsen@esciencecenter.nl
affiliation: Netherlands eScience Center
orcid: 'https://orcid.org/0000-0002-8928-7831'
-
family-names: Moore
given-names: Candace Makeda
affiliation: "Netherlands eScience Center"
orcid: "https://orcid.org/0000-0003-1672-7565"
-
family-names: Smits
given-names: Djura
affiliation: "Netherlands eScience Center"
orcid: "https://orcid.org/0000-0003-4096-0260"
-
date-released: 2024-12-31
doi: 10.5281/zenodo.7890716
version: "0.6.0"
repository-code: "https://github.com/https://github.com/aiproteomics/aiproteomics"
keywords:
- machine learning
- proteomics
message: "If you use this software, please cite it using these metadata."
license: Apache-2.0
GitHub Events
Total
- Create event: 7
- Release event: 1
- Issues event: 8
- Delete event: 4
- Issue comment event: 6
- Push event: 99
- Pull request review event: 1
- Pull request event: 11
- Fork event: 1
Last Year
- Create event: 7
- Release event: 1
- Issues event: 8
- Delete event: 4
- Issue comment event: 6
- Push event: 99
- Pull request review event: 1
- Pull request event: 11
- Fork event: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: about 3 hours
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: about 3 hours
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- dsmits (16)
- raar1 (7)
- tvpham (1)
- JaroCamphuijsen (1)
Pull Request Authors
- raar1 (11)
- dsmits (9)
- tvpham (2)
- JaroCamphuijsen (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 40 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 2
pypi.org: aiproteomics
A package for MSMS spectral library prediction models from the field of (phospho-)proteomics, intended to facilitate the testing and comparison of different neural network architectures and existing models.
- Documentation: https://aiproteomics.readthedocs.io/
- License: Apache Software License
-
Latest release: 0.6.0
published about 1 year ago
Rankings
Maintainers (2)
Dependencies
- SonarSource/sonarcloud-github-action master composite
- actions/checkout v2 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- citation-file-format/cffconvert-github-action main composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/checkout v3 composite
- gaurav-nelson/github-action-markdown-link-check v1 composite
- SonarSource/sonarcloud-github-action master composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- 217 dependencies
- black ^24.1.1 develop
- bump2version ^1.0.1 develop
- jinja2 3.0.3 develop
- jupyter ^1.0.0 develop
- jupyterlab ^3.6.1 develop
- mdx-include >=1.4.1,<2.0.0 develop
- mkdocs >=1.1.2,<2.0.0 develop
- mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0 develop
- mkdocs-material >=8.2.7,<9.0.0 develop
- mkdocstrings >=0.18.1 develop
- prospector ^1.8.4 develop
- pyroma >=2.4 develop
- pytest ^7.2.1 develop
- pytest-cov ^4.0.0 develop
- chardet ^5.1.0
- graphviz ^0.20.1
- lxml ^4.9.2
- pandas ^1.5.3
- pydot ^1.4.2
- pyteomics ^4.5.6
- python >=3.9.0,<3.12
- seaborn ^0.12.2
- tensorflow 2.11.0
- tf2onnx ^1.13.0