Skip to content

Commit 7c84cfe

Browse files
committed
Add reconciliation buffer to codon sequences
1 parent 027422b commit 7c84cfe

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

ecoli/library/sim_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ def get_polypeptide_elongation_config(self, time_step=1):
11091109
"K_M_trna__per_L": K_M_trna__per_L,
11101110
"max_curated_kcats": max_curated_kcats,
11111111
"kcats_curated": curated,
1112+
"reconciliation_buffer": relation.reconciliation_buffer,
11121113
"elongation_max": (
11131114
constants.ribosome_elongation_rate_max
11141115
if self.variable_elongation_translation

ecoli/processes/polypeptide_elongation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ def __init__(self, parameters, process):
23232323
# kinetics and sequence limits. This width buffer describes
23242324
# the additional sequence positions (towards the C terminal)
23252325
# to view during each time step.
2326-
self.buffer = 10
2326+
self.buffer = self.parameters["reconciliation_buffer"]
23272327

23282328
# Previous rate: the previous ribosome elongation rate is
23292329
# recorded to warm start the next time step's binary search. For

reconstruction/ecoli/dataclasses/relation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ def _build_codon_based_translation(self, raw_data, sim_data):
345345
molecule_ids = [protein_id[:-3] for protein_id in protein_ids]
346346
sequences = [self._codon_sequences[molecule_id] for molecule_id in molecule_ids]
347347

348+
# See ecoli.processes.polypeptide_elongation.KineticTrnaChargingModel.
349+
self.reconciliation_buffer = 10
350+
348351
# Calculate the number of columns required to read beyond
349352
# (towards the C-terminal) the longest mRNA coding region.
350353
# Note: For polypeptides undergoing N-terminal cleavage of the
@@ -360,6 +363,8 @@ def _build_codon_based_translation(self, raw_data, sim_data):
360363
units.aa / units.s
361364
)
362365
)
366+
# Add read-ahead buffer for reconciliation
367+
+ self.reconciliation_buffer
363368
)
364369

365370
self.codon_sequences = np.full(

0 commit comments

Comments
 (0)