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.
Release files for elongation-simulator 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elongation_simulator-1.1.0.tar.gz | 904.0 kB | Details |
Built distributions (wheels)
Total release size: 35.0 MB
Release files / elongation_simulator-1.1.0.tar.gz
| Download URL | elongation_simulator-1.1.0.tar.gz |
|---|---|
| Size | 904.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe2688e716668ffdfcb3e74cab68abdaf5c1a66aed3fda615073024f4c5fa7c3
|
|
BLAKE2b-256 checksum How to use checksums |
ac468320db2e6771594aff9cdc1c4d50ad196cd1b14c081e4e0a2d917c6b5cfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2025.
Transparency logRelease files / elongation_simulator-1.1.0-cp313-cp313-win_amd64.whl
| Download URL | elongation_simulator-1.1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 365.1 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
88f7df18549be14abf8bb342c1e5e0f574c81811e70ab81d1c5bec0decf09e2c
|
|
BLAKE2b-256 checksum How to use checksums |
088a2bf84de5c1aac5bb1f2edeb581a13b283b8addb1031605571a25cb6a8676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | elongation_simulator-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9a68452d2c49c181aa50b8296dc7bf0f3b91d34ea037a67fdfb8c872fd791dce
|
|
BLAKE2b-256 checksum How to use checksums |
3e8757dba5f8cfcbc5a7f1a238c8d8c311c2dd1e6596c49796695803ac4477a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp312-cp312-win_amd64.whl
| Download URL | elongation_simulator-1.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 365.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
92dd6e07fc3681ed119557667ec8a6d888723dc16679e9dcce81724f65bed110
|
|
BLAKE2b-256 checksum How to use checksums |
0bfdb7502eb82419a603b991aea80e9e85707c5f431e22862e395551e1519fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | elongation_simulator-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
87ee536553254a782f4d93effc0709866653b18cf024b3ab4bd1f658744ebaa3
|
|
BLAKE2b-256 checksum How to use checksums |
6c4899ab06af0169362cd7ae2f8255553d3c94028608bd9ed06f84120928052a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp311-cp311-win_amd64.whl
| Download URL | elongation_simulator-1.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 361.9 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cbd459aee09f36faf979ca416de43d4c70fcd9fc136da0699e215c855a607bf1
|
|
BLAKE2b-256 checksum How to use checksums |
9039aca9c33cb14815e955417773404ef2f351c750e0eee72579d73ffb9fe31e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | elongation_simulator-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5a137fccb68f37b2f1f53edba5da3a99472e8dd4c2350969af478ba609059fbf
|
|
BLAKE2b-256 checksum How to use checksums |
56868966472b056e1b91f569ee50f319e1edcbb67e3a82c172df3cdfe939d30f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp310-cp310-win_amd64.whl
| Download URL | elongation_simulator-1.1.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 360.4 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d33b2bbc77461a3f465db9b786675352c63310379fdcabaac8e83ece9b5d052f
|
|
BLAKE2b-256 checksum How to use checksums |
17b8466a4fc7f0fc932937580f4d42b2f936d82cf228eab4107cff1848829af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | elongation_simulator-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6e8ef6d8fb45b07cd6494a85790fe5b8ede4f2473bc2aacb4ce904ba1b9fe827
|
|
BLAKE2b-256 checksum How to use checksums |
a8a13d3826aa59d770b8d53402495d756e6b0b760afceea9344dc402c44f338e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp39-cp39-win_amd64.whl
| Download URL | elongation_simulator-1.1.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 368.2 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
01bf382c2d045501158ebed6590c3b11317564ed9c6b243bfb7b8716a5ce5d2b
|
|
BLAKE2b-256 checksum How to use checksums |
9db80b5b694a1fadec7f2cf8800464ec212ac4cd0ffbc1d0e63b2dbee242d324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elongation_simulator-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | elongation_simulator-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
27f0c7f5ba8c9397f363b3efc5091aa8e2e3882a08cec7ceb791d600bab704e4
|
|
BLAKE2b-256 checksum How to use checksums |
da58240491b5191fd41c5538731ede77da144f18e7bfdb897b480da8ef5f2a19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|