Estimate copy number from deep profile MS experiment using the Proteomic Ruler algorithm from Wiśniewski, J. R., Hein, M. Y., Cox, J. and Mann, M. (2014) A “Proteomic Ruler” for Protein Copy Number and Concentration Estimation without Spike-in Standards. Mol Cell Proteomics 13, 3497–3506.
Project description
Proteomic Ruler
An implementation of the same algorithm from Perseus Wiśniewski, J. R., Hein, M. Y., Cox, J. and Mann, M. (2014) A “Proteomic Ruler” for Protein Copy Number and Concentration Estimation without Spike-in Standards. Mol Cell Proteomics 13, 3497–3506.
used for estimation of protein copy number from deep profile experiment.
Requirements
Python >= 3.9
Installation
pip install proteomicruler
Usage
In order to use the package, it is required that the input data is loaded into a pandas.DataFrame
object. The following
basic parameters are also required:
accession_id_col
- column name that contains protein accession idsmw_col
- column name that contains molecular weight of proteinsploidy
- ploidy numbertotal_cellular_protein_concentration
- total cellular protein concentration used for calculation of total volumeintensity_columns
- list of column names that contain sample intensities
import pandas as pd
accession_id_col = "Protein IDs"
# used as unique index and to directly fetch mw data from UniProt
mw_col = "Mass"
# molecular weight column name
ploidy = 2
# ploidy number
total_cellular_protein_concentration = 200
# cellular protein concentration used for calculation of total volume
filename = r"example_data\example_data.tsv" # example data from Perseus
df = pd.read_csv(filename, sep="\t")
# selecting intensity columns
intensity_columns = df.columns[57:57+16] # select 16 columns starting from column 57th that contain sample intensity
If the data does not contain molecular weight information, it is required to fetch it from UniProt.
from proteomicRuler.ruler import add_mw
df = add_mw(df, accession_id_col)
df = df[pd.notnull(df[mw_col])]
df[mw_col] = df[mw_col].astype(float)
The Ruler object can be created by passing the DataFrame
object and the required parameters.
from proteomicRuler.ruler import Ruler
ruler = Ruler(df, intensity_columns, mw_col, accession_id_col, ploidy, total_cellular_protein_concentration) #
ruler.df.to_csv("output.txt", sep="\t", index=False)
It is also possible to use the package through the command line interface.
Usage: ruler [OPTIONS]
Options:
-i, --input FILENAME Input file containing intensity of samples and
uniprot accession ids
-o, --output FILENAME Output file
-p, --ploidy INTEGER Ploidy of the organism
-t, --total-cellular FLOAT Total cellular protein concentration
-m, --mw-column TEXT Molecular weight column name
-a, --accession-id-col TEXT Accession id column name
-c, --intensity-columns TEXT Intensity columns list delimited by commas
-g, --get-mw Get molecular weight from uniprot
--help Show this message and exit.
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
Built Distribution
File details
Details for the file proteomicruler-0.1.4.tar.gz
.
File metadata
- Download URL: proteomicruler-0.1.4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805ab3dc1e8d8df280f7671f97e5be899baaa5805bbbaaea5a881c5a517f7bc9 |
|
MD5 | f1dfc1ddc98891fc354f4ab460fd8f58 |
|
BLAKE2b-256 | eb3721f1a1668481e2be9920c25428c109d5e9c4a85e6268a1d47527ac0cdefe |
File details
Details for the file proteomicruler-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: proteomicruler-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a455aa065f516878ead7c65ba36324b8a74f67dbf59e8fc8352f669b6ce26d |
|
MD5 | d6a22ce85f3723fdcf4f0535f9337faa |
|
BLAKE2b-256 | 4b1a4620dcacc629d131d9c641bd322c6df6cae40d56c5348655666a024c720a |