High-performance codon simulator and elongation simulator for eukaryotic organism
Project description
Elongation Simulator
Elongation Simulator is package for simulating Protein Synthesis.
It contains python scripts to calculate tRNA concentrations and two simulators:
- codon_simulator
- sequence_simulator
Installation from PyPi Binary Package
pip install elongation-simulator
Installation from Source
The source installation works on Linux, MacOS (Intel and Apple). It needs a C++17 compatible compiler. The compilation is done through pip:
pip install .
Codon Simulator
This class is essentially an implementation of the Gillespie algorithm, and allows running stochastic simulations of the decoding of individual codons efficiently. A simple use can be find below:
from codon_simulator import CodonSimulator
sim = CodonSimulator()
esim.load_concentrations(sim.saccharomyces_cerevisiae_concentrations) # the simulator already comes with the yeast concentrations
sim.set_codon_for_simulation('AAG') # sets the codon to be simulated
sim.run_repeatedly_get_average_time(1000) # simulates the codon 1k times and returns its average decoding time
Sequence Simulator
This class relies on a modified implementation of the Gillespie algorithm. This simulator tracks ribosome positional information, allowing the simulation of mRNA transcripts containing any number of elongating ribosomes. It also allows for setting their initiation and termination rates, and a choice of criteria to stop the simulations. Below is an example of a simple use of the Sequence Simulator:
from sequence_simulator import SequenceSimulator
sim = SequenceSimulator()
sim.load_concentrations(sim.saccharomyces_cerevisiae_concentrations) # the simulator already comes with the yeast concentrations
sim.input_MRNA("ATGTTCAGCGAATTAATTAACTTCCAAAATGAAGGTCATGAGTGCCAATGCCAATGTGGTAGCTGCAAAAATAATGAACAATGCCAAAAATCATGTAGCTGCCCAACGGGGTGTAACAGCGACGACAAATGCCCCTGCGGTAACAAGTCTGAAGAAACCTGA")
sim.set_initiation_rate(100) # sets the rate of initiation to 100 ribosomes per second.
sim.set_termination_rate(100) # sets the rate for ribosomes terminations to 100 terminations per second.
sim.set_finished_ribosomes(2) # stops the simulation after 2 ribosomes successfully terminated.
sim.run() # runs the simulation
sim.dt_history # displays the times where ribosomes moved: either initiation, elongation or termination.
sim.ribosome_positions_history # displays the postiions of all elongating ribosomes during the simulation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elongation_simulator-1.1.0.tar.gz.
File metadata
- Download URL: elongation_simulator-1.1.0.tar.gz
- Upload date:
- Size: 904.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2688e716668ffdfcb3e74cab68abdaf5c1a66aed3fda615073024f4c5fa7c3
|
|
| MD5 |
150e5ef6c836c46d09cbe8fc9b4743d5
|
|
| BLAKE2b-256 |
ac468320db2e6771594aff9cdc1c4d50ad196cd1b14c081e4e0a2d917c6b5cfa
|
Provenance
The following attestation bundles were made for elongation_simulator-1.1.0.tar.gz:
Publisher:
build_wheels.yml on fheday/elongation_simulator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elongation_simulator-1.1.0.tar.gz -
Subject digest:
fe2688e716668ffdfcb3e74cab68abdaf5c1a66aed3fda615073024f4c5fa7c3 - Sigstore transparency entry: 501502339
- Sigstore integration time:
-
Permalink:
fheday/elongation_simulator@f593a4a27473931b4fb210fe3964fe013abc6bfb -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/fheday
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@f593a4a27473931b4fb210fe3964fe013abc6bfb -
Trigger Event:
release
-
Statement type:
File details
Details for the file elongation_simulator-1.1.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 365.1 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88f7df18549be14abf8bb342c1e5e0f574c81811e70ab81d1c5bec0decf09e2c
|
|
| MD5 |
38bfd4676966f4fc353c9e1768870c2f
|
|
| BLAKE2b-256 |
088a2bf84de5c1aac5bb1f2edeb581a13b283b8addb1031605571a25cb6a8676
|
File details
Details for the file elongation_simulator-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a68452d2c49c181aa50b8296dc7bf0f3b91d34ea037a67fdfb8c872fd791dce
|
|
| MD5 |
5dea9e1f3d5507c1a673e3502f833b26
|
|
| BLAKE2b-256 |
3e8757dba5f8cfcbc5a7f1a238c8d8c311c2dd1e6596c49796695803ac4477a0
|
File details
Details for the file elongation_simulator-1.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 365.0 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92dd6e07fc3681ed119557667ec8a6d888723dc16679e9dcce81724f65bed110
|
|
| MD5 |
bad072d374bfbb21846bab5362a90680
|
|
| BLAKE2b-256 |
0bfdb7502eb82419a603b991aea80e9e85707c5f431e22862e395551e1519fa1
|
File details
Details for the file elongation_simulator-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ee536553254a782f4d93effc0709866653b18cf024b3ab4bd1f658744ebaa3
|
|
| MD5 |
cd2189b7378e3af16495b77f193bc2f3
|
|
| BLAKE2b-256 |
6c4899ab06af0169362cd7ae2f8255553d3c94028608bd9ed06f84120928052a
|
File details
Details for the file elongation_simulator-1.1.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 361.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd459aee09f36faf979ca416de43d4c70fcd9fc136da0699e215c855a607bf1
|
|
| MD5 |
b6753c38362c009638f3f3bc12b3023f
|
|
| BLAKE2b-256 |
9039aca9c33cb14815e955417773404ef2f351c750e0eee72579d73ffb9fe31e
|
File details
Details for the file elongation_simulator-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a137fccb68f37b2f1f53edba5da3a99472e8dd4c2350969af478ba609059fbf
|
|
| MD5 |
230b3f5930313c26c9883e1bf007a158
|
|
| BLAKE2b-256 |
56868966472b056e1b91f569ee50f319e1edcbb67e3a82c172df3cdfe939d30f
|
File details
Details for the file elongation_simulator-1.1.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 360.4 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d33b2bbc77461a3f465db9b786675352c63310379fdcabaac8e83ece9b5d052f
|
|
| MD5 |
e15153fdcefc44af36c01a5427efa966
|
|
| BLAKE2b-256 |
17b8466a4fc7f0fc932937580f4d42b2f936d82cf228eab4107cff1848829af6
|
File details
Details for the file elongation_simulator-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8ef6d8fb45b07cd6494a85790fe5b8ede4f2473bc2aacb4ce904ba1b9fe827
|
|
| MD5 |
25280da9a268a8b64113d5b1e7fcfb24
|
|
| BLAKE2b-256 |
a8a13d3826aa59d770b8d53402495d756e6b0b760afceea9344dc402c44f338e
|
File details
Details for the file elongation_simulator-1.1.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 368.2 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01bf382c2d045501158ebed6590c3b11317564ed9c6b243bfb7b8716a5ce5d2b
|
|
| MD5 |
55064c018ecb4be8e69a60a3f4daa348
|
|
| BLAKE2b-256 |
9db80b5b694a1fadec7f2cf8800464ec212ac4cd0ffbc1d0e63b2dbee242d324
|
File details
Details for the file elongation_simulator-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: elongation_simulator-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f0c7f5ba8c9397f363b3efc5091aa8e2e3882a08cec7ceb791d600bab704e4
|
|
| MD5 |
6ce1678f45f539bf26fa1237501264f6
|
|
| BLAKE2b-256 |
da58240491b5191fd41c5538731ede77da144f18e7bfdb897b480da8ef5f2a19
|