一个开源的 Python 包,可高效地接收和可视化来自马克斯·普朗克生物化学研究所曼恩实验室的 Bruker TimsTOF 原始数据
一个开源的 Python 包,可高效地接收和可视化来自马克斯·普朗克生物化学研究所曼恩实验室的 Bruker TimsTOF 原始数据
AlphaTims is an open-source Python package that provides fast accession and visualization of unprocessed LC-TIMS-Q-TOF data from Bruker’s timsTOF Pro instruments. It indexes the data such that it can easily be sliced along all five dimensions: LC, TIMS, QUADRUPOLE, TOF and DETECTOR. It was developed by the Mann Labs at the Max Planck Institute of Biochemistry as a modular tool of the AlphaPept ecosystem. To enable all hyperlinks in this document, please view it at GitHub.
High-resolution quadrupole time-of-flight (Q-TOF) tandem mass spectrometry can be coupled to several other analytical techniques such as liquid chromatography (LC) and trapped ion mobility spectrometry (TIMS). LC-TIMS-Q-TOF has gained considerable interest since the introduction of the Parallel Accumulation–Serial Fragmentation (PASEF) method in both data-dependent (DDA) and data-independent acquisition (DIA). With this setup, ion intensity values are acquired as a function of the chromatographic retention time, ion mobility, quadrupole mass to charge and TOF mass to charge. As these five-dimensional data points are detected at GHz rates, datasets often contain billions of data points which makes them impractical and slow to access. Raw data are therefore frequently binned for faster data analysis or visualization. In contrast, AlphaTims is a Python package that provides fast accession and visualization of unprocessed raw data. By recognizing that all measurements are ultimately arrival times linked to intensity values, it constructs an efficient set of indices such that raw data can be interpreted as a sparse five-dimensional matrix. On a modern laptop, this indexing takes less than half a minute for raw datasets of more than two billion datapoints. Following this step, interactive visualization of the same dataset can also be done in milliseconds. AlphaTims is freely available, open-source and available on all major Operating Systems. It can be used with a graphical user interface (GUI), a command-line interface (CLI) or as a regular Python package.
Note: The data reading functionality that this package introduced via the TimsTOF class have been moved to AlphaRaw.
If you need only that, it might be sufficient to install AlphaRaw instead of AlphaTims. The original AlphaTims publication should still be cited when using this functionality.
AlphaTims can be installed and used on all major operating systems (Windows, macOS and Linux). There are different types of installation possible:
IMPORTANT: While AlphaTims is mostly platform independent, some calibration functions require Bruker libraries which are only available on Windows and Linux.
The GUI of AlphaTims is a completely stand-alone tool that requires no knowledge of Python or CLI tools.
You can download the latest release of AlphaTims here.
IMPORTANT: Please refer to the GUI manual for detailed instructions on the installation, troubleshooting and usage of the stand-alone AlphaTims GUI.
Download the latest alphatims-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 AlphaTims into a new folder, as the installer will not properly overwrite existing installations.
Download the latest alphatims-X.Y.Z-linux-x64.deb build and install it via dpkg -i alphatims-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),
alphatims-X.Y.Z-macos-darwin-arm64.pkg or alphatims-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 “alphatims. ... .pkg” Not Opened.
Done.Apple menu > System Settings, then Privacy & Security in the sidebar. (You may need to scroll down.)Security, locate the line "alphatims.pkg was blocked to protect your Mac" then click Open Anyway.Open Anyway.Older releases remain available on the release page, but no backwards compatibility is guaranteed.
AlphaTims can be installed in an existing Python 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 alphatimsInstalling AlphaTims like this avoids conflicts when integrating it in other tools, as this does not enforce strict versioning of dependencies. However, if new versions of dependencies are released, they are not guaranteed to be fully compatible with AlphaTims. This should only occur in rare cases where dependencies are not backwards compatible.
You can always force AlphaTims to use dependency versions which are known to be compatible with:
pip install "alphatims[stable]"It is also possible to directly install any branch (e.g. some-branch) from GitHub with
pip install "git+https://github.com/MannLabs/alphatims.git@some-branch#egg=alphatims[stable,development-stable]"Alternatively, some basic plotting functions can be installed with the following command:
pip install "alphatims[plotting]"While the above command does allow usage of the full GUI, there are some known compatability issues with newer versions of bokeh. As such, it is generally advised to not use loose plotting dependancies and force a stable installation with:
pip install "alphatims[plotting-stable]"When older samples need to be analyzed, it might be essential to install the legacy version as well (See also the troubleshooting section):
pip install "alphatims[legacy]"AlphaTims can also be installed in "editable" mode. This allows to fully customize the software and even modify the source code to your specific needs.
First, clone the AlphaTims repository from GitHub to a new directory
mkdir -p ~/alphatims/project/folder && cd ~/alphatims/project/folder
git clone https://github.com/MannLabs/alphatims.git && cd alphatimsNext, it is highly recommended to use a separate conda virtual environment, as otherwise dependency conflicts can occur with already existing packages
conda create --name alphatims python=3.9 -y
conda activate alphatimsFinally, AlphaTims and all its dependencies 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 ".[development]"By default this installs 'loose' dependencies (no pinned versions),
although it is also possible to use stable dependencies
(e.g. pip install -e ".[stable,development-stable]").
By using the editable flag -e, all modifications to the AlphaTims
source code folder are directly reflected when running
AlphaTims. Note that the AlphaTims 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__.
The containerized version can be used to run AlphaTims without any installation to your system.
Install the latest version of docker (https://docs.docker.com/engine/install/).
Set up your data to match the expected folder structure: create a folder and store its name in a variable, and specify a port
DATA_FOLDER=/home/username/data; mkdir -p $DATA_FOLDER
PORT=5006docker run -v $DATA_FOLDER:/app/data -p $PORT:5006 mannlabs/alphatims:latestAfter initial download of the container, AlphaTims will start running immediately, and can be accessed under localhost:$PORT.
Note: in the app, the local $DATA_FOLDER needs to be referred to as "/app/data".
If you want to build the image yourself, you can do so by
docker build -t alphatims .and run it with
docker run -p $PORT:5006 -v $DATA_FOLDER:/app/data -t alphatims
See the general troubleshooting section.
AlphaTims is compatible with both ddaPASEF and diaPASEF.
A test sample of human cervical cancer cells (HeLa, S3, ATCC) is provided for AlphaTims. These cells were cultured in Dulbecco's modified Eagle's medium (all Life Technologies Ltd., UK). Subsequently, the cells were collected, washed, flash-frozen, and stored at -80 °C. Following the previously published in-StageTip protocol, cell lysis, reduction, and alkylation with chloroacetamide were carried out simultaneously in a lysis buffer (PreOmics, Germany). The resultant dried peptides were reconstituted in water comprising 2 vol% acetonitrile and 0.1% vol% trifluoroacetic acid, yielding a 200 ng/µL solution. This solution was further diluted with water containing 0.1% vol% formic acid. The manufacturer's instructions were followed to load approximately 200ng peptides onto Evotips (Evosep, Denmark).
Single-run LC-MS analysis was executed via an Evosep One LC system (Evosep). This was coupled online with a hybrid TIMS quadrupole TOF mass spectrometer (Bruker timsTOF Pro, Germany). A silica emitter (Bruker) was placed inside a nano-electrospray ion source (Captive spray source, Bruker) and connected to an 8 cm x 150 µm
暂无开放 Issues,或尚未同步最近议题。