Skip to main content

Absolute Protein Quantification python library

Project description

ALPACA

An app by B. Ferrero-Bordera

Requirements

Required packages and last tested working versions:

  • pandas 2.1.4
  • numpy 1.24.3
  • matplotlib 3.8.1
  • scipy 1.11.3
  • scikit-learn 1.4.1.post1
  • sklearn 1.0.1
  • seaborn 0.11.2
  • thefuzz 0.20.0

Input Data Requirements

  • Protein Groups file from MaxQuant as .csv, .txt or .xlsx.
  • Quantification Standards file as .csv, .txt or .xlsx. It requires 3 columns for a proper execution (Accession, MW (kDa) & StdConcentration (µg/µl). See Quantification for more details.
  • Enrichment Standards (Optional) file as .csv, .txt or .xlsx. It requires 3 columns for a proper execution (Accession, MW (kDa) & Mix concentration (µg/µl). See Enrichment for more details.

Labwork input

Experimental details (in our example params.txt) can be added as txt, csv or xlsx formats. This file can include the columns described in the following table:

Table 2. Experimental parameters table. This example covers all possible columns. Nonetheless, not all columns are necessary. For example, Enrichment columns (EnrichmentDirection, StdDilution, StdVolume) are only used if any enrichment step was performed. More information about this is described in the Enrichment section.

Condition SampleVolume ProteinConcentration AmountMS CellsPerML TotalCultureVolume ProteinSRM fmolSRM Enrichment EnrichmentDirection StdDilution StdVolume
Cond1_t0 2.31 2.99 9.67 4.54 7.54 TNAMLN 4.44 False Down 3.96 1.22
Cond2_t1 2.50 0.20 4.10 5.13 2.62 AJFVYC 4.85 True Down 2.43 1.51
Cond3_t2 7.38 6.56 2.77 3.66 3.80 BYEKSC 9.71 True Down 5.71 8.53
  • Condition: Condition in which
  • SampleVolume: Protein extract volume (µL) used for protein digestion.
  • ProteinConcentration: Determined protein concentration (µg/µl) in the sample.
  • AmountMS: Protein amount (µg) injected in the MS.
  • CellsPerML: Measured cells per mL of culture.
  • TotalCultureVolume: Total cultivation volume (µL).
  • ProteinSRM (Optional): If the enrichment of a subcellular fraction has been calculated using targeted proteomics (SRM). This corresponds to the accession of measured protein in SRM to calculate the enrichment.
  • fmolSRM (Optional): If the enrichment of a subcellular fraction has been calculated using targeted proteomics (SRM). Fmol of the proteins measured in the targeted proteomics measurements.
  • Enrichment (Optional): Boolean (True or False). Samples that have been enriched should be specified as True
  • EnrichmentDirection (Optional): UP or DOWN.
  • StdDilution (Optional): This parameter specifies how many times the stock solution of enrichment standards has been diluted before adding it to the sample. If the standards were not diluted before addition, specify 1. Only used when the enrichment is calculated through the function alpaca.gathers() details of the preparation of the used proteins should be added.
  • StdVolume (Optional): Volume of enrichment standards (µL) added to the sample. Only used in case the enrichment is calculated through the function alpaca.gathers() details of the preparation of the used proteins should be added.

Data Importation & Pre-processing

Functions for data import, cleaning and pre-processing.

alpaca.eats(File): this function is meant to offer flexibility on the ProteinGroup file importation as some scientists could have the data in a .txt, .csv or .xlsx.

alpaca.spits(DataFrame): formatter function aims to give coherence on the imported data, as it could be that MaxQuant output organisation is changed by the user or another software like Perseus. It returns our formatted DataFrame, and 2 lists: columns which contain all df.columns after formatting, and default which is a list with all suggested columns for dataframe slicing.

Protein Quantification

Proteome fraction enrichment (Optional)

In case the study focuses on a fraction of the proteome (e.g., membrane proteome or exoproteome), it is likely that during the sample preparation and enrichment step was performed. This module allows to translation of the enrichment step to the data based on how the samples were prepared.

Enrichment factors are calculated based on the fmol quantified in the enriched sample to the raw or non-enriched sample:

$$ ER = \frac{fmol_{enriched}}{fmol_{non-enriched}} $$

For that purpose, 2 strategies are currently covered under our pipeline:

1. The quantification of specific proteins of the analysed fraction on both before and after the enrichment step using Targeted MS (SRM).

This strategy was described on Antelo-Varela et al. 2019 and relies on using external protocols (e.g., Skyline) to quantify the enrichment step. Enrichment factors can be added to the parameters table under the column Enrichment_Factor. Additionally, the SRM quantified amount for a given protein can be added on the columns ProteinSRM (Accession of the quantified protein) and fmolSRM (Quantified fmol in the analysed proteome fraction).

2. The addition of whole proteins at a known concentration before performing the enrichment step.

This approach was described by Ferrero-Bordera et al. 2024 and requires a protein mixture at a known concentration added before the enrichment step. Used standards have to be formatted as specified in the table below:

Table 3. Enrichment standards

Accession MW (kDa) StdConcentration (µg/µl)
P02768 10.1 2.5
Q9Y6K9 65.8 0.8
P05067 32.5 1.2
O75475 48.2 3.0
Q00653 20.9 2.0

alpaca.gathers(): calculates the enrichment factors for each specified fraction based on the sample preparation (Table 2) and the added standards to the sample. Standards should be specified in a dataframe using the format described in Table 3.

Data Integration

This module connects the protein amounts quantified in the sample and the sample preparation. Thus, allowing the calculation of protein amounts to the original state (e.g. bacterial culture, raw culture supernatant). This step brings deeper insights to the user based on the known experimental parameters, yielding highly valuable data (e.g., molecules per cell, fmol / µmol of protein extract)

alpaca.wool(): this function integrates the sample preparation details with the quantified proteins injected in the MS.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alpaca_proteomics-0.9.99.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

alpaca_proteomics-0.9.99-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file alpaca_proteomics-0.9.99.tar.gz.

File metadata

  • Download URL: alpaca_proteomics-0.9.99.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for alpaca_proteomics-0.9.99.tar.gz
Algorithm Hash digest
SHA256 13edb9711b5e59f1c01dc2712f53622bbd3541e87818d0e877b856f023a42f10
MD5 2dc8afeadf116ce6aa2abb73692058a1
BLAKE2b-256 0242182ce0bbc2d7d8bdcb8760ec0e74e9aa65f7a4485c3a4c593a2c74d2534f

See more details on using hashes here.

File details

Details for the file alpaca_proteomics-0.9.99-py3-none-any.whl.

File metadata

File hashes

Hashes for alpaca_proteomics-0.9.99-py3-none-any.whl
Algorithm Hash digest
SHA256 98a824fb27c259304a2ebd110dac172981dcf91498f33cd748572b64e5711886
MD5 521e5136b0fac1ee7c6228a20fb043aa
BLAKE2b-256 135fbec4566ae7d77a7076ac22b2d8f1fb525d88dc6531ff00c75b863257c015

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page