An infrastructure Python package of the AlphaX ecosystem
Project description
AlphaBase
AlphaBase provides all basic python functionalities for AlphaPept ecosystem from the Mann Labs at the Max Planck Institute of Biochemistry and the University of Copenhagen. To enable all hyperlinks in this document, please view it at GitHub. For documentation, please see readthedocs.
About
The infrastructure package of AlphaX ecosystem for MS proteomics. It was first published with AlphaPeptDeep, see Citations.
Packages built upon AlphaBase
- AlphaPeptDeep: deep learning framework for proteomics.
- AlphaRaw: raw data reader for different vendors.
- AlphaDIA: DIA search engine.
- PeptDeep-HLA: personalized HLA-binding peptide prediction.
- AlphaViz: visualization for MS-based proteomics.
- AlphaQuant: quantification for MS-based proteomics.
Citations
Wen-Feng Zeng, Xie-Xuan Zhou, Sander Willems, Constantin Ammar, Maria Wahle, Isabell Bludau, Eugenia Voytik, Maximillian T. Strauss & Matthias Mann. AlphaPeptDeep: a modular deep learning framework to predict peptide properties for proteomics. Nat Commun 13, 7238 (2022). https://doi.org/10.1038/s41467-022-34904-3
License
AlphaBase was developed by the Mann Labs at the Max Planck Institute of Biochemistry and the University of Copenhagen and is freely available with an Apache License. External Python packages (available in the requirements folder) have their own licenses, which can be consulted on their respective websites.
Installation
AlphaBase can be installed and used on all major operating systems (Windows, macOS and Linux). There are two different types of installation possible:
- Pip installer: Choose this installation if you want to use AlphaBase as a Python package in an existing Python 3.8 environment (e.g. a Jupyter notebook).
- Developer installer: Choose this installation if you are familiar with conda and Python. This installation allows access to all available features of AlphaBase and even allows to modify its source code directly. Generally, the developer version of AlphaBase outperforms the precompiled versions which makes this the installation of choice for high-throughput experiments.
Pip
AlphaBase can be installed in an existing Python 3.8 environment with a
single bash
command. This bash
command can also be run directly
from within a Jupyter notebook by prepending it with a !
:
pip install alphabase
Installing AlphaBase like this avoids conflicts when integrating it in other tools, as this does not enforce strict versioning of dependancies. However, if new versions of dependancies are released, they are not guaranteed to be fully compatible with AlphaBase. While this should only occur in rare cases where dependencies are not backwards compatible, you can always force AlphaBase to use dependancy versions which are known to be compatible with:
pip install "alphabase[stable]"
NOTE: You might need to run pip install -U pip
before installing
AlphaBase like this. Also note the double quotes "
.
For those who are really adventurous, it is also possible to directly
install any branch (e.g. @development
) with any extras
(e.g. #egg=alphabase[stable,development-stable]
) from GitHub with e.g.
pip install "git+https://github.com/MannLabs/alphabase.git@development#egg=alphabase[stable,development-stable]"
Developer
AlphaBase can also be installed in editable (i.e. developer) mode with a
few bash
commands. This allows to fully customize the software and
even modify the source code to your specific needs. When an editable
Python package is installed, its source code is stored in a transparent
location of your choice. While optional, it is advised to first (create
and) navigate to e.g. a general software folder:
mkdir ~/folder/where/to/install/software
cd ~/folder/where/to/install/software
The following commands assume you do not perform any additional cd
commands anymore.
Next, download the AlphaBase repository from GitHub either directly or
with a git
command. This creates a new AlphaBase subfolder in your
current directory.
git clone https://github.com/MannLabs/alphabase.git
For any Python package, it is highly recommended to use a separate conda virtual environment, as otherwise dependancy conflicts can occur with already existing packages.
conda create --name alphabase python=3.9 -y
conda activate alphabase
Finally, AlphaBase and all its dependancies need to be
installed. To take advantage of all features and allow development (with
the -e
flag), this is best done by also installing the development
dependencies instead of only
the core dependencies:
pip install -e "./alphabase[development]"
By default this installs loose dependancies (no explicit versioning),
although it is also possible to use stable dependencies
(e.g. pip install -e "./alphabase[stable,development-stable]"
).
By using the editable flag -e
, all modifications to the AlphaBase
source code folder are directly reflected when running
AlphaBase. Note that the AlphaBase folder cannot be moved and/or renamed
if an editable version is installed. In case of confusion, you can
always retrieve the location of any Python module with e.g. the command
import module
followed by module.__file__
.
Usage
TODO
Troubleshooting
In case of issues, check out the following:
- Issues: Try a few different search terms to find out if a similar problem has been encountered before
- Discussions: Check if your problem or feature requests has been discussed before.
How to contribute
If you like this software, you can give us a star to boost our visibility! All direct contributions are also welcome. Feel free to post a new issue or clone the repository and create a pull request with a new branch. For an even more interactive participation, check out the discussions and the the Contributors License Agreement.
Notes for developers
Tagging of changes
In order to have release notes automatically generated, changes need to be tagged with labels.
The following labels are used (should be safe-explanatory):
breaking-change
, bug
, enhancement
.
Release a new version
This package uses a shared release process defined in the alphashared repository. Please see the instructions there.
pre-commit hooks
It is highly recommended to use the provided pre-commit hooks, as the CI pipeline enforces all checks therein to pass in order to merge a branch.
The hooks need to be installed once by
pre-commit install
You can run the checks yourself using:
pre-commit run --all-files
Changelog
See the HISTORY.md for a full overview of the changes made in each version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alphabase-1.4.2.tar.gz
.
File metadata
- Download URL: alphabase-1.4.2.tar.gz
- Upload date:
- Size: 240.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d50eb2cdf981016852ff9c487b6f0d52647854eda96c5e8e87513f47635e4b |
|
MD5 | afa874c712b4cfad12e871c93ac1530e |
|
BLAKE2b-256 | a0bf4d49d7a624f4791529bab00d604250b020e28810c584de4fb9ae340f9357 |
File details
Details for the file alphabase-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: alphabase-1.4.2-py3-none-any.whl
- Upload date:
- Size: 257.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168da9fcb2f33f6344d082717a3d85d5937ea210545312e9acb6b68a26584d87 |
|
MD5 | 1edc0dd413aa94abeface09e63b0e124 |
|
BLAKE2b-256 | 33ce5bdbb1427adaf4b2a9ac15666aaf13b3045099394167be5ca32edae533e5 |