Pymaxquant
A Python package for processing and analysing output from MaxQuant
Install / Use
/learn @WMGoBuffs/PymaxquantREADME
PyMaxQuant
A Python package for processing and analysing the output of proteomics software MaxQuant.
Installation
PyMaxQuant is available via the Python package index at PyPi and can be installed in the usual way with:
pip install pymaxquant
Once installed the package is available for import using:
import maxquant
The package is organised into multiple submodules for different purposes, eg.
iofor reading and writing both MaxQuant and Perseus format files (input/output)filtersfor filtering data by quality and featuresprocessincorporating experimental design, labels to index, expand-side-table (Perseus) and morenormalizationfor performing normalisation methods, e.g. remove column medianannotationsadding annotation metadata for quantified proteinsanalysisperforming simple analyses, e.g. column correlationsplotsstandard plot outputs for overviews of data
What is it for?
The goal is to provide a simple scripting approach to replicate many of the common steps for interacting with the output of MaxQuant. Many of the steps implemented are based on similar steps used in the MaxQuant sister software Perseus. While currently Perseus has more features, it has stability issues with the larger datasets we are currently using. Having the processing steps implemented in Python allows for simple processing workflow scripts to be created and re-used.
Examples
An example Phosphoproteomic label-free-quantification workflow would be as follows:
import maxquant
df = maxquant.io.read_maxquant('Phospho (STY)Sites.txt')
df = maxquant.filter.filter_localization_probability(df)
df = maxquant.filter.remove_reverse(df)
df = maxquant.filter.remove_only_identified_by_site(df)
df = maxquant.filter.remove_potential_contaminants(df)
# Use standard Pandas dataframe manipulations to set an index
df.set_index('Proteins', inplace=True)
df = df.filter(regex='Intensity ')
df = df.process.expand_side_table(df)
# Remove the multiplicity column
df = df.filter(regex='Intensity ')
df = maxquant.process.apply_experimental_design(df, 'experimentalDesignTable.txt')
# The result of this step will be a multilevel index Class, Replicate
# built by matching sample labels using regex
indices = [
('Class': '^(.*)_',
('Replicate': '_(\d)',
]
df = maxquant.process.build_index_from_labels(df, indices)
Future
Provided functions are based on our current requirements, but will be expanded in future.
License
PyMaxQuant is open source software and available under the BSD 2-clause (Simplified) license.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
