GithubHelp home page GithubHelp logo

perturb's Introduction

Perturb

Predicting cellular responses to gene and compound perturbations.

Directory Structure

Perturb/
├── README.md
├── examples
│   └── pert
│       ├── atom_dict.gpkl
│       ├── conf.drug.toml
│       ├── conf.gene.toml
│       ├── finetune_drug_perturb.py
│       ├── finetune_gene_perturb.py
│       └── finetune_drug_ad_siamese_perturb.py
└── perturb
    ├── __init__.py
    ├── data
    │   ├── __init__.py
    │   ├── data.py
    │   └── preprocess.py
    ├── loss
    │   ├── __init__.py
    │   └── masked_loss.py
    ├── metrics
    │   ├── __init__.py
    │   ├── evaluation.py
    │   └── plotting.py
    ├── model
    │   ├── __init__.py
    │   ├── compound_model.py
    │   ├── compound_processor.py
    │   ├── dsbn.py
    │   ├── generation_model.py
    │   ├── grad_reverse.py
    │   └── model.py
    ├── tokenizer
    │   ├── __init__.py
    │   └── tokenizer.py
    ├── train
    │   ├── __init__.py
    │   └── trainer.py
    └── utils
        ├── __init__.py
        ├── attr_dict.py
        └── utils.py

Basic Usage

Download the repo:

$ git clone https://github.com/GHDDI-AILab/Perturb.git
$ cd Perturb/

Import the package in Python:

from perturb.data import PertData
from perturb.model import TransformerGenerator
from perturb.train import Trainer
from perturb.utils import read_pickle, write_pickle
from perturb.utils.attr_dict import AttrDict

Examples

$ cd examples/pert/
$ python finetune_drug_perturb.py -c conf.drug.toml 1> run.log 2> run.err

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.