Peptide level analysis of bottom-up proteomics data
Project description
AlphaMap
A python-based library that enables the exploration of proteomic datasets on the peptide level.
About
AlphaMap is a tool for peptide level MS data exploration. You can load and inspect MS data analyzed by either MaxQuant or Spectronaut. Uploaded data is processed and formatted for visual inspection of the sequence coverage of any selected protein and its identified post-translational modifications (PTMs). UniProt information is available to directly annotate sequence regions of interest such as protein domains, secondary structures, sequence variants, known PTMs, etc.
License
AlphaMap was developed by the Mann Labs at the Max Planck Institute of Biochemistry and is freely available with an Apache License.
Installation
AlphaMap can be installed and used on Windows and MacOS. There are three different types of installation possible:
- One-click GUI installer: Choose this installation if you only want the GUI and/or keep things as simple as possible.
- Pip installer: Choose this installation if you want to use AlphaMap as a Python package in an existing Python 3.8 environment (e.g. a Jupyter notebook). If needed, the GUI can be installed with pip as well.
- Developer installer: Choose this installation if you are familiar with CLI tools, conda and Python. This installation allows access to all available features of AlphaMap and even allows to modify its source code directly.
One-click GUI
The GUI of AlphaMap is a completely stand-alone tool that requires no knowledge of Python. Click on one of the links below to download the latest release for:
IMPORTANT: Please refer to the GUI manual for detailed instructions on the installation, troubleshooting and usage of the stand-alone AlphaMap GUI.
Pip
AlphaMap 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 alphamap
When a new version of AlphaMap becomes available, the old version can easily be upgraded by running e.g. the command again with an additional --upgrade
flag:
pip install "alphamap" --upgrade
Developer
AlphaMap 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 AlphaMap repository from GitHub either directly or with a git
command. This creates a new AlphaMap subfolder in your current directory.
git clone https://github.com/MannLabs/alphamap.git
For any Python package, it is highly recommended to use a conda virtual environment. AlphaMap can either be installed in a new conda environment or in an already existing environment. Note that dependency conflicts can occur with already existing packages in the latter case! Once a conda environment is activated, AlphaMap and all its dependencies need to be installed.
conda create -n alphamap python=3.8 -y
conda activate alphamap
pip install -e .
-
By using the editable flag
-e
, all modifications to the AlphaMap source code folder are directly reflected when running AlphaMap. Note that the AlphaMap folder cannot be moved and/or renamed if an editable version is installed. -
When using Jupyter notebooks and multiple conda environments direcly from the terminal, it is recommended to
conda install nb_conda_kernels
in the conda base environment. Hereafter, running ajupyter notebook
from the conda base environment should have apython [conda env: alphamap]
kernel available, in addition to all other conda kernels in which the commandconda install ipykernel
was run.
Test data
AlphaMap has direct data import options for MaxQuant and Spectronaut.
MaxQuant
AlphaMap takes the evidence.txt file from MaxQuant as input format. A reduced example file is available for download here.
Spectronaut
AlphaMap takes Spectronaut results exported in normal long format (.csv or .tsv) as input. Necessary columns include:
- PEP.AllOccuringProteinAccessions
- EG.ModifiedSequence
- R.FileName
To ensure proper formatting of the Spectronaut output, an export scheme is available for download here.
A reduced example file is also available for download here.
Usage
There are two ways to use AlphaMap:
- GUI: This allows to interactively import and visualize the data.
- Python: This allows to access data and explore it interactively with custom code.
NOTE: The first time you use a fresh installation of AlphaMap, it is often quite slow because some functions might still need compilation on your local operating system and architecture. Subsequent use should be a lot faster.
GUI
Please refer to the GUI manual for detailed instructions on the installation and usage of the stand-alone AlphaMap GUI.
If the GUI was not installed through a one-click GUI installer, it can be activated with the following bash
command:
alphamap
Note that this needs to be prepended with a !
when you want to run this from within a Jupyter notebook. When the command is run directly from the command-line, make sure you use the right environment (activate it with e.g. conda activate alphamap
or set an alias to the binary executable).
Python and Jupyter notebooks
AlphaMap can be imported as a Python package into any Python script or notebook with the command import alphamap
.
A Jupyter notebook tutorial is available to demonstrate how to load and visualize data interactively. When running locally it provides interactive plots, which are not rendered on GitHub.
AlphaMap includes fasta files and UniProt annotations for: 'Human', 'Mouse', 'Rat', 'Cow', 'Zebrafish', 'Drosophila', 'Caenorhabditis elegans', 'Slime mold', 'Arabidopsis thaliana', 'Rice', 'Escherichia coli', 'Bacillus subtilis' and 'Saccharomyces cerevisiae'. If additional organisms are of interest, corresponding .fasta files and sequence annotations can be downloaded directly from UniProt. A Jupyter notebook tutorial shows how to load and format a UniProt annotation file.
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 alphamap-0.0.7.tar.gz
.
File metadata
- Download URL: alphamap-0.0.7.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027059130bbfb55ea1eb2036e28b2542b3f000c00f5c355408a38b474e74f1da |
|
MD5 | c6b856c9194da4cd83a43c60e993de48 |
|
BLAKE2b-256 | a09873d0e8785868391817b37c68f569c5e394ec5409af332e9b82e91c63172c |
File details
Details for the file alphamap-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: alphamap-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b74f7fc1bd3ea26e60641a10e50a274d7c3008bb89fd1fe2fdbef7ebd7eb5a36 |
|
MD5 | abd527f990f6db335b83fa23355d48ec |
|
BLAKE2b-256 | 96fbc3c42a8b10f34c0cdbd449b6d7cd6995b43f893cf437643fc1033e427a06 |