Skip to content

Commit

Permalink
Change to the collate estimate category script
Browse files Browse the repository at this point in the history
  • Loading branch information
gchure committed Oct 18, 2020
1 parent 908b089 commit 171aadf
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 152 deletions.
10 changes: 5 additions & 5 deletions code/figures/fig8bc_RNA_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
L_rRNA = 4500
r_txn = 40 # in nt/s
n_operon = 7
footprint = 80 # in nt
footprint = 40 # in nt
n_tRNA = theta_prot * theta_dry * cell_mass / (m_aa * t_double)
L_tRNA = 80

Expand All @@ -41,7 +41,7 @@
#%%
fig, ax = plt.subplots(1, 2, figsize=(6.5, 2.5))
for a in ax:
a.plot(growth_rate, N_polymerase, '-', lw=3, color='grey', alpha=0.4, label='replication fork scaling')
a.plot(growth_rate, N_polymerase, '-', lw=3, color='grey', alpha=0.4, label='scaling with DNA content')
a.set_xlabel('growth rate [hr$^{-1}$]', fontsize=8)
a.set_yscale('log')
a.set_xlim([0, 2])
Expand All @@ -54,9 +54,9 @@

# Plot the predictions
for a in ax:
a.plot(0.5, 1E3, 'o', ms=6, alpha=0.4, color=colors['dark_brown'], label='estimated value')
a.vlines(0.5, 1, 1E3, color='k', linestyle='--', label='__nolegend__', lw=0.75)
a.hlines(1E3, 0, 0.5, color='k', linestyle='--', label='__nolegend__', lw=0.75)
a.plot(0.5, 1.5E3, 'o', ms=6, alpha=0.4, color=colors['dark_brown'], label='estimated value')
a.vlines(0.5, 1, 1.5E3, color='k', linestyle='--', label='__nolegend__', lw=0.75)
a.hlines(1.5E3, 0, 0.5, color='k', linestyle='--', label='__nolegend__', lw=0.75)

# plot the data
for p, a in zip([rnap, sig70], ax.ravel()):
Expand Down
6 changes: 3 additions & 3 deletions code/processing/collation/collate_estimate_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
'gene_name': ['rpoD'],
'rate_per_sec': np.nan,
'units': 'none',
'method': 'no aggregation',
'method': 'sum',
'category':'synthesis'},
'all_sigma': {'name': 'all σ-factors',
'gene_name': ['rpoE', 'fecI', 'rpoF', 'rpoH', 'rpoN', 'rpoD', 'rpoS'],
'rate_per_sec': np.nan,
'units':'none',
'method':'no aggregation',
'method':'sum',
'category':'synthesis'},
'trna': {'name': 'tRNA ligases',
'go_terms': ['GO:0006419', 'GO:0006420', 'GO:0006421',
Expand Down Expand Up @@ -118,7 +118,7 @@
'method': 'sum',
'rate_per_sec': np.nan,
'units':'none',
'category':'no aggregation'},
'category':'sum'},
'atp_synthase': {'name': 'F1-F0 ATP Synthase',
'complexes': ['ATPSYN-CPLX'],
'method': 'sum',
Expand Down
Loading

0 comments on commit 171aadf

Please sign in to comment.