SlideShare a Scribd company logo
Simulation and Theory of Bacterial
Transformation
JD Russo, JJ Dong
August 5, 2016
Department of Physics and Astronomy
Bucknell University
Outline
Introduction
Motivation
Biological Background
Physical Background
Simulation vs Modeling
Results
Conclusions
1
Motivation
• Ubiquitous threat of antibiotic resistance
• Transmission of resistance via plasmids
• Transformation of susceptible bacteria to resistant
• Identify what most significantly affects resistant cell dominance
Question
What conditions lead to emergence of antibiotic resistance?
2
Motivation
• Ubiquitous threat of antibiotic resistance
• Transmission of resistance via plasmids
• Transformation of susceptible bacteria to resistant
• Identify what most significantly affects resistant cell dominance
Question
What conditions lead to emergence of antibiotic resistance?
2016-09-07
Simulation and Theory of Bacterial Transformation
Introduction
Motivation
Motivation
• Threat of resistance even in well-controlled diseases (TB)
• Main mechanisms of transmission are conjugation and transformation
Plasmids
• Small, independently replicating genetic material
• Often include DNA segments encoding antibiotic resistance
• Imposes a fitness cost on host cell
3
Transformation and Conjugation
• Conjugation: Plasmid transferred between cells
• Transformation: Cell incorporates plasmid from environment
• Three main regimes
Bacteria
Plasmids
Constant α Linear α Recycled α
4
Transformation and Conjugation
• Conjugation: Plasmid transferred between cells
• Transformation: Cell incorporates plasmid from environment
• Three main regimes
Bacteria
Plasmids
Constant α Linear α Recycled α
2016-09-07
Simulation and Theory of Bacterial Transformation
Introduction
Biological Background
Transformation and Conjugation
• Transformation is the process where a cell incorporates a plasmid from its
environment, translating any encoded genes
• Conjugation is horizontal transfer of a plasmid between two cells
• We only pay attention to now for transformaton. We will investigate
conjugation later.
• Describe physical meaning for each case. Constant is abundance of
plasmids, linear is a dwindling population of plasmids. Recycled is the
same, but with realism.
Population Dynamics Model - Constant
Reactions
S
bS
→ 2S
S
α
→ R
R
bR
→ 2R
R
δ
→ ∅
5
Population Dynamics Model - Constant
Reactions
S
bS
→ 2S
S
α
→ R
R
bR
→ 2R
R
δ
→ ∅
Equations
dS
dt
= bS 1 −
S + R
K
S − αS
dR
dt
= bR 1 −
S + R
K
R + αS − δR
5
Population Dynamics Model - Constant
Reactions
S
bS
→ 2S
S
α
→ R
R
bR
→ 2R
R
δ
→ ∅
Equations
dS
dt
= bS 1 −
S + R
K
S − αS
dR
dt
= bR 1 −
S + R
K
R + αS − δR
2016-09-07
Simulation and Theory of Bacterial Transformation
Introduction
Physical Background
Population Dynamics Model - Constant
We can look to the simplest case of my simulation as a case study of this, and
to understand in more depth how I’ll be simulating these populations.
Simulation vs Modeling
• Stochastic vs Deterministic
• Information about average behavior vs specific trajectories
• Individual realizations noisily follow model
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
1000
1500
2000
2500
3000
3500
4000
Populationsize
dS
dt
= bS 1 −
S + R
K
S
6
Simulation vs Modeling
• Stochastic vs Deterministic
• Information about average behavior vs specific trajectories
• Individual realizations noisily follow model
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
1000
1500
2000
2500
3000
3500
4000
Populationsize
dS
dt
= bS 1 −
S + R
K
S
2016-09-07
Simulation and Theory of Bacterial Transformation
Introduction
Simulation vs Modeling
Simulation vs Modeling
• At a very general level... More general discussion of models vs simulations
• Mathematical modeling of populations is deterministic - useful to capture
info about average behavios
• Simulations can incorporate stochastic reactions
• If any of you remember, both Jonathan and Josh have mentioned
generalizing from discrete to continuum limits. In our case we can get
more information about population growth by doing the opposite, moving
from a continuous model, the differential equations that describe general
behavior of populations, to the discrete simulation, which model behavior
of individual populations.
• Individual experiments noisily follow model
Outline
Introduction
Results
Constant α
Linear α
Recycled α
Conclusions
7
Population Dynamics Model - Constant
Reactions
S
bS
→ 2S
S
α
→ R
R
bR
→ 2R
R
δ
→ ∅
Equations
dS
dt
= bS 1 −
S + R
K
S − αS
dR
dt
= bR 1 −
S + R
K
R + αS − δR
8
Well-Mixed - Constant α
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
103
104
Populationsize
Parameters
α .13 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
Susceptible
Resistant
9
Well-Mixed - Constant α
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
103
104
Populationsize
Parameters
α .13 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
Susceptible
Resistant
0.05 0.11 0.17
0.9
1.
1.1
α
bS/bR
0.5
1.0
1.5
2.0
2.5
3.0
9
Well-Mixed - Constant α
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
103
104
Populationsize
Parameters
α .13 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
Susceptible
Resistant
0.05 0.11 0.17
0.9
1.
1.1
α
bS/bR
0.5
1.0
1.5
2.0
2.5
3.0
2016-09-07
Simulation and Theory of Bacterial Transformation
Results
Constant α
Well-Mixed - Constant α
• Red line is where populations break even
• Here we can see the system falls into a steady state
• Contour plot shows after some empirically determined burn-in time has
elapsed, which population dominates
• In constant case, difference in population dominance is largely due to rate
of transformation, which acts as an additional growth and death term,
growth rates, and death rate. Growth freezes when total population
reaches carrying capacity
Population Dynamics Model - Linear
Reactions
S
bS
→ 2S
S + Pfree
α
→ R
R
bR
→ 2R
R
δ
→ ∅
Equations
dS
dt
= bS 1 −
S + R
K
S − α
Pf
P
S
dR
dt
= bR 1 −
S + R
K
R + α
Pf
P
S − δR
dPf
dt
= −α
Pf
P
S
dP
dt
= bR 1 −
S + R
K
R
10
Well-Mixed - Linear α
0 5 10 15 20 25 30 35 40 45
Simulation time
103
104
Populationsize
(generations)
Parameters
α .3 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
P0 104
Susceptible
Resistant
11
Well-Mixed - Linear α
0 5 10 15 20 25 30 35 40 45
Simulation time
103
104
Populationsize
(generations)
Parameters
α .3 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
P0 104
Susceptible
Resistant
0.2 0.35 0.5
0.9
1.
1.1
α
bS/bR
0.5
1.0
1.5
2.0
2.5
3.0
11
Well-Mixed - Linear α
0 5 10 15 20 25 30 35 40 45
Simulation time
103
104
Populationsize
(generations)
Parameters
α .3 bS
bR
1.07
δ .3 S0 103
R0 103
K 104
P0 104
Susceptible
Resistant
0.2 0.35 0.5
0.9
1.
1.1
α
bS/bR
0.5
1.0
1.5
2.0
2.5
3.0
2016-09-07
Simulation and Theory of Bacterial Transformation
Results
Linear α
Well-Mixed - Linear α
• Reiterate rules
• Most dynamic case
• Susceptible population slows down as R booms, but when all plasmids are
exhausted R dies off and S dominates.
• Shows the most dependence on the ratio of growth rates, angled line in
contour
• Break even point shifts WAY right, S dominates except for VERY high
alphas, where the R population grows fast enough before plasmids are
exhausted that it can hit the carrying capacity.
Population Dynamics Model - Recycled
Reactions
S
bS
→ 2S
S + Pfree
α
→ R
R
bR
→ 2R
R
δ
→ ∅ + Pfree
Equations
dS
dt
= bS 1 −
S + R
K
S − α
Pf
P
S
dR
dt
= bR 1 −
S + R
K
R + α
Pf
P
S − δR
dPf
dt
= −α
Pf
P
S + δR
dP
dt
= bR 1 −
S + R
K
R
12
Well-Mixed - Recycled α
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
103
104
Populationsize
Parameters
α .13 bS
bR
1.07
δ .3 R0 103
S0 103
K 104
P0 104
Resistant Susceptible
13
Well-Mixed - Recycled α
0 5 10 15 20 25 30 35 40 45
Simulation time (generations)
103
104
Populationsize
Parameters
α .13 bS
bR
1.07
δ .3 R0 103
S0 103
K 104
P0 104
Resistant Susceptible
0.05 0.175 0.3
0.9
1.
1.1
α
bS/bR
0.5
1.0
1.5
2.0
2.5
3.0
13
Kinetic Monte Carlo Method
• Initially used to simulate chemical reactions
• Useful for simulating any reaction that occurs with a rate
• Captures information about dynamics of a growing system
• Self-adjusting timescales
Calculate reaction
propensities
Choose reaction from
probability distribution
Choose time step length from
exponential distribution
Trigger reaction,
update population
14
Kinetic Monte Carlo Method
• Initially used to simulate chemical reactions
• Useful for simulating any reaction that occurs with a rate
• Captures information about dynamics of a growing system
• Self-adjusting timescales
Calculate reaction
propensities
Choose reaction from
probability distribution
Choose time step length from
exponential distribution
Trigger reaction,
update population
2016-09-07
Simulation and Theory of Bacterial Transformation
Results
Recycled α
Kinetic Monte Carlo Method
• The kinetic monte carlo method, or the Gillespie Algorithm, was originally
developed to simulate stochastic chemical reactions.
• If any of you remember, yesterday in her talk Payton mentioned a
parameter that had to be tweaked in simulation in order to get the
simulation to properly account for simulating bacteria instead of a
chemical reaction. What’s nice about KMC is that it’s agnostic to what
you’re actually simulating, just cares about rates
•
• Time scale of a KMC step is not fixed and scales with number of reagents
being simulated. This is cool because as the system grows, and has more
particles, and therefore more frequent interactions, the time step gets
shorter. This simulates more reactions in the same amount of time.
Conversely, the time step will lengthen as the system shrinks.
Kinetic Monte Carlo Method
• Initially used to simulate chemical reactions
• Useful for simulating any reaction that occurs with a rate
• Captures information about dynamics of a growing system
• Self-adjusting timescales
Calculate reaction
propensities
Choose reaction from
probability distribution
Choose time step length from
exponential distribution
Trigger reaction,
update population
2016-09-07
Simulation and Theory of Bacterial Transformation
Results
Recycled α
Kinetic Monte Carlo Method
• Basic algorithm: Calculate likelihood of reaction happening, given size of
system, rates, and number of particles of each type. Use that probability
distribution to randomly select one. Choose a random timestep length
from an exponential distribution given by the number of particles. Carry
out the reaction, updating the simulation with the result of the reaction.
Simulation Details
• Slower plasmid carrier growth rate
• Carrying capacity
• Fixed death rate
• Mapping simulation time to real time
15
Outline
Introduction
Results
Conclusions
16
Conclusions
Question
What conditions lead to emergence of antibiotic resistance?
• Transition point where population dominance switches
• Transition point heavily dependent on α mechanism, not growth
rate ratio
• Little growth rate dependence, except linear case
• Linear case tends to population extinction, with interesting dynamics
in between
17
Conclusions
Question
What conditions lead to emergence of antibiotic resistance?
• Transition point where population dominance switches
• Transition point heavily dependent on α mechanism, not growth
rate ratio
• Little growth rate dependence, except linear case
• Linear case tends to population extinction, with interesting dynamics
in between
2016-09-07
Simulation and Theory of Bacterial Transformation
Conclusions
Conclusions
• This is all for the well-mixed case!
Ongoing Work
• Continue gathering lattice data
• Simulate larger lattices
Future Work
• Incorporate diffusion
• Add conjugation reaction
• Simulate antibiotic dosing
18
Questions?
Acknowledgments
• Department of Physics and Astronomy, Bucknell University
• NSF-DMR #1248387
• Sandy!
Optimizations
• Occupancy lists
• Sets vs. lists
• imshow vs. plcolor
• Parallelization
Lattice Results
19
Gillespie Algorithm1
1. Initialize simulation
2. Calculate propensity a for each reaction
3. Choose reaction µ according to the distribution
P(reaction µ) = aµ/
i
ai
4. Choose time step length τ according to the distribution
P(τ) =
i
ai · exp −τ
i
ai
5. Update populations with results of reaction
6. Go to Step 2
1Heiko Rieger. Kinetic Monte Carlo. Powerpoint Presentation. 2012. url:
https://www.uni-oldenburg.de/fileadmin/user_upload/physik/ag/compphys/
download/Alexander/dpg_school/talk-rieger.pdf.
Mapping Simulation Time to Realtime
dS
dt
= bS S
S(t) = S0ebS t
= S0eln 2t/τ
bS = ln 2/τ
τ = ln 2/bS
Mapping Simulation Time to Realtime
dS
dt
= bS S
S(t) = S0ebS t
= S0eln 2t/τ
bS = ln 2/τ
τ = ln 2/bS
2016-09-07
Simulation and Theory of Bacterial Transformation
Mapping Simulation Time to Realtime
τ is the characteristic timescale for the simulation, in term of generations. Map
this to realtime by multiplying by the doubling time.
Lattice Simulation Results
Sharp Transition
Lattice Simulation Results
Long Run
Lattice Simulation Results
Large Lattice

More Related Content

Similar to final_noanim

Analyzing Aggregates by Sedimentation Velocity and Light Scattering
Analyzing Aggregates by Sedimentation Velocity and Light ScatteringAnalyzing Aggregates by Sedimentation Velocity and Light Scattering
Analyzing Aggregates by Sedimentation Velocity and Light Scattering
KBI Biopharma
 
Automated Generation of High-accuracy Interatomic Potentials Using Quantum Data
Automated Generation of High-accuracy Interatomic Potentials Using Quantum DataAutomated Generation of High-accuracy Interatomic Potentials Using Quantum Data
Automated Generation of High-accuracy Interatomic Potentials Using Quantum Data
aimsnist
 
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACSExtracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
SimBioSys_Inc
 
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
SLAS (Society for Laboratory Automation and Screening)
 
Igor Segota: PhD thesis presentation
Igor Segota: PhD thesis presentationIgor Segota: PhD thesis presentation
Igor Segota: PhD thesis presentation
IgorSegota3
 
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paper
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paperCytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paper
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paperAndrea Ujvari
 
RSlovakia #1 meetup
RSlovakia #1 meetupRSlovakia #1 meetup
RSlovakia #1 meetup
Peter Laurinec
 
Lab4 slides
Lab4 slidesLab4 slides
Lab4 slides
Heather Kulik
 
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
Christos Argyropoulos
 
I010415255
I010415255I010415255
I010415255
IOSR Journals
 
High throughput qPCR: tips for analysis across multiple plates
High throughput qPCR: tips for analysis across multiple platesHigh throughput qPCR: tips for analysis across multiple plates
High throughput qPCR: tips for analysis across multiple plates
Integrated DNA Technologies
 
American Statistical Association October 23 Minneapolis Presentation Part 2
American Statistical Association October 23 Minneapolis Presentation Part 2American Statistical Association October 23 Minneapolis Presentation Part 2
American Statistical Association October 23 Minneapolis Presentation Part 2
Double Check ĆŐNSULTING
 
lectures on a bunch of stuff related to statustics
lectures on a bunch of stuff related to statusticslectures on a bunch of stuff related to statustics
lectures on a bunch of stuff related to statustics
tfoutz991
 
Models Can Lie
Models Can LieModels Can Lie
Models Can Lie
Raju Rimal
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautzbutest
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautzbutest
 
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
KBI Biopharma
 
Quantative Structure-Activity Relationships (QSAR)
Quantative Structure-Activity Relationships (QSAR)Quantative Structure-Activity Relationships (QSAR)
Quantative Structure-Activity Relationships (QSAR)Atai Rabby
 

Similar to final_noanim (20)

Analyzing Aggregates by Sedimentation Velocity and Light Scattering
Analyzing Aggregates by Sedimentation Velocity and Light ScatteringAnalyzing Aggregates by Sedimentation Velocity and Light Scattering
Analyzing Aggregates by Sedimentation Velocity and Light Scattering
 
Automated Generation of High-accuracy Interatomic Potentials Using Quantum Data
Automated Generation of High-accuracy Interatomic Potentials Using Quantum DataAutomated Generation of High-accuracy Interatomic Potentials Using Quantum Data
Automated Generation of High-accuracy Interatomic Potentials Using Quantum Data
 
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACSExtracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
Extracting Synthetic Knowledge from Reaction Databases - ARChem at the 246th ACS
 
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
SLAS Screen Design and Assay Technology Special Interest Group SLAS2017 Prese...
 
Igor Segota: PhD thesis presentation
Igor Segota: PhD thesis presentationIgor Segota: PhD thesis presentation
Igor Segota: PhD thesis presentation
 
RegressionProjectReport
RegressionProjectReportRegressionProjectReport
RegressionProjectReport
 
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paper
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paperCytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paper
Cytoscan_Copy_Number_Confirmation_with_SYBR_Green_qPCR_white_paper
 
RSlovakia #1 meetup
RSlovakia #1 meetupRSlovakia #1 meetup
RSlovakia #1 meetup
 
Lab4 slides
Lab4 slidesLab4 slides
Lab4 slides
 
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
Correcting bias and variation in small RNA sequencing for optimal (microRNA) ...
 
ppt
pptppt
ppt
 
I010415255
I010415255I010415255
I010415255
 
High throughput qPCR: tips for analysis across multiple plates
High throughput qPCR: tips for analysis across multiple platesHigh throughput qPCR: tips for analysis across multiple plates
High throughput qPCR: tips for analysis across multiple plates
 
American Statistical Association October 23 Minneapolis Presentation Part 2
American Statistical Association October 23 Minneapolis Presentation Part 2American Statistical Association October 23 Minneapolis Presentation Part 2
American Statistical Association October 23 Minneapolis Presentation Part 2
 
lectures on a bunch of stuff related to statustics
lectures on a bunch of stuff related to statusticslectures on a bunch of stuff related to statustics
lectures on a bunch of stuff related to statustics
 
Models Can Lie
Models Can LieModels Can Lie
Models Can Lie
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
Measuring Comparability of Conformation, Heterogeneity and Aggregation with C...
 
Quantative Structure-Activity Relationships (QSAR)
Quantative Structure-Activity Relationships (QSAR)Quantative Structure-Activity Relationships (QSAR)
Quantative Structure-Activity Relationships (QSAR)
 

final_noanim

  • 1. Simulation and Theory of Bacterial Transformation JD Russo, JJ Dong August 5, 2016 Department of Physics and Astronomy Bucknell University
  • 3. Motivation • Ubiquitous threat of antibiotic resistance • Transmission of resistance via plasmids • Transformation of susceptible bacteria to resistant • Identify what most significantly affects resistant cell dominance Question What conditions lead to emergence of antibiotic resistance? 2
  • 4. Motivation • Ubiquitous threat of antibiotic resistance • Transmission of resistance via plasmids • Transformation of susceptible bacteria to resistant • Identify what most significantly affects resistant cell dominance Question What conditions lead to emergence of antibiotic resistance? 2016-09-07 Simulation and Theory of Bacterial Transformation Introduction Motivation Motivation • Threat of resistance even in well-controlled diseases (TB) • Main mechanisms of transmission are conjugation and transformation
  • 5. Plasmids • Small, independently replicating genetic material • Often include DNA segments encoding antibiotic resistance • Imposes a fitness cost on host cell 3
  • 6. Transformation and Conjugation • Conjugation: Plasmid transferred between cells • Transformation: Cell incorporates plasmid from environment • Three main regimes Bacteria Plasmids Constant α Linear α Recycled α 4
  • 7. Transformation and Conjugation • Conjugation: Plasmid transferred between cells • Transformation: Cell incorporates plasmid from environment • Three main regimes Bacteria Plasmids Constant α Linear α Recycled α 2016-09-07 Simulation and Theory of Bacterial Transformation Introduction Biological Background Transformation and Conjugation • Transformation is the process where a cell incorporates a plasmid from its environment, translating any encoded genes • Conjugation is horizontal transfer of a plasmid between two cells • We only pay attention to now for transformaton. We will investigate conjugation later. • Describe physical meaning for each case. Constant is abundance of plasmids, linear is a dwindling population of plasmids. Recycled is the same, but with realism.
  • 8. Population Dynamics Model - Constant Reactions S bS → 2S S α → R R bR → 2R R δ → ∅ 5
  • 9. Population Dynamics Model - Constant Reactions S bS → 2S S α → R R bR → 2R R δ → ∅ Equations dS dt = bS 1 − S + R K S − αS dR dt = bR 1 − S + R K R + αS − δR 5
  • 10. Population Dynamics Model - Constant Reactions S bS → 2S S α → R R bR → 2R R δ → ∅ Equations dS dt = bS 1 − S + R K S − αS dR dt = bR 1 − S + R K R + αS − δR 2016-09-07 Simulation and Theory of Bacterial Transformation Introduction Physical Background Population Dynamics Model - Constant We can look to the simplest case of my simulation as a case study of this, and to understand in more depth how I’ll be simulating these populations.
  • 11. Simulation vs Modeling • Stochastic vs Deterministic • Information about average behavior vs specific trajectories • Individual realizations noisily follow model 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 1000 1500 2000 2500 3000 3500 4000 Populationsize dS dt = bS 1 − S + R K S 6
  • 12. Simulation vs Modeling • Stochastic vs Deterministic • Information about average behavior vs specific trajectories • Individual realizations noisily follow model 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 1000 1500 2000 2500 3000 3500 4000 Populationsize dS dt = bS 1 − S + R K S 2016-09-07 Simulation and Theory of Bacterial Transformation Introduction Simulation vs Modeling Simulation vs Modeling • At a very general level... More general discussion of models vs simulations • Mathematical modeling of populations is deterministic - useful to capture info about average behavios • Simulations can incorporate stochastic reactions • If any of you remember, both Jonathan and Josh have mentioned generalizing from discrete to continuum limits. In our case we can get more information about population growth by doing the opposite, moving from a continuous model, the differential equations that describe general behavior of populations, to the discrete simulation, which model behavior of individual populations. • Individual experiments noisily follow model
  • 14. Population Dynamics Model - Constant Reactions S bS → 2S S α → R R bR → 2R R δ → ∅ Equations dS dt = bS 1 − S + R K S − αS dR dt = bR 1 − S + R K R + αS − δR 8
  • 15. Well-Mixed - Constant α 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 103 104 Populationsize Parameters α .13 bS bR 1.07 δ .3 S0 103 R0 103 K 104 Susceptible Resistant 9
  • 16. Well-Mixed - Constant α 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 103 104 Populationsize Parameters α .13 bS bR 1.07 δ .3 S0 103 R0 103 K 104 Susceptible Resistant 0.05 0.11 0.17 0.9 1. 1.1 α bS/bR 0.5 1.0 1.5 2.0 2.5 3.0 9
  • 17. Well-Mixed - Constant α 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 103 104 Populationsize Parameters α .13 bS bR 1.07 δ .3 S0 103 R0 103 K 104 Susceptible Resistant 0.05 0.11 0.17 0.9 1. 1.1 α bS/bR 0.5 1.0 1.5 2.0 2.5 3.0 2016-09-07 Simulation and Theory of Bacterial Transformation Results Constant α Well-Mixed - Constant α • Red line is where populations break even • Here we can see the system falls into a steady state • Contour plot shows after some empirically determined burn-in time has elapsed, which population dominates • In constant case, difference in population dominance is largely due to rate of transformation, which acts as an additional growth and death term, growth rates, and death rate. Growth freezes when total population reaches carrying capacity
  • 18. Population Dynamics Model - Linear Reactions S bS → 2S S + Pfree α → R R bR → 2R R δ → ∅ Equations dS dt = bS 1 − S + R K S − α Pf P S dR dt = bR 1 − S + R K R + α Pf P S − δR dPf dt = −α Pf P S dP dt = bR 1 − S + R K R 10
  • 19. Well-Mixed - Linear α 0 5 10 15 20 25 30 35 40 45 Simulation time 103 104 Populationsize (generations) Parameters α .3 bS bR 1.07 δ .3 S0 103 R0 103 K 104 P0 104 Susceptible Resistant 11
  • 20. Well-Mixed - Linear α 0 5 10 15 20 25 30 35 40 45 Simulation time 103 104 Populationsize (generations) Parameters α .3 bS bR 1.07 δ .3 S0 103 R0 103 K 104 P0 104 Susceptible Resistant 0.2 0.35 0.5 0.9 1. 1.1 α bS/bR 0.5 1.0 1.5 2.0 2.5 3.0 11
  • 21. Well-Mixed - Linear α 0 5 10 15 20 25 30 35 40 45 Simulation time 103 104 Populationsize (generations) Parameters α .3 bS bR 1.07 δ .3 S0 103 R0 103 K 104 P0 104 Susceptible Resistant 0.2 0.35 0.5 0.9 1. 1.1 α bS/bR 0.5 1.0 1.5 2.0 2.5 3.0 2016-09-07 Simulation and Theory of Bacterial Transformation Results Linear α Well-Mixed - Linear α • Reiterate rules • Most dynamic case • Susceptible population slows down as R booms, but when all plasmids are exhausted R dies off and S dominates. • Shows the most dependence on the ratio of growth rates, angled line in contour • Break even point shifts WAY right, S dominates except for VERY high alphas, where the R population grows fast enough before plasmids are exhausted that it can hit the carrying capacity.
  • 22. Population Dynamics Model - Recycled Reactions S bS → 2S S + Pfree α → R R bR → 2R R δ → ∅ + Pfree Equations dS dt = bS 1 − S + R K S − α Pf P S dR dt = bR 1 − S + R K R + α Pf P S − δR dPf dt = −α Pf P S + δR dP dt = bR 1 − S + R K R 12
  • 23. Well-Mixed - Recycled α 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 103 104 Populationsize Parameters α .13 bS bR 1.07 δ .3 R0 103 S0 103 K 104 P0 104 Resistant Susceptible 13
  • 24. Well-Mixed - Recycled α 0 5 10 15 20 25 30 35 40 45 Simulation time (generations) 103 104 Populationsize Parameters α .13 bS bR 1.07 δ .3 R0 103 S0 103 K 104 P0 104 Resistant Susceptible 0.05 0.175 0.3 0.9 1. 1.1 α bS/bR 0.5 1.0 1.5 2.0 2.5 3.0 13
  • 25. Kinetic Monte Carlo Method • Initially used to simulate chemical reactions • Useful for simulating any reaction that occurs with a rate • Captures information about dynamics of a growing system • Self-adjusting timescales Calculate reaction propensities Choose reaction from probability distribution Choose time step length from exponential distribution Trigger reaction, update population 14
  • 26. Kinetic Monte Carlo Method • Initially used to simulate chemical reactions • Useful for simulating any reaction that occurs with a rate • Captures information about dynamics of a growing system • Self-adjusting timescales Calculate reaction propensities Choose reaction from probability distribution Choose time step length from exponential distribution Trigger reaction, update population 2016-09-07 Simulation and Theory of Bacterial Transformation Results Recycled α Kinetic Monte Carlo Method • The kinetic monte carlo method, or the Gillespie Algorithm, was originally developed to simulate stochastic chemical reactions. • If any of you remember, yesterday in her talk Payton mentioned a parameter that had to be tweaked in simulation in order to get the simulation to properly account for simulating bacteria instead of a chemical reaction. What’s nice about KMC is that it’s agnostic to what you’re actually simulating, just cares about rates • • Time scale of a KMC step is not fixed and scales with number of reagents being simulated. This is cool because as the system grows, and has more particles, and therefore more frequent interactions, the time step gets shorter. This simulates more reactions in the same amount of time. Conversely, the time step will lengthen as the system shrinks.
  • 27. Kinetic Monte Carlo Method • Initially used to simulate chemical reactions • Useful for simulating any reaction that occurs with a rate • Captures information about dynamics of a growing system • Self-adjusting timescales Calculate reaction propensities Choose reaction from probability distribution Choose time step length from exponential distribution Trigger reaction, update population 2016-09-07 Simulation and Theory of Bacterial Transformation Results Recycled α Kinetic Monte Carlo Method • Basic algorithm: Calculate likelihood of reaction happening, given size of system, rates, and number of particles of each type. Use that probability distribution to randomly select one. Choose a random timestep length from an exponential distribution given by the number of particles. Carry out the reaction, updating the simulation with the result of the reaction.
  • 28. Simulation Details • Slower plasmid carrier growth rate • Carrying capacity • Fixed death rate • Mapping simulation time to real time 15
  • 30. Conclusions Question What conditions lead to emergence of antibiotic resistance? • Transition point where population dominance switches • Transition point heavily dependent on α mechanism, not growth rate ratio • Little growth rate dependence, except linear case • Linear case tends to population extinction, with interesting dynamics in between 17
  • 31. Conclusions Question What conditions lead to emergence of antibiotic resistance? • Transition point where population dominance switches • Transition point heavily dependent on α mechanism, not growth rate ratio • Little growth rate dependence, except linear case • Linear case tends to population extinction, with interesting dynamics in between 2016-09-07 Simulation and Theory of Bacterial Transformation Conclusions Conclusions • This is all for the well-mixed case!
  • 32. Ongoing Work • Continue gathering lattice data • Simulate larger lattices Future Work • Incorporate diffusion • Add conjugation reaction • Simulate antibiotic dosing 18
  • 33. Questions? Acknowledgments • Department of Physics and Astronomy, Bucknell University • NSF-DMR #1248387 • Sandy! Optimizations • Occupancy lists • Sets vs. lists • imshow vs. plcolor • Parallelization Lattice Results 19
  • 34. Gillespie Algorithm1 1. Initialize simulation 2. Calculate propensity a for each reaction 3. Choose reaction µ according to the distribution P(reaction µ) = aµ/ i ai 4. Choose time step length τ according to the distribution P(τ) = i ai · exp −τ i ai 5. Update populations with results of reaction 6. Go to Step 2 1Heiko Rieger. Kinetic Monte Carlo. Powerpoint Presentation. 2012. url: https://www.uni-oldenburg.de/fileadmin/user_upload/physik/ag/compphys/ download/Alexander/dpg_school/talk-rieger.pdf.
  • 35. Mapping Simulation Time to Realtime dS dt = bS S S(t) = S0ebS t = S0eln 2t/τ bS = ln 2/τ τ = ln 2/bS
  • 36. Mapping Simulation Time to Realtime dS dt = bS S S(t) = S0ebS t = S0eln 2t/τ bS = ln 2/τ τ = ln 2/bS 2016-09-07 Simulation and Theory of Bacterial Transformation Mapping Simulation Time to Realtime τ is the characteristic timescale for the simulation, in term of generations. Map this to realtime by multiplying by the doubling time.