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.
Metadata
Release files for proteomicruler 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proteomicruler-0.1.6.tar.gz | 9.5 kB | Without provenance | Details for proteomicruler-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proteomicruler-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for proteomicruler-0.1.6-py3-none-any.whl |
Total release size: 21.1 kB
Release files / proteomicruler-0.1.6.tar.gz
| Download URL | proteomicruler-0.1.6.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e8074a35144c6f8ec507f2e19a0ae1e685e3157988964c17b86014c31d299b7
|
|
BLAKE2b-256 checksum How to use checksums |
0e4fd0463bb2ccffc1e4fb6b56301effa95fe26155398465a42d91cfcb7cde9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.11 Windows/10
|
Release files / proteomicruler-0.1.6-py3-none-any.whl
| Download URL | proteomicruler-0.1.6-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe00528ddfc899ec41d28faffa88410c67eec6636b1480256df608a31468e2bf
|
|
BLAKE2b-256 checksum How to use checksums |
ce7c95726e0105d3808ce4829d12ea0f8308b95cf77bdec964bf756e36d22703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.11 Windows/10
|
Security for proteomicruler 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.