Giter Club home page Giter Club logo

scmvae's Introduction

Mixed Curvature VAE for single-cell RNA sequencing data

by Colin Doumont, Christophe Muller, Andrei Papkou, and Félix Vittori

This repository contains the implementation of our Semester Project for the class Deep Learning 263-3210-00L at ETH Zurich To run this project follow the steps layed out below.

Installation & Configuration

Make sure you have Python 3.7 installed. If you do not want to install all dependencies manually, make sure to have conda, and run the following commands:

make conda
conda activate pt
make download_data

Structure

Our structure is closely related to the one used in the MVAE-Github as it is the one we built our project upon.

  • Semester_Project/ - Source folder
    • data/ - Data loading, preprocessing, batching, and pre-trained embeddings.
    • examples/ - Contains the main executable file. Reads flags and runs the corresponding training and/or evaluation.
    • scMVAE/ - Contains all files needed for the model definition.
      • components/- Contains the components needed for training.
      • distributions/ - Contains the probability distributions for the different spaces.
      • kNN/ - Contains the code for the kNN clustering and silhouette scores.
        • kNN.py/ - Runs the kNN algorithm on the whole dataset.
        • kNN_samples.py/ - Runs the kNN algorithm on subsamples of the whole dataset (faster).
        • silhouette_samples.py/ - Computes the silhouette scores with regards to the batch effects.
      • model/ -
        • ffn_vae.py - Simple feedforward network with one recurrent branch passing the batch effect.
        • train.py - Class for training the model.
        • vae.py - Class inherited by ffn_vae.py/
      • ops/ - Contains the operations definitions from mvae.
      • sampling/- Contains the sampling methods from mvae.
      • utils/ - Contains different data handling utils.
    • visualization/ - Utilities for visualization of latent spaces or training statistics.
    • utils.py/ - Contains parsing utility function.
    • report_figures/ - Contains Jupyter notebooks, data and code to reproduce figures presented in the project report (Jupyter and R are not part of our conda environment! You need to use a different environment to execute notebooks ).
  • data/ - Data folder. Contains a script necessary for downloading the datasets we used.
  • scripts/ - Contains scripts to run experiments presented in paper.
  • Makefile - Defines "aliases" for various tasks.
  • README.md - This manual.
  • environment.yml - Required Python packages.

In bold are files that were changed or created by us. The rest of the script is from the MVAE script.

Usage

To get a feel for how the model works, try out the toy example by running:

conda activate pt
make run

Take a look at Semester_Project/examples/run.py for a list of command line arguments. For an evaluation run, see Semester_Project/examples/eval.py.

Replication of experiments

To replicate our experiments step by step, please have a look at the scripts/ folder.

Contact us

Colin Doumont
Christophe Muller
Andrei Papkou
Félix Vittori

scmvae's People

Contributors

felixiose avatar aapsonn avatar colmont avatar mullerchristophe21 avatar

Watchers

 avatar

Forkers

colmont

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.