Giter Site home page Giter Site logo

mini-atlas's Introduction

Phenotypic variation of transcriptomic cell types in mouse motor cortex

patch-seq coverage https://www.nature.com/articles/s41586-020-2907-3

Federico Scala*, Dmitry Kobak*, Matteo Bernabucci, Yves Bernaerts, Cathryn René Cadwell, Jesus Ramon Castro, Leonard Hartmanis, Xiaolong Jiang, Sophie Laturnus, Elanine Miranda, Shalaka Mulherkar, Zheng Huan Tan, Zizhen Yao, Hongkui Zeng, Rickard Sandberg, Philipp Berens & Andreas S. Tolias. Nature (2020)

This repository contains the analysis code and the preprocessed data for the above manuscript.


Preprocessed data and meta data

All meta data and preprocessed data are located in the data/ folder. This includes exonic and intronic gene counts, extracted electrophysiological features, extracted morphological features and z-profiles. There are two separate datasets: the main dataset recorded at room temperature and the follow-up dataset recorded at physiological temperature (files with phys_temp in the filenames).

Downloading the raw data

Python notebooks to reproduce our analysis and figures

  1. Run preprocess-morph-SWC-files.ipynb to preprocess (resample, smooth, etc.) the raw SWC files with reconstructed morphologies. Resulting SWC files are saved in a separate folder.
  2. Run extract-morphometric-features.ipynb to extract the morphometric features using the preprocessed SWC files. The resulting CSV tables are provided in this repository.
  3. Run preprocess-ephys-files.ipynb to extract the electrophysiological features. The resulting CSV tables are provided in this repository. This script also creates one supplementary figure illustrating the extraction process (and creates similar figures for all cells). This script also produces a .pickle file with three exemplary traces per neuron, which is used to make subsequent figures.
  4. Run allen-data-preprocess.ipynb to preprocess the Allen Institute data: select variable genes, run t-SNEs, etc. The results are saved as .pickle files. In order to run this notebook, one needs to download raw Allen Institute data. Links are provided in the notebook.
  5. Run patch-seq-data-load.ipynb to load all our data and package together into a convenient Python object. The result is saved as a .pickle file.
  6. Run ttype-assignment.ipynb to assign all cells to the t-types. The result is saved as a .pickle file. This notebook also produces several supplementary figures.
  7. The remaining notebooks load the .pickle files and produce individual figures. They can be run in any order.

Errata

After the paper was published we realized that the morphological reconstruction for the 20171207sample1 neuron is wrong (it is a slighly modified copy of another neuron). We do not update the data here so that our analysis can be reproduced exactly. But for any follow-up analysis we recommend to delete the corresponding reconstruction and to mark this neuron as non-reconstructed in the meta data CSV table.

mini-atlas's People

Contributors

ybernaerts avatar dkobak avatar visdoom 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.