GithubHelp home page GithubHelp logo

glialfates_paper's Introduction

Glial fates paper code reproducibility

Line count DOI GEO GEO

Cite this paper

Kastriti, M. E., Faure, L., von Ahsen, D., Bouderlique, T. G., Boström, J., Solovieva, T., Jackson, C., Bronner, M., Meijer, D., Hadjab, S., Lallemend, F., Erickson, A., Kaucka, M., Dyachuk, V., Perlmann, T., Lahti, L., Krivanek, J., Brunet, J., Fried, K.,; Adameyko, I. (2022). 
Schwann cell precursors represent a neural crest‐like state with biased multipotency. 
The EMBO Journal, 41(17). https://doi.org/10.15252/embj.2021108780

Required software

It is highly recommended to work on linux, with mamba in order to create dedicated environments. For more information on how to install and use mamba, please check out the following link.

Obtain complete cell annotation

The complete assignment of all cell types/states can be found as a csv file. It combines the result of three analysis: (1) cell assignment to known cell type using canonical marker scoring, (2) Hub cell assignment using gene scoring and Leiden clustering and (3) SC subtypes assignment using tree analysis. (1) and (2) analysis code is located here, (3) analysis code here.

wget -nv https://ftp.ncbi.nlm.nih.gov/geo/series/GSE201nnn/GSE201257/suppl/GSE201257%5Fadata%5Fassigned%2Eh5ad%2Egz
wget -nv https://ftp.ncbi.nlm.nih.gov/geo/series/GSE201nnn/GSE201257/suppl/GSE201257%5Fadata%5Fglia%5Ffocus%2Eh5ad%2Egz
gunzip *.gz
import scanpy as sc
adata=sc.read_h5ad("GSE201257_adata_assigned.h5ad")
celltypes=['BCC',
 'ChC',
 'enteric glia',
 'enteric neu.',
 'melanocytes',
 'mesenchyme',
 'neural crest',
 'SC',
 'sat. glia',
 'sens. neu.',
 'symp. neu.',
 'endo. fib.']

adata.obs.assignments=adata.obs.assignments.cat.rename_categories(
    list(markers.keys())+["none"])

cols=dict(zip(celltypes,adata.uns["assignments_colors"]))
cols["none"]="lightgrey"
adata.obs.assignments=adata.obs.assignments.astype(str)

# assign Schwann Cell subtypes
adata_glia=sc.read("GSE201257_adata_glia_focus.h5ad")
adata.obs.loc[adata_glia.obs_names[adata_glia.obs.milestones=="tSC"],"assignments"]="tSC"
adata.obs.loc[adata_glia.obs_names[adata_glia.obs.milestones=="nmSC"],"assignments"]="nmSC"
adata.obs.loc[adata_glia.obs_names[adata_glia.obs.milestones=="mSC"],"assignments"]="mSC"

# add Hub cells
adata.obs.loc[adata[adata.obs.Hub_leiden=="True"].obs_names,"assignments"]="Hub"

adata.obs.assignments=adata.obs.assignments.astype("category")
cols["tSC"]="#b69169"
cols["mSC"]="#192bc2"
cols["nmSC"]=adata_glia.uns["milestones_colors"][
    adata_glia.obs.milestones.cat.categories=="nmSC"][0]
cols["endo. fib."]="#d33f6a"
cols["Hub"]="#fa9e8b"

celltypes.append("tSC")
celltypes.append("mSC")
celltypes.append("nmSC")
celltypes.append("Hub")

palette=[cols[a] for a in adata.obs.assignments.cat.categories]
sc.pl.umap(adata,color="assignments",palette=palette)
adata.obs[["assignments"]].to_csv("assignments.csv")

Hardware used for this analysis

  • HPC system with 88 cores and 1 To of RAM
  • RTX8000 nvidia GPU (used in SS2 velocity and tree analysis, Neuroblastoma preprocessing & RNAscope segmentation)

glialfates_paper's People

Contributors

louisfaure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mftth

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.