Giter VIP home page Giter VIP logo

deepsem's Introduction

Forked from https://github.com/HantaoShu/DeepSEM

DeepSEM

About

This directory contains the code and resources of the following paper:

"Modeling Gene Regulatory Networks Using Neural Network Architectures" publish in Nature Computational Science (doi:10.1038/s43588-021-00099-8)

Overview of the Model

We introduce DeepSEM, a deep-learning-based approach with novel neural network architecture that can infer gene regulatory network, embed scRNA-seq data, and simulate realistic scRNA-seq data by interpreting different modules.

Dependencies

  • python 3.7
  • pytorch==1.2.0
  • scanpy==1.6.0
  • numpy==1.14.5
  • pandas==1.0.0
  • scikit-learn==0.23.2

All dependencies can be installed within a few minutes.

Tutorial

We provide tree tutorial as shown in directory tutorial/{GRN_inference_tutorial.ipynb,Embedding_tutorial.ipynb, Simulation_tutorial.ipynb} for introducing the usage of DeepSEM and reproducing the main result of our paper.

Usage

DeepSEM take data as input file in tsv, csv, 10X format, or h5ad format provided by Scanpy (genes in columns and cells in rows for tsv and csv). The output of DeepSEM is varying for different tasks.

  • GRN Inference task. A tsv file including TF, Target, and predicted GRN edge importance.
  • Embedding. A h5ad file including the embedding genetated by DeepSEM which are shown in "X" of the AnnData and the low dimension representation which are shown in "obsm['X_pca']".
  • Simulation. A h5ad file including the simulation result generated by DeepSEM which are shown in "X" of the AnnData.

We also provide default hyper-parameters in main.py. Using -h option or read Hyperparmeter.MD which introduces the hyper-parameters and provides suggestion for hyper-parameter tuning.

Command to run DeepSEM

  • Gene Regulation Inference (including cell type specific GRN and cell type non-specific GRN). Note that this is the script for non-ensemble version. We recommend to use ensemble streagy by repeating training process for K times (K=10 in our papaer) and use average of the absolute adjacent matrices as final prediction. Details are shown in tutorial/GRN_inference_tutorial.ipynb.
      python main.py --task celltype_GRN --data_file <scGNA-seq path> --save_name <output path> --setting test
      python main.py --task non_celltype_GRN --data_file <scGNA-seq path> --save_name <output path> --setting test
  • Embedding
      python main.py --task embedding --data_file <scGNA-seq path> --save_name <output path>
  • Simulation
    python main.py --task simulation --data_file <scRNA-seq path> --save_name <output path>

Baseline methods

If you have any question, please feel free to contact to me.
Email: [email protected], [email protected]

License

DeepSEM is licensed under the MIT License.

deepsem's People

Contributors

hantaoshu avatar jelkhouryy 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.