Giter VIP home page Giter VIP logo

codex's Introduction

CODEX: CODEX: COunterfactual Deep learning for the in-silico EXploration of cancer cell line perturbations

This repository implements CODEX, a general framework for the causal modelling of HTS data, linking perturbations to their downstream consequences. CODEX relies on a stringent causal modeling framework based on counterfactual reasoning. As such, CODEX predicts drug-specific cellular responses, comprising cell survival and molecular alterations, and facilitates the in-silico exploration of drug combinations.

Setup

You can install CODEX directly via pip using the provided requirements file. Alternatively, you can use the provided DOCKERFILE to build a docker container. CODEX was tested with PyTorch 2.0.1 using CUDA 11.7. To install the main requirements run

docker build -t codex -f DOCKERFILE .

If you want to run the gene perturbation experiments you need to install aditional requirements (uncomment in the Dockerfile), download GEARS (https://github.com/snap-stanford/GEARS) and add the package to the main path.

Run examples

To reproduce the results of the paper and run the provided examples, additional data download is required (see detailed explanation in data/README.md).

All parameters of the model can be set using flag commands. The model parameter flags are shared between all experiments, however, some experiments have additional flags corresponding to different experimental settings. Example calls are included in each of main files. Each run will save the log file, containing the train, validation, and test scores and the model corresponding to the best validation score in a unique folder named by the used hyper-parameters and the defined --save_folder in models/. For final model selection, iterate over all log files corresponding to one experiment and load the model corresponding to the minimal validation score.

codex's People

Contributors

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