An open-source Python package for downstream mass spectrometry downstream data analysis from the Mann Group at the University of Copenhagen.
Citation:
Krismer, E., Bludau, I., Strauss M. & Mann M. (2023). AlphaPeptStats: an open-source Python package for automated and scalable statistical analysis of mass spectrometry-based proteomics. Bioinformatics https://doi.org/10.1093/bioinformatics/btad461
AlphaPeptStats can be used as
- python library (pip-installation), or
- Graphical User Interface (either pip-installation or one-click installer).
AlphaStats can be installed in an existing Python >=3.9 environment with a single bash
command.
pip install alphastats
In case you want to use the Graphical User Interface, use following command in the command line:
alphastats gui
If you get an AxiosError: Request failed with status code 403'
when uploading files, try running DISABLE_XSRF=1 alphastats gui
.
If you receive an error like library 'hdf5' not found
, your computer is missing the HDF5 library. Install it via your favorite package manager or use conda create --name alphastats python=3.9 hdf5
.
Alternatively, use conda install -c anaconda pytables
.
AlphaStats can be imported as a Python package into any Python script or notebook with the command import alphastats
.
A brief Jupyter notebook tutorial on how to use the API is also present in the nbs folder.
One click Installer for MacOS, Windows and Linux can be found here.
Download the latest alphastats-X.Y.Z-windows-amd64.exe
build and double click it to install. If you receive a warning during installation click Run anyway.
Important note: always install AlphaPeptStats into a new folder, as the installer will not properly overwrite existing installations.
Download the latest alphastats-X.Y.Z-linux-x64.deb
build and install it via dpkg -i alphastats-X.Y.Z-linux-x64.deb
.
Download the latest build suitable for your chip architecture
(can be looked up by clicking on the Apple Symbol > About this Mac > Chip ("M1", "M2", "M3" -> arm64
, "Intel" -> x64
),
alphastats-X.Y.Z-macos-darwin-arm64.pkg
or alphastats-X.Y.Z-macos-darwin-x64.pkg
. Open the parent folder of the downloaded file in Finder,
right-click and select open. If you receive a warning during installation click Open.
In newer MacOS versions, additional steps are required to enable installation of unverified software.
This is indicated by a dialog telling you “alphastats. ... .pkg” Not Opened
.
- Close this dialog by clicking
Done
. - Choose
Apple menu
>System Settings
, thenPrivacy & Security
in the sidebar. (You may need to scroll down.) - Go to
Security
, locate the line "alphadia.pkg was blocked to protect your Mac" then clickOpen Anyway
. - In the dialog windows, click
Open Anyway
.
The containerized version can be used to run alphapeptstats without any installation (apart from Docker)
Install the latest version of docker (https://docs.docker.com/engine/install/).
PORT=8501
SESSIONS_PATH=./sessions
docker run -p $PORT:8501 -v $SESSIONS_PATH:/app/sessions mannlabs/alphastats:latest
After initial download of the container, alphapeptstats will start running on http://localhost:$PORT.
Note: this will create a directory $SESSIONS_PATH
where sessions will be stored.
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
AlphaStats was developed by the Mann Group at 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.
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 Contributors License Agreement.
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
.
This package uses a shared release process defined in the alphashared repository. Please see the instructions there.
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
pip install -r requirements_dev.txt
pre-commit install
You can run the checks yourself using:
pre-commit run --all-files
This is because you added some code that was identified as a potential secret.
- Run
detect-secrets scan --exclude-files testfiles --exclude-lines '"(hash|id|image/\w+)":.*' > .secrets.baseline
(check.pre-commit-config.yaml
for the exact parameters) - Run
detect-secrets audit .secrets.baseline
and check if the detected 'secret' is actually a secret - Commit the latest version of
.secrets.baseline
See the HISTORY.md for a full overview of the changes made in each version.
How can I resolve the Microsoft visual error message when installing: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"?
Please, find a description on how to update required tools here.
Before installing AlphaPeptStats you might need to install pytables first:
conda install -c anaconda pytables