Git Product home page Git Product logo

esophageal-cancer-abm's Introduction

esophageal-cancer-abm

See main.cpp for details about the model.

To run this model, take the following steps:

(1) Create an input data file.

An example data file is input.txt. The parameters are diffusion_rate - The rate of spread in mm^2/year of cancer and dysplasia be_onset_age - The mean age in years at which BE appears mutate_be - The number of mutations per cell per year into dysplasia mutate_dysplasia - The number of mutations per cell per year into cancer stem_cell_density - The number of stems cells per mm^2 in the BE segment

(2) Run the program with its command line arguments. Here are some examples.

Run the simulation using random seed 10, the input file input.txt, and create a snapshot for biopsy at ages 30, 40, and 50 years.

./a.out -ranseed 10 30 40 50

Run the simulation using the default random seed, the input file mine.txt, and create a snapshot for biopsy at ages 40 and 50 years.

./a.out -var mine.txt 40 50

Run the simulation using random seed 2, the input file mine.txt, and create a snapshot for biopsy at ages 40 and 50 years.

./a.out -ranseed 2 -var mine.txt 40 50

(3) Look at the output.

At each biopsy instant, a count of cell types will be printed to the screen. A file tumor.csv.0 will be created for the first biopsy, tumor.csv.1 for the second, etc. The format of these files is a header followed by a list of locations that have cancer or dysplasia. Here is an example of a file with cancer at point 10, 10, 10 and dysplasia at 11, 10 10

xcoord,ycoord,zcoord,type 10,10,10,3 11,10,10,2

These files can be visualized using paraview.

esophageal-cancer-abm's People

Contributors

smiz 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.