Git Product home page Git Product logo

tumormodeling's Introduction

This repository contains the code for the following paper: Guiding dose selection of monoclonal antibodies using a new parameter (AFTIR) for characterizing ligand binding systems

Parameter Files

The parameter files are stored in the data directory and are called "ModelF_DRUG.xlsx" where DRUG can be Atezolizumab, Bevacizumab, Pembrolizumab, or Trastuzumab.

Key R Scripts and Rmarkdown files

These are short Tasks in Rmarkdown or R for generating key figures for the manuscript. They are stored in the ModelF folder.

  • Task10 - illustrates some simple graphs for how code can be executed
  • Task09f - Varying dose and checking AFTIR for each drug
  • Task09dV2 - comparison of simple formulation of AFTIR to the full formulation of AFTIR
  • Task05e - Varying other parameters and checking AFTIR accuracy for each drug
  • Task04 - look at how changing target accumulation affects AFTIR

Key helper files and functions

These contain the key functions that are called by multiple scripts above. They are also located in the ModelF folder.

  • AFIRT_calculation.R
    • read.param.file() = read parameter file from Excel
    • lumped.parameters.theory() = calculates AFTIR from theory
    • lumped parameters.simulation() = calculates AFTIR from simulation
    • simulation() - simulates model for one set of parmeters
  • ams_graphics_v2.R - Contains some useful graphics functions
  • scale.x.log10(), scale.y.log10() - for properly labeling log scaling
  • ams_initialize_scrpt.R - To be called at the top of every Rmd file. Initialization code and some useful constants.
  • ams_tmdd_helper.R - Could potentially be helpful for doing sensitivity analysis.
  • ivsc_4cmtc_shedct.R - ODE for Model F, written to work with RxODE

Graphical Abstract

Graphical Abstract

tumormodeling's People

Contributors

hongshanli avatar iamstein avatar lihongshan avatar maellis avatar tud55886 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tumormodeling's Issues

Split Rmd file into Task01, Task02 etc. + external functions

This file currently does a lot of different things and is quite long. But it's exploring two different data files. I propose that we simplify into more modular Rmd files where

  1. The functions are defined in a seperate R script (so they can be called by different Rmd files)
  2. The Rmd files are made more modular (at least focusing on a aparticular data file or set of data files for now)

Confusion about Cavg1

I am confused about these two lumped parameters. For Cavg1, the formula is
[
Cavg1 = \frac{F \times dose.nmol}{CL \times \tau}
]
and $CL$ is computed as
[
CL = \frac{keD1}{VD1}
]
When I use the parameters for Atezolizumab to compute CL, I get 0.0185. However, CL is actually
given in ModelF_Atezolizumab_Params.xlsx, and its value is 0.2. I am not sure which one should we use to compute Cavg1.

AFIRT Sensitivity analysis duplicated functionality

File: TumorModeling\ModelF\AFIRTSensitivityAnalysis

  • Remove AFIRT_theory function and use only lumped.parameters.theory
  • Add B, Cavg1, Cavg3, and AFIRT to lumped.parameters.theory, and lumped.parameters.simulation and compare.

First issue

The code does not wrong, I get this error message

There is VDi and VSi, but no VMi

I noticed that in the model file, the differential equations for M3, DM3, etc. should have volumes VM1, VM3 instead of VD1, VD3, as is the case for the S parameter. We will likely assume that the volumes are equal, but right now, it's confusing as written because there are VS1 parameters, but not VM1 parameters.

Changes in ivsc_4cmtct_shedct() not reflected

In "Sameed" branch is the file "sameed_scrap.rmd". Running this file simulates the model and plots the output.

I change something in "ivsc_4cmtct_shedct()" (e.g. on line 24, change "init["M3"] = unlist(x[4])" to "init["M3"] = unlist(x[3])"). Then in the console, I run "ivsc_4cmtct_shedct()". Then I run "sameed_scrap.rmd". The variable "out" in "sameed_scrap.rmd" does not change from the previous run.

Seriously what is the Thiele Modulus?

Elimination/Distribution =[(keDM3+kshedDM3)M3]/[PS/VD1avg] =
[(keDM3+kshedDM3)M3]/[P2
ฯ€RcapL/(ฯ€Rkrogh^2L)D1avg]
[(keDM3+kshedDM3)M3]/[P2
Rcap/(Rkrogh^2)*D1avg]

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.