This is a repository for the publication "Spatial Co-transcriptomics Reveals Discrete Stages of Arbuscular Mycorrhizal Symbiosis" in which authors applied single-nuclei RNA-seq and spatial RNA-seq to the symbiosis between Medicago truncatula and Rhizophagus irregularis.
- sNucRNAseq_med_AMF.ipynb: Figure 1a, Figure 3a, Figure 3b, Figure 4b, Figure 4c, Supp. Sheet 4
- sNucRNAseq_med_all.ipynb: Supp Figure 3
- spatialRNAseq_pre_integration.ipynb: spatial data conversion into seurat object + filtering/normalization
- spatialRNAseq_integration.ipynb: spatial object integration, Supp Figure 4
- spatialRNAseq_post_integration.ipynb: Figure 2b, Figure 2c, Figure 4a (data), Figure 4b, Figure 5c
- colonizationanalysis.ipynb: Supp Figure 2
Fastq files, Cellranger and Spaceranger matrix files, and fully processed .RDS Seurat Object files can be downloaded here: https://www.ncbi.nlm.nih.gov/geo/info/linking.html](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE240107.
The following packages are required:
"Seurat"
"ggplot2"
"patchwork"
"dplyr"
"here"
"tidyverse"
"viridis"
"lattice"
"reshape2"
"cowplot"
"Matrix"
"Matrix.utils"
"edgeR"
"S4Vectors"
"SingleCellExperiment"
"pheatmap"
"apeglm"
"png"
"DESeq2"
"RColorBrewer"
"data.table"
For optimal reproducibility, it is best to use the docker image listed below rather than rely on packages downloaded locally. You may also find it necessary to use NERSC or a cloud computing platform to analyze larger datasets; below are instructions for pulling the docker image during an interactive R session on NERSC or in a NERSC-hosted Jupyter notebook (preferred but a few more steps to set up).
- docker is installed on your computer and running (might as well be the latest version)
- adjust docker preferences>resources to at least 8GB memory and at least 16GB disk image size
- in terminal:
docker pull bcoli/renv_single_cell:2.1.1
docker run --rm --mount type=bind,source="your-project-directory",target="/home/rstudio/" -p 8787:8787 bcoli/renv_single_cell:2.1.1
- in web browser, type: http://localhost:8787
Username: rstudio
PW: provided in terminal
- be in an interactive node
- be in directory where files are
run:
shifterimg pull bcoli/renv_single_cell:2.0.1 shifter --image bcoli/renv_single_cell:2.0.1 R
To create a kernel to use shifter to connect to the bcoli/renv_single_cell:2.1.1 docker image:
Log in to Perlmutter and navigate to: ~/.local/share/jupyter/kernels
mkdir seurat-shifter cd seurat-shifter
vim kernel.json
this kernel.json should contain the following:
{ "argv": ["shifter","--image=bcoli/renv_single_cell:2.1.1","R","--slave", "-e", "IRkernel::main()", "--args", "{connection_file}"],
"display_name": "seurat_shifter", "language": "R" }
Go to 'jupyter.nersc.gov' and select a CPU (shared or exclusive) on Perlmutter– this kernel should now be available
see doc
Medicago truncatula genome assembly and annotation: MedtrA17_4.0
Rhizophagus irregularis genome assembly and annotation: Rir_HGAP_ii_V2 (DAOM 181602, DAOM 197198) .
Please reach out to Karen Serrano at karenserrano@lbl.gov or Margot Bezrutcyzk at mbezrutczyk@lbl.gov for any questions.