Giter Club home page Giter Club logo

schistosomiasis_abm's Introduction

Agent-based model for schistosomiasis transmission and treatment

The model is used in the manuscript called

Add a name - Vilches et al.

Brief description

The model is implemented in Julia Language, and a genetic algorithm (GA) is used to find the unknown parameters

  • infection probabilities, for humans and snails;
  • reduction on infection probability due to acquired immunity;
  • period until the development of immunity;
  • the worm mortality;

of the model based on the data of age-stratified reported prevalence of schistosomiasis infections in the district of Candeal, municipality of Estância-SE, Brazil. Please, refeer to Lidholtz et al for more information about the data.

Running the genetic algorithm

Both the files AG.jl and AG_Cluster.jl have the same function. The difference is that the first one can be used to run the simulations in a local computer, while the second one will distribute the simulations in a cluster. Please refeer to ClusterManagers Julia Package.

⚠️ We do not recommend these simulations to be done in a local machine. A high capacity computational source is strongly recommended

Firstly, make sure that the path inside functions running_generations and run_ga are pointing to an existing path in your system. The reader can use the command line

include("AG.jl")

or

include("AG_Cluster.jl")

to compile the code. The function run_ga receives three arguments:

  1. The diagnostic method that is taken into account when reading the data from Age.dat, being
    1. Kato-Katz (KK).
    2. Helmintex (HTX).
  2. The number of pairs of worms that the diagnostic is supposed to detect the infection.
  3. The snail population size.

For instance, one can run the GA for the HTX, which is able to detect the infection with one pair of worms, and a snail-population size of 2000 snails using.

run_ga(2,1,2000)

Output of the genetic algorithm

For every generation of the GA1, two files called GA_result_fitness_ii_xx_zz.dat and GA_result_pop_ii_xx_zz.dat are saved. The name pop stands for the population of chromossomes, corresponding to the parameters of interest, in that generation, while the name fitness stands for the score that the given chromossome achieved. The indeces ii represents the generation, xx represents the method that was chosen in the simulation, and size represents the snail-population size.

After finding the best fit, one can use the code in the branch singlesims to run the simulations for the desired parameters.

Footnotes

  1. The number of generations can be changed in the header of AG*.jl.

schistosomiasis_abm's People

Contributors

thomasvilches avatar

Watchers

 avatar

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.