Giter Site home page Giter Site logo

bio6032 / 2021_replication_lipstichetal_1996 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 18.58 MB

The population dynamics of vertical and horizontal transmission allow for the study of the evolution of virulence. Here, we replicate a model by Lipsitch et al. (1996) analyzing the trade-offs between both types by modeling population dynamics between 1 host population and 100 pathogen strains added individually every 1,000 timesteps.

License: MIT License

Julia 47.71% TeX 44.15% Makefile 0.71% Python 7.43%
host-parasite population-dynamics population-model replication-study

2021_replication_lipstichetal_1996's People

Contributors

faresdhane avatar kiristern avatar sandrinesoeharjono avatar tpoisot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rougier

2021_replication_lipstichetal_1996's Issues

Manuscript

Hi guys,

Can you add the manuscript to this repo?

Thanks

ROADMAP

**6 semaines : **
Note : noter notre progression pour chaque semaine (nouvelles idées appliquées, code, modification…).
Faire un retour sur notre progression (appliquer des corrections si nécessaire).

Semaine 1

  • Trouver et lire les articles les plus pertinents qui ont cité notre article
  • Se familiariser avec Julia (fonctions de base, création de figures…)
  • Trouver tous les paramètres, variables et équations
  • Répliquer une figure simple (exemple : figure 2-b)

Semaine 2

  • Créer le modèle

Semaine 3

  • Refaire les figures 2, 3 et 4

Semaine 4

  • Refaire la figure 1

Semaine 5

  • Avoir refait toutes les figures

  • Faire un grand retour sur notre travail et s'assurer que rien n'a été oublié et négligé

Semaine 6

  • Rédaction

ODE

using DifferentialEquations

u = 0.2
b = 1.0
c = rand()

e = rand(100)
β = rand(100)

Y = zeros(Float64, length(e))
Y[1] = eps()

X0 = rand()

function f(u,p,t)
    x = u[1]
    y = u[2:end]
    regul = (1-(sum(u))/(p.K))
    dx = (p.b*x + sum(e.*y))*regul - p.u*x-p.c*sum(p.β.*y)*x
    dy = p.b .* y .* regul .- p.u .* y .+ p.c .* p.β .* x .* y
    return vcat(dx, dy)
end

parameters = (b = b, β = β, e = e, c = c, K = 100.0, u = u)

prob = ODEProblem(f, vcat(X0, Y), (0.0, 20.0), parameters)
solution = solve(prob)

plot(solution, leg=false)

new_u = solution[end]

new_y = findfirst(x -> x == 0.0, new_u)
new_u[new_y] = eps()

prob = ODEProblem(f, new_u, (20.0, 200.0), parameters)
solution = solve(prob)

plot(solution, leg=false)

Plotting problem

@tpoisot @aammd
J'ai rencontré un problème avec Julia, je n'arrive plus à ploter. J'ai un message d'erreur que je n'arrive pas à résoudre : Could not load library "libGR.so"

Capture d’écran, le 2019-04-09 à 12 27 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.