Code Monkey home page Code Monkey logo

deep-drug-response's Introduction

Deep Drug Response

This repository contains the code to train the drug-response models used in "A machine learning framework for mining mechanistic insights and predicting response to therapy in cancer" by Vougas, Sakellaropoulos et al.

The main script tune_drug.R is run independently for each drug. The man page of the script is:

Run training pipeline

positional arguments:
  drug            Drug to learn
  matrix          Matrix to train on (RDS file)
  hyperparams     json file with hyper parameters
  prefix          prefix to write files

flags:
  -h, --help                     show this help message and exit

optional arguments:
  -x, --opts OPTS                RDS file containing argument values
  -m, --max_models MAX_MODELS    Max number of models to compute [default: 15]
  -v, --varcut VARCUT            Percent of genes to keep based on variance. [default: 100]
  -l, --learner LEARNER          Algorithm to use for learning (DL, RF, GLM) [default: DL]
  -t, --test TEST                Path to clinical data
  -k, --kfold KFOLD              Number of CV-splits [default: 5]
  --max_mem MAX_MEM              H2O parameter [default: 64G]
  -c, --cores CORES              Method to determine cores with future::availableCores [default: Slurm]

drug must be one of the columns of matrix the rest are treated as genes. The hyperparameters used in the paper are specifed in hyperparams/. All of them are specified as lists in order to be able to expand the grid.

The script batch_correct.R is used to correct for batch effects between the training and test dataset if required.

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.