ecoli.library.sim_data
- class ecoli.library.sim_data.LoadSimData(sim_data_path, seed=0, max_duration=10, fixed_media=None, media_timeline=((0, 'minimal'),), condition='basal', trna_charging=True, ppgpp_regulation=True, mar_regulon=False, process_configs=None, amp_lysis=False, initial_state_gaussian=True, superhelical_density=False, recycle_stalled_elongation=False, mechanistic_replisome=False, trna_attenuation=True, variable_elongation_transcription=True, variable_elongation_translation=False, mechanistic_translation_supply=True, mechanistic_aa_transport=True, translation_supply=True, aa_supply_in_charging=True, disable_ppgpp_elongation_inhibition=False, directional_mrna_decay=False, keep_mrnas_with_active_ribosomes=False, emit_unique=False, **kwargs)[source]
Bases:
objectLoads simulation data generated by the ParCa (
fitSimData_1(), runscript located atrunscripts.parca) and extracts parameters for each process. Typically instantiated byEcoliwith keyword arguments given by the config loaded byEcoliSim.- Parameters:
sim_data_path (str) – Path to simulation data pickle file
seed (int) – Used to deterministically seed all random number generators. Simulations with the same seed will yield the same output.
max_duration (int) – Maximum duration of single cell simulation (seconds)
media_timeline (tuple[tuple[int, str]]) – Iterable of tuples where the first element of each tuple is the time to start using a certain media and the second element is a string corresponding to one of the media options in
self.sim_data.external_state.saved_mediatrna_charging (bool) – Use steady-state charging model (
SteadyStateElongationModel) inPolypeptideElongationppgpp_regulation (bool) – Enable growth rate control using ppGpp in polypeptide elongation and transcript initiation
mar_regulon (bool) – Enable tetracycline-related transcriptional regulation of antibiotic resistance genes by the mar operon
process_configs (dict[str, Any] | None) – Mapping of process names to config dictionaries, currently only used to configure
RnaInterferenceamp_lysis (bool) – Enable ampicillin-induced lysis, adds ampicillin and hydrolyzed ampicillin to bulk molecule store
initial_state_gaussian (bool) – If the simulation is configured to generate an initial state from pickled simulation data (see option 3 in
initial_state()), enabling this adds Gaussian noise to the generated statesuperhelical_density (bool) – Enables superhelical density calculations on
('unique', 'chromosomal_segment)'molecules inChromosomeStructuremechanistic_replisome (bool) – Ensures that there are adequate replisome subunits to initiate each round of chromosome replication in
ChromosomeReplicationrecycle_stalled_elongation (bool) – Free up RNAPs and nucleotides for stalled transcripts in
TranscriptElongationtrna_attenuation (bool) – Implements attenuation in
TranscriptInitiationandTranscriptElongationvariable_elongation_transcription (bool) – Allow different elongation rate for different transcripts (currently increases rates for rRNA, see
make_elongation_rates()). Usually set this consistently for ParCa and simulation.TranscriptInitiationUsually set this consistently for ParCa and simulation.variable_elongation_translation (bool) – Allow different polypeptides to have different translation rates (currently increases rates for ribosomal proteins, see
make_elongation_rates()). Usually set this consistently for ParCa and simulation.mechanistic_translation_supply (bool) – Calculate charged tRNA supply using starting amino acid concentration only based on mechanistic synthesis and supply in
PolypeptideElongationwhentrna_chargingisTruemechanistic_aa_transport (bool) – Constrain amino acid uptake based on external concentrations and exchange rates in
Metabolismtranslation_supply (bool) – Use
TranslationSupplyElongationModelinPolypeptideElongation. Superseded bytrna_chargingaa_supply_in_charging (bool) – Calculate charged tRNA supply from each sub time step while solving the charging steady state in
PolypeptideElongationwhentrna_chargingisTruedisable_ppgpp_elongation_inhibition (bool) – Turn off ppGpp-mediated inhibition in
PolypeptideElongationwhentrna_chargingisTruedirectional_mrna_decay (bool) – Degrade mRNAs targeted for degradation in the 5’ to 3’ direction in
RnaDegradation. A degradation front starts at the 5’ end and moves at the RNA polymerase elongation rate without passing the RNA polymerase. Each cistron stops binding new ribosomes once the front passes its start position. IfFalse, the entire mRNA stops binding ribosomes as soon as it is targeted.keep_mrnas_with_active_ribosomes (bool) – Keep deactivated mRNAs in
RnaDegradationuntil all ribosomes already translating them have finished. IfFalse, deactivated full-length mRNAs are deleted immediately and the polypeptides being translated on them are lost.fixed_media (str | None)
condition (str)
emit_unique (bool)
- generate_initial_state()[source]
Calculate the initial conditions for a new cell without inherited state from a parent cell.
- get_monomer_counts_indices(names)[source]
Given a list of monomer names without location tags, this returns the indices of those monomers in the monomer_counts listener array. The “id” column of reconstruction/ecoli/flat/proteins.tsv contains nearly all supported monomer names.
- get_mrna_counts_indices(names)[source]
Given a list of mRNA names without location tags, this returns the indices of those mRNAs in the mRNA_counts listener array. The “id” column of reconstruction/ecoli/flat/rnas.tsv contains nearly all supported mRNA names.