Protein Turnover
protein turnover computations
Install with:
pip install protein-turnover
# If you plan to use non-western text for your job names maybe also install unidecode
# pip install Unidecode
# *OR*
pip install protein-turnover[unidecode]
This will give you a turnover command (equivalent to python -m protein_turnover).
A superior entry point is to use uv. With uv installed you can install
protein-turnover (+plus website) with
uv tool install protein-turnover --with=protein-turnover-website --with=gunicorn --compile-bytecode
OR for Windows (ensure python is at least 3.12):
uv tool install protein-turnover --python=3.12 --with=protein-turnover-website --with=waitress --compile-bytecode
The Turnover Job File
To run protein-turnover you need to create a jobfile (which is in toml format).
e.g.:
# job name is a display name and should contain information about what the job is about.
job_name = "My Experiment"
pepxml = "chx_cc_repeat.interact.pep.xml"
protxml = "chx_cc_repeat.combined.prot.xml"
# a list of mzML files
mzmlfiles = [ "milla009642.mzML"]
# internal job identifier (*optional* used to create auxilary filenames)
jobid = "job1"
# for cached data. If not specifies cache files will be placed in the
# same directories as original datafiles
cache_dir = "."
# email is *optional*
email = "me.lastname@uwa.edu.au"
[settings]
# these are the default settings
rtTolerance = 15.0
mzTolerance = 1e-5
labelledIsotopeNumber = 15
labelledElement = "N"
maximumLabelEnrichment = 0.95
retentionTimeCorrection = "SimpleMedian"
useObservedMz = false
minProbabilityCutoff = 0.8
enrichmentColumns = 10
So a minimal jobfile would be (say):
job_name = "My Experiment"
pepxml = "chx_cc_repeat.interact.pep.xml"
protxml = "chx_cc_repeat.combined.prot.xml"
mzmlfiles = [ "milla009642.mzML"]
Notes:
emailwill only work if theconfig.MAIL_SERVERis correct.job_nameis really just a human readable short description of the job.jobidis used (mainly) to create filenames; for example the final sqlite output file will be called{jobid}.sqlite- File names that are not absolute are relative to the current working directory of the turnover process.
- If
[settings]is missing the values will default to the example values above. You only need to specify values that are different from the ones above. cache_dir: see below.
Running a Job
turnover run {jobfile}.toml
# *OR*
python -m protein_turnover run {jobfile}.toml
# alter configuration and use info level logging and log to logfile.log
turnover --level=info --logfile=logfile.log run {jobfile}.toml
Cache Files and cache_dir
Turnover translates all the .mzML, pep.xml, and prot.xml files into pandas DataFrames
stored in .parquet format, plus an internal (to turnover) format that make it easy to quickly scan spectra using mmap.
These files are cached in cache_dir based on an sha256 hash of the contents of each file.
Thus re-runs of the job don't need to (re)-generate these files again.
Because of the sha256 hash you can used a single cache_dir for all jobs.
If the cache files are deleted, they will be recreated when the job is run again.
If cache_dir is not specified the the
cached files will be placed in the same directory as the originator xml files.
Viewing
One the job has run you can view the results in a browser
pip install protein-turnover-website
turnover view {jobfile}.toml
Windows
A default install of python on windows
Will give you a py function instead of a python function. Go to the search bar and type cmd. In
the cmd shell you should use instead of turnover ... py -m protein_turnver ...
Metadata
Release files for protein-turnover 0.9.3
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 |
|---|---|---|---|---|
| protein_turnover-0.9.3.tar.gz | 96.8 kB | Without provenance | Details for protein_turnover-0.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protein_turnover-0.9.3-py3-none-any.whl | Python 3 | none | any | Details for protein_turnover-0.9.3-py3-none-any.whl |
Total release size: 215.6 kB
Release files / protein_turnover-0.9.3.tar.gz
| Download URL | protein_turnover-0.9.3.tar.gz |
|---|---|
| Size | 96.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08eb527450a3ca20e5a5261d77f58e82e86e3c25060b1f3157aba406701fc026
|
|
BLAKE2b-256 checksum How to use checksums |
e76949478cfa50b81f4073db0a36ee593fb90430a56f40c424eae4f2a28ef501
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / protein_turnover-0.9.3-py3-none-any.whl
| Download URL | protein_turnover-0.9.3-py3-none-any.whl |
|---|---|
| Size | 118.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
062eded881038714bba342d2215ddbbe7d4f8449f37f393d788e6ccee020962d
|
|
BLAKE2b-256 checksum How to use checksums |
e78d423820fea47a3cc032aa2a36da9dc44ad1c8bc5df80c17e12852e2b71f05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for protein-turnover 0.9.3
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.