Code Monkey home page Code Monkey logo

sc-autoencoding's Introduction

sc-autoencoding

student internship of Simon Streib to reduce single cell data

The goal was to use an autoencoder to reduce the dimensionality or sincle-cell transcriptome data, and then compare the results with baselines, such as PCA, ICA, LSA, t-SNE, UMAP. Different autoencoders were used, called BCA (Basic Count Autoencoder), DCA (Denoising Count Autoencoder, an autoencoder created by Zheng et. al.), and SCA (Simon's Count Autoencoder).

The complete pipeline can be run by cloning the repository, downloading input data as explained below, and then run script "0_runner_bashscripts\analyse_all.sh" which will call all other scripts for preprocessing, dimensionality reduction and evaluation. Note, that a very long runtime (~days on a 100-core processor) will be expected for the whole project. Depending on the amount of available computing power, the amount of parallel computations can be edited within the .sh files inside \cloned_dirctory\0_runner_bashscripts by allowing loops to run in parallel using "&".

####################################################################################

Requirements of installed python packages has been supplied. Plese note, that the pipeline running Zheng's Denoising Count Autoncoder (DCA) has to be run in a different environment. It is recommended to set up environments identically to the original setup: The main conda environment, called "tf" and using the packages of "requirements_tf.txt", and the Zheng environment called "dicia2" using the packages listed in "requirements_dicia2.txt". Also note, that in order to activate conda environments from scripts, the conda.sh needs to be sourced. By default, the conda.sh is expected to be located under ~/anaconda3/etc/profile.d/conda.sh. If any changes are made to this, then the environment handling of the .sh scripts in \cloned_dirctory\0_runner_bashscripts needs to be adjusted at the two lines looking like this:

source ~/anaconda3/etc/profile.d/conda.sh # source your own conda.sh

conda activate dicia2 # edit names to your own environments

####################################################################################

Input Data: Was downloaded from https://support.10xgenomics.com/single-cell-gene-expression/datasets (Cellranger 1.1.0) Downloaded were 10 datasets from Zheng. et. al, containing Data to 10 different celltypes. The data should be put to cloned_dirctory\inputs\data\raw_input\cd4_t_helper_filtered_gene_bc_matrices.tar.gz", with the internal structure of .tar.gz files corresponding to the rules of 10x Genomics Example Datasets. Any number of .tar.gz files can be deposited in the directory as needed. Note however, that the data of each file will be regarded as one "celltype", with the name taken from the filename. If the filenames have different structures, then edits might be necessary in cloned_dirctory\1_Processing\sca_datamerger.py" to ensure proper labelling of the celltype.

More information about the results and structure of the project can be found in the uploaded file "Report_RP1".

sc-autoencoding's People

Contributors

snapta avatar pseudomanifold avatar dependabot[bot] avatar

Stargazers

 avatar GAURAV avatar

Watchers

James Cloos avatar Damian Roqueiro avatar Kevser avatar

Forkers

saqibmamoon

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.