Skip to content

About

Time-course analysis of scRNA-seq from iPSC motor neurons.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

205 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iPSC-motor neuron scRNAseq

The goal is to investigate the processes of differentiation in motor neurons (MNs) derived from an iPSC model. Gene expression was assayed using single-cell RNA-sequencing (10x Genomics) and processed with CellRanger at each timepoint. Cells were collected from undifferentiated iPSC, and every 3 days until day 50. We aim to identify the regional identity and subtypes of iPSC motor neurons and transcriptomic (dis)similarity with native MNs in the fetal spinal cord.

Notebook / script numbering

Scripts in src/ are prefixed <series>_<step>_. The series prefix denotes the dataset/comparison and the step denotes order within that series:

  • 1_ - iPSC samples (day 0–day 50 differentiation time course)
  • 2_ - Human fetal spinal cord (HSC) reference and iPSC↔HSC comparison
  • 3_ & 5_ - Muscle-medium / skMCM experiment (iPSC-MN day 24 ± skeletal-muscle-conditioned medium, vs. SkM-untreated co-culture). 3_ = preprocessing/QC of these samples; 5_ = label transfer and integration with the Rayon embryonic and HSC references. ("mm_added" and "skMCM" refer to this same experiment.)
  • 4_ - Integrated analysis of iPSC + HSC + skMCM samples

Analysis steps

  1. Preprocessing (QC, filtering, normalization): *_00_*.Rmd (e.g. 1_00, 2_00, 3_00, 5_00)
  2. Integrated primary spinal-cord reference: 1_01_mack_d_iPSC_motor_neurons_ref_data.Rmd
  3. Integration of samples (scANVI): *_integration_*SCANVI.py
  4. Cell-type annotation: *_celltype_annotation.Rmd or *_label_transfer.py
  5. Cell-trajectory analysis: *_trajectories.py (CellRank 2)
  6. RNA velocity: see src/velocyto_README.md

Environment setup

Conda/mamba environments are in env/ (versions pinned to those used for the manuscript):

  • env/scanvi_gpu.yml - GPU scANVI integration + label transfer (*_SCANVI.py, *_label_transfer.py)
  • env/cellrank2.yml - CellRank 2 trajectory analysis (1_07_*, _aggregate_fate_probs.py)
  • env/velocyto.yml - RNA velocity counting
mamba env create -f env/scanvi_gpu.yml
mamba activate scanvi_gpu

The .Rmd notebooks call Python via reticulate using a scanpy_in_r conda env; adjust the absolute conda-env paths near the top of each .Rmd to your own install.

How to run

Run scripts in series/step order. They expect to be launched from the repository root (paths are written relative to it, e.g. ./results/... or ../results/...). Python scripts take arguments via argparse - run with -h to see options. GPU jobs are submitted via SLURM (src/slurm/run_gpu.slurm). Each script's header comment lists its inputs and outputs.

Figure code (figure_code/)

Code that produces the figures of the manuscript, one folder per figure. Each folder runs from the repository root, reads inputs from data/ and writes to output/FigureN/.

Folder Figure panels Files
figure_code/Figure2/ Fig. 2 (atlas UMAPs, marker heatmap, population composition) Figure2_v4.Rmd
figure_code/Figure3/ Fig. 3 (MN maturation: marker heatmaps, MN UMAP, DEG counts, GO) Figure3.Rmd, Figure3C_UMAP.ipynb, Figure3_DE_GO.ipynb (see folder README)
figure_code/Figure4/ Fig. 4 (pairwise Spearman correlation, in vitro vs in vivo) Figure4_v3.ipynb, Fig4D_heatmaps.py
figure_code/Figure5/ Fig. 5 (temporal concordance of peak timing) Figure5_v1.ipynb
figure_code/Figure6/ Fig. 6C-F (SkMCM: DE, GSEA, cholesterol-synthesis score, functional genes) Fig6_0_DE.ipynb, Fig6_1_GSEA.py, Fig6_2_cholesterol_inputs.py, Fig6_3_panels_C-F.py (see folder README)
figure_code/FigureS2/ Fig. S2 (scRNA-seq QC metrics) pointer README; code in src/1_00
figure_code/FigureS3/ Fig. S3 (scANVI annotation; D, prediction confidence) FigS3D_scANVI_confidence.py; C in src/1_02, label transfer in src/1_03 (see folder README)
figure_code/FigureS4/ Fig. S4 (CellRank cell flow and terminal states) pointer README; code in src/1_07
figure_code/FigureS5/ Fig. S5 (lineage driver genes) pointer README; code in src/1_07
figure_code/FigureS6E/ Fig. S6E (in vivo consecutive-stage DE and GO) FigS6E_1_DE_inVivo.py, FigS6E_1b_filter_gene_universe.py, FigS6E_2_GO_enrichr.py, FigS6E_3_build_svg.py
figure_code/FigureS8/ Fig. S8 (proteomics of skeletal muscle-conditioned medium) FigS8_proteomics.ipynb

Upstream processing (QC, integration, annotation, trajectories) is in src/ (see above). Panels made in GraphPad Prism (MEA, Fig. 1C, Fig. 6G; muscle force, Fig. S7), schematics (Fig. S1, Fig. S3A) and image panels are not generated by code. Final typography and layout of the figures were adjusted in Affinity Designer.

Data availability

  • Single-cell RNA-seq of iPSC-derived motor neurons (time course and SkMCM treatment): GEO GSE349383
  • Processed single-nucleus RNA-seq of human embryonic and fetal spinal cord: GEO GSE349368 (raw reads will be deposited in dbGaP under controlled access)
  • Mass spectrometry of conditioned medium: MassIVE MSV000103412 / ProteomeXchange PXD084970

The data/, results/, and output/ directories are not tracked in git; download the deposited data and place the files named in each script header under data/ (or results/ for the src/ steps) to reproduce the analyses.

Citation

If you use this code, please cite [manuscript citation - TODO add on acceptance].

Authors

@yebaeus & @jennylsmith

About

Time-course analysis of scRNA-seq from iPSC motor neurons.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages