OSCR

Spatially Resolved, Integrated Single-Cell Multiomic Profiling of the Transcriptome and Epigenomic Targets in Frozen Tissue Sections.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 3 matches
  1. [1] § Results ↔ Trekker_Spatial_Multiome_Cuttag_analysis.Rmd, lines 34 to 77 · score 0.90 · Allen Brain Atlas, ATAC seq, TSS enrichment, annotated Seurat, post QC, mouse · block oscr:b:9B8MT9DNTJNW8-C · Report a mismatch
  2. [2] § Protocol › Bioinformatics and data analysis ↔ Trekker_Spatial_Multiome_Cuttag_analysis.Rmd, lines 410 to 447 · score 0.70 · FindTransferAnchors, post QC, ABC, anatomy, PCA, predictions · block oscr:b:35AQ6AR8N8CEX-1 · Report a mismatch
  3. [3] § Protocol › Bioinformatics and data analysis ↔ Trekker_Spatial_Multiome_Cuttag_analysis.Rmd, lines 347 to 378 · score 0.70 · FindMultiModalNeighbors, LSI, graph, weighted, modality, embeddings · block oscr:b:SD4R1EYGXBKQ2-L · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R Markdown · 447 lines · 17 KB · no license · 3 matches

  1. ---
  2. title: "10x multiome (cut&tag H3K27ac) + curio trekker data"
  3. date: "`r format(Sys.time(), '%d %B, %Y')`"
  4. output:
  5. rmdformats::readthedown:
  6. self_contained: true
  7. thumbnails: false
  8. lightbox: false
  9. gallery: false
  10. highlight: tango
  11. code_folding: hide
  12. ---
  13. ```{r setup, include=FALSE}
  14. knitr::opts_chunk$set(message = FALSE, warning = FALSE)
  15. # the 10x hdf5 file contains both data types.
  16. ```
  17. ```{r}
  18. ### load libraries
  19. library(Seurat)
  20. library(ggplot2)
  21. library(googleCloudStorageR)
  22. library(Signac)
  23. library(EnsDb.Mmusculus.v79)
  24. library(BSgenome.Mmusculus.UCSC.mm10)
  25. library(dplyr)
  26. library(scDblFinder)
  27. options(stringsAsFactors = F)
  28. ```
  29. # Methods
  30. 1. Perform quality control for both gene expression and ATAC data, processed data can be reterieved from GEO: GSE327406
  31. 2. Identify doublets
  32. 3. Data normalization, dimension reduction and joint clustering
  33. 4. Cell type annotation based on mapping to reference single-cell dataset from allen brain atlas
  34. 5. Examine spatial clusters
  35. 6. The final post QC and annotated Seurat object can be found in Zenodo: 19475899
  36. # QC control {.tabset}
  37. ## Distribution of QC metrics
  38. ```{r}
  39. inputdata.10x <- Seurat::Read10X_h5("./filtered_feature_bc_matrix.h5")
  40. frag.file <- "./atac_fragments.tsv.gz"
  41. # extract RNA and ATAC data
  42. rna_counts <- inputdata.10x$`Gene Expression`
  43. atac_counts <- inputdata.10x$Peaks
  44. # Create Seurat object
  45. seurat_obj <- CreateSeuratObject(counts = rna_counts)
  46. seurat_obj[["percent.mt"]] <- PercentageFeatureSet(seurat_obj, pattern = "^mt-")
  47. # Now add in the ATAC-seq data
  48. # we'll only use peaks in standard chromosomes
  49. grange.counts <- StringToGRanges(rownames(atac_counts), sep = c(":", "-"))
  50. grange.use <- seqnames(grange.counts) %in% standardChromosomes(grange.counts)
  51. atac_counts <- atac_counts[as.vector(grange.use), ]
  52. annotations <- GetGRangesFromEnsDb(ensdb = EnsDb.Mmusculus.v79)
  53. seqlevelsStyle(annotations) <- 'UCSC'
  54. genome(annotations) <- "mm10"
  55. seqinfo_mouse <- seqinfo(BSgenome.Mmusculus.UCSC.mm10)
  56. chrom_assay <- CreateChromatinAssay(
  57. counts = atac_counts,
  58. sep = c(":", "-"),
  59. genome = seqinfo_mouse,
  60. fragments = frag.file,
  61. min.cells = 0,
  62. annotation = annotations, verbose = FALSE
  63. )
  64. seurat_obj[["ATAC"]] <- chrom_assay
  65. DefaultAssay(seurat_obj) <- "ATAC"
  66. #seurat_obj <- NucleosomeSignal(seurat_obj,verbose = F)
  67. seurat_obj <- TSSEnrichment(seurat_obj,verbose = F)
  68. ```
  69. ```{r, fig.height=10, fig.width=15}
  70. VlnPlot(seurat_obj, features = c("nCount_ATAC", "nCount_RNA","nFeature_ATAC","nFeature_RNA","percent.mt","TSS.enrichment"), ncol = 3,
  71. log = FALSE, pt.size = 0) + NoLegend()
  72. ```
  73. ## Distribution of QC metrics log scale
  74. ```{r, fig.height=10, fig.width=15}
  75. VlnPlot(seurat_obj, features = c("nCount_ATAC", "nCount_RNA","nFeature_ATAC","nFeature_RNA","percent.mt","TSS.enrichment"), ncol = 3,
  76. log = TRUE, pt.size = 0) + NoLegend()
  77. ```
  78. ## nCount vs nFeature RNA
  79. ```{r}
  80. FeatureScatter(seurat_obj, feature1 = "nCount_RNA", feature2 = "nFeature_RNA")
  81. ```
  82. ## Density of TSS enrichment
  83. ```{r}
  84. DensityScatter(seurat_obj, x = 'nCount_ATAC', y = 'TSS.enrichment', log_x = TRUE, quantiles = TRUE)
  85. ```
  86. ## nCount_ATAC vs nCount_RNA
  87. ```{r}
  88. DensityScatter(seurat_obj, x = 'nCount_ATAC', y = 'nCount_RNA', log_x = TRUE, quantiles = TRUE, log_y = TRUE)
  89. ```
  90. ```{r}
  91. seurat_obj$qc_status <- ifelse(seurat_obj$nCount_ATAC < 1*10^6 &
  92. seurat_obj$nCount_RNA < 1*10^5 &
  93. seurat_obj$nCount_ATAC > 100 &
  94. seurat_obj$nCount_RNA > 1000 &
  95. seurat_obj$nFeature_RNA > 200 &
  96. seurat_obj$nFeature_RNA < 10284 &
  97. seurat_obj$TSS.enrichment > 2, "pass","fail")
  98. ```
  99. `r sum(seurat_obj$qc_status == "fail")` out of `r ncol(seurat_obj)` are predicted to be low quality cells
  100. # {-}
  101. # Doublet prediction based on GEX
  102. ## Doublet prediction
  103. ```{r}
  104. DefaultAssay(seurat_obj) <- "RNA"
  105. seurat_obj <- seurat_obj %>% NormalizeData(verbose = F) %>% FindVariableFeatures(verbose = F)
  106. mt_genes <- grep("^mt-", VariableFeatures(seurat_obj), value = TRUE, ignore.case = TRUE)
  107. ribo_genes <- grep("^Rp[sl]", VariableFeatures(seurat_obj), value = TRUE, ignore.case = TRUE)
  108. VariableFeatures(seurat_obj) <- setdiff(VariableFeatures(seurat_obj), c(mt_genes,ribo_genes))
  109. seurat_obj <- seurat_obj %>% ScaleData(verbose = F) %>% RunPCA(verbose = F)
  110. seurat_obj <- FindNeighbors(object = seurat_obj, assay = "RNA", reduction = "pca", dims = 1:50, verbose = FALSE)
  111. seurat_obj <- FindClusters(object = seurat_obj, algorithm = 1, verbose = FALSE, cluster.name = "seurat_clusters")
  112. seurat_obj <- RunUMAP(seurat_obj, reduction = "pca", dims = 1:50, verbose = FALSE)
  113. ```
  114. ```{r}
  115. set.seed(1234)
  116. sce <- scDblFinder(GetAssayData(seurat_obj, assay = "RNA",layer = "count"), clusters=seurat_obj$seurat_clusters, verbose = F, dbr.sd = 1)
  117. seurat_obj[["scDblFinder.score"]] <- sce$scDblFinder.score
  118. seurat_obj[["scDblFinder.class"]] <- factor(ifelse(seurat_obj[["scDblFinder.score"]] >= 0.6, "doublet", "singlet"),levels = c("doublet","singlet"))
  119. gp <- ggplot() + geom_point(aes(x = nCount_RNA, y = nFeature_RNA,shape = scDblFinder.class), data = [email hidden]) + theme_classic() + scale_shape_manual(values = c(1, 4)) + facet_wrap(~scDblFinder.class, ncol = 2)
  120. gp
  121. ```
  122. `r sum(seurat_obj$scDblFinder.class == "doublet")` out of `r ncol(seurat_obj)` are predicted to be doublets
  123. ## Pct of doublet cells by cluster
  124. ```{r, fig.width=15, fig.height=10}
  125. # Summarize pct doublets per cluster
  126. doublet_summary <- [email hidden] %>%
  127. group_by(cluster = seurat_clusters) %>% # or Idents(seuratO)
  128. summarize(
  129. total_cells = n(),
  130. doublet_cells = sum(scDblFinder.class=="doublet", na.rm = TRUE),
  131. pct_doublet = 100 * doublet_cells / total_cells
  132. )
  133. # Bar plot
  134. ggplot(doublet_summary, aes(x = cluster, y = pct_doublet, fill = cluster)) +
  135. geom_bar(stat = "identity", color = "black") +
  136. geom_text(aes(label = paste0(round(pct_doublet,1), "%")),
  137. vjust = -0.5, size = 4) +
  138. labs(title = "Percentage of Doublet Cells per Cluster",
  139. x = "Cluster", y = "Doublets (%)") +
  140. theme_classic() +
  141. theme(legend.position = "none",
  142. axis.text = element_text(size=12),
  143. axis.title = element_text(size=14),
  144. plot.title = element_text(size=16, face="bold", hjust=0.5))
  145. ```
  146. ## nFeature_RNA by cluster
  147. ```{r}
  148. VlnPlot(seurat_obj, features = "nFeature_RNA", group.by = "seurat_clusters")
  149. ```
  150. ```{r}
  151. VlnPlot(seurat_obj, features = "scDblFinder.score", group.by = "seurat_clusters")
  152. ```
  153. # {-}
  154. # Doublet prediction based on Cut&Tag
  155. ## Doublet prediction
  156. ```{r}
  157. otherChroms <- GRanges(c("M","chrM","MT","X","Y","chrX","chrY"),IRanges(1L,width=10^8))
  158. res <- amulet(frag.file, regionsToExclude=otherChroms,minFrags=100,verbose=FALSE)
  159. seurat_obj$amulet_score <- res$q.value[match(colnames(seurat_obj),rownames(res))]
  160. ```
  161. ```{r}
  162. seurat_obj$amulet_class <- factor(ifelse(is.na(seurat_obj$amulet_score) | seurat_obj$amulet_score > 0.01, 'singlet', 'doublet'),
  163. levels = c('doublet', 'singlet')
  164. )
  165. gp <- ggplot() + geom_point(aes(x = nCount_ATAC, y = nFeature_ATAC,shape = amulet_class), data = [email hidden]) + theme_classic() + scale_shape_manual(values = c(1, 4)) + facet_wrap(~amulet_class, ncol = 2)
  166. gp
  167. ```
  168. ## Pct of doublet cells by cluster
  169. ```{r, fig.width=15, fig.height=10}
  170. # Summarize pct doublets per cluster
  171. doublet_summary <- [email hidden] %>%
  172. group_by(cluster = seurat_clusters) %>% # or Idents(seuratO)
  173. summarize(
  174. total_cells = n(),
  175. doublet_cells = sum(amulet_class=="doublet", na.rm = TRUE),
  176. pct_doublet = 100 * doublet_cells / total_cells
  177. )
  178. # Bar plot
  179. ggplot(doublet_summary, aes(x = cluster, y = pct_doublet, fill = cluster)) +
  180. geom_bar(stat = "identity", color = "black") +
  181. geom_text(aes(label = paste0(round(pct_doublet,1), "%")),
  182. vjust = -0.5, size = 4) +
  183. labs(title = "Percentage of Doublet Cells per Cluster",
  184. x = "Cluster", y = "Doublets (%)") +
  185. theme_classic() +
  186. theme(legend.position = "none",
  187. axis.text = element_text(size=12),
  188. axis.title = element_text(size=14),
  189. plot.title = element_text(size=16, face="bold", hjust=0.5))
  190. ```
  191. ## Comparing with GEX prediction
  192. ```{r}
  193. # Create contingency table
  194. df_tab <- [email hidden] %>%
  195. select(scDblFinder.class, amulet_class) %>%
  196. table() %>%
  197. as.data.frame()
  198. # Rename columns
  199. colnames(df_tab) <- c("scDblFinder", "AMULET", "Count")
  200. # Heatmap
  201. ggplot(df_tab, aes(x = scDblFinder, y = AMULET, fill = Count)) +
  202. geom_tile(color = "white") +
  203. geom_text(aes(label = Count), color = "black", size = 4) +
  204. scale_fill_gradient(low = "white", high = "steelblue") +
  205. labs(title = "Comparison of Doublet Predictions", x = "scDblFinder", y = "AMULET") +
  206. theme_minimal(base_size = 14)
  207. ```
  208. # {-}
  209. # UMAP by QC statur and combined doublet status
  210. ```{r, fig.width=15, fig.height=10}
  211. seurat_obj$doublet_status_combined <- ifelse((seurat_obj$scDblFinder.class == 'doublet' | (seurat_obj$scDblFinder.score >= 0.3 & seurat_obj$amulet_class == "doublet") | (seurat_obj$seurat_clusters %in% c(0,32))), 'doublet', 'singlet')
  212. DimPlot(seurat_obj, reduction = "umap", group.by = c("qc_status","doublet_status_combined"))
  213. ```
  214. # QC metrics vs # of spatial location {.tabset}
  215. ## Distribution of QC metrics by spatial location
  216. ```{r}
  217. cell_metrics <- read.delim("./coords_trekker_gex_cuttag.txt", header = TRUE, stringsAsFactors = F, sep = " ")
  218. seurat_obj$number_clusters <- cell_metrics$number_clusters[match(colnames(seurat_obj),paste0(cell_metrics$cell_bc, "-1"))]
  219. seurat_obj$number_clusters_class <- sapply(seurat_obj$number_clusters, function(i){
  220. if(i < 4) i else ">=4"
  221. })
  222. seurat_obj$number_clusters_class <- factor(seurat_obj$number_clusters_class, levels = c("0","1","2","3",">=4"))
  223. ```
  224. ```{r, fig.height=10, fig.width=10}
  225. VlnPlot(seurat_obj, features = c("nCount_ATAC", "nCount_RNA","nFeature_ATAC","nFeature_RNA","percent.mt", "TSS.enrichment"), ncol = 3, pt.size = 0,group.by = "number_clusters_class") & theme(legend.position = "right")
  226. ```
  227. ```{r}
  228. kableExtra::kable(unclass(table(seurat_obj$number_clusters_class)))
  229. ```
  230. ## nCount by Spatial location
  231. ```{r}
  232. ggplot(data = [email hidden]) + geom_point(aes(x= nCount_ATAC, y = nCount_RNA, color = number_clusters_class)) + theme_classic() + scale_x_log10() + scale_y_log10()
  233. ```
  234. ## Doublet status vs spatial location
  235. ```{r}
  236. # Compute proportions
  237. df_summary <- [email hidden] %>%
  238. group_by(doublet_status_combined, number_clusters_class) %>%
  239. summarise(count = n(), .groups = "drop") %>%
  240. group_by(doublet_status_combined) %>%
  241. mutate(prop = count / sum(count))
  242. # Plot: stacked bar showing proportions
  243. ggplot(df_summary, aes(x = doublet_status_combined, y = prop, fill = number_clusters_class)) +
  244. geom_bar(stat = "identity", position = "fill") +
  245. scale_y_continuous(labels = scales::percent_format()) +
  246. labs(x = "Doublet Status", y = "Proportion", fill = "Number of spatial locations") +
  247. theme_minimal()
  248. ```
  249. ## SB_top_cluster vs spatial location
  250. ```{r}
  251. cell_metrics$number_clusters_class <- sapply(cell_metrics$number_clusters, function(i){
  252. if(i < 4) i else ">=4"
  253. })
  254. cell_metrics$number_clusters_class <- factor(cell_metrics$number_clusters_class, levels = c("0","1","2","3",">=4"))
  255. ggplot() + geom_boxplot(aes(x = number_clusters_class, y = SB_top_cluster), data=cell_metrics)
  256. ```
  257. SB_top_cluster: Number of spatial barcodes in the top cluster (cluster == 1).
  258. ## SB_UMI_top_cluster vs spatial location
  259. ```{r}
  260. ggplot() + geom_boxplot(aes(x = number_clusters_class, y = SB_UMI_top_cluster), data=cell_metrics)
  261. ```
  262. SB_UMI_top_cluster: Total UMI counts summed over all spatial barcodes for that nucleus
  263. ## proportion_SB_top_cluster vs spatial location
  264. ```{r}
  265. ggplot() + geom_boxplot(aes(x = number_clusters_class, y = proportion_SB_top_cluster), data=cell_metrics)
  266. ```
  267. proportion_SB_top_cluster: Fraction of SBs in the top cluster: SB_top_cluster / SB_total
  268. ## proportion_SB_UMI_top_cluster
  269. ```{r}
  270. ggplot() + geom_boxplot(aes(x = number_clusters_class, y = proportion_SB_UMI_top_cluster), data=cell_metrics)
  271. ```
  272. proportion_SB_UMI_top_cluster: Fraction of UMIs in the top cluster: SB_UMI_top_cluster / SB_UMI_total.
  273. # {-}
  274. # Unsupervised clustering {.tabset}
  275. ## UMAP post filter
  276. ```{r}
  277. seurat_obj <- subset(seurat_obj, qc_status == "pass" & doublet_status_combined == "singlet")
  278. DefaultAssay(seurat_obj) <- "RNA"
  279. seurat_obj <- SCTransform(seurat_obj, verbose = FALSE, vars.to.regress = 'percent.mt')
  280. mt_genes <- grep("^mt-",VariableFeatures(seurat_obj), value = T, ignore.case = T)
  281. ribo_genes <- grep("^Rp[sl]", VariableFeatures(seurat_obj), value = TRUE, ignore.case = TRUE)
  282. VariableFeatures(seurat_obj) <- setdiff(VariableFeatures(seurat_obj), c(mt_genes,ribo_genes))
  283. seurat_obj <- seurat_obj %>% RunPCA(verbose = F)
  284. sapply(1:30, function(i) cor(seurat_obj@reductions$[email hidden][,i],seurat_obj$nCount_RNA, method = "s"))
  285. # do not use PC1 as it's highly correlated to nCount_RNA
  286. seurat_obj <- seurat_obj %>% RunUMAP(dims = 2:50, reduction.name = 'umap.rna', reduction.key = 'rnaUMAP_',verbose = F)
  287. DefaultAssay(seurat_obj) <- "ATAC"
  288. seurat_obj <- FindTopFeatures(seurat_obj, min.cutoff = "q5",verbose = F)
  289. seurat_obj <- RunTFIDF(seurat_obj,verbose = F)
  290. seurat_obj <- RunSVD(seurat_obj,verbose = F)
  291. seurat_obj <- RunUMAP(seurat_obj, reduction = 'lsi', dims = 2:50, reduction.name = "umap.atac", reduction.key = "atacUMAP_", verbose = F)
  292. seurat_obj <- FindMultiModalNeighbors(seurat_obj, reduction.list = list("pca", "lsi"), dims.list = list(2:50, 2:50),modality.weight.name = "RNA.weight",verbose = F)
  293. seurat_obj <- RunUMAP(seurat_obj, nn.name = "weighted.nn", reduction.name = "wnn.umap", reduction.key = "wnnUMAP_", verbose = F)
  294. seurat_obj <- FindClusters(seurat_obj, graph.name = "wsnn", algorithm = 3, verbose = FALSE, resolution = 0.3)
  295. ```
  296. ```{r, fig.width=12, fig.height=8}
  297. p1 <- DimPlot(seurat_obj, reduction = "umap.rna", group.by = "seurat_clusters", label = TRUE, label.size = 5, repel = TRUE) + ggtitle("RNA")
  298. p2 <- DimPlot(seurat_obj, reduction = "umap.atac", group.by = "seurat_clusters", label = TRUE, label.size = 5, repel = TRUE) + ggtitle("ATAC")
  299. p3 <- DimPlot(seurat_obj, reduction = "wnn.umap", group.by = "seurat_clusters", label = TRUE, label.size = 5, repel = TRUE) + ggtitle("WNN")
  300. p1 + p2 + p3 & NoLegend() & theme(plot.title = element_text(hjust = 0.5))
  301. ```
  302. ## Spatial plot
  303. ```{r,fig.width=10, fig.height=6}
  304. coord_mat <- cell_metrics[match(colnames(seurat_obj),paste0(cell_metrics$cell_bc,"-1")),c("x_um","y_um")]
  305. rownames(coord_mat) <- colnames(seurat_obj)
  306. colnames(coord_mat) <- c("SPATIAL_1","SPATIAL_2")
  307. seurat_obj[["spatial"]] <- CreateDimReducObject(embeddings = as.matrix(coord_mat), key = "SPATIAL_", assay = "RNA")
  308. seurat_obj_sel <- subset(seurat_obj, number_clusters >0)
  309. p4 <- DimPlot(seurat_obj_sel, reduction = "spatial", group.by = "seurat_clusters")
  310. p3 + p4 & NoLegend() & theme(plot.title = element_text(hjust = 0.5))
  311. ```
  312. All nuclei from single-nuclei pipeline analysis (including those without spatial locations) were included in the UMAP. All positioned nuclei were included in the spatial plot (including those with 2 or more spatial locations).
  313. Total number of cells post QC and positioned spatially: `r ncol(seurat_obj_sel)`
  314. ## Spatial plot by # of spatial locations
  315. ```{r, fig.width=6,fig.height=6}
  316. gp <- DimPlot(seurat_obj_sel, reduction = "spatial", group.by = "number_clusters_class")
  317. plotly::ggplotly(gp)
  318. ```
  319. # {-}
  320. # Cell type annotation
  321. ```{r}
  322. DefaultAssay(seurat_obj) <- "RNA"
  323. integrated_obj <- readRDS("./abc_integrated.rds")
  324. for(i in names(integrated_obj@assays$RNA@layers)) {
  325. inputs <- all_matrix_inputs(integrated_obj@assays$RNA@layers[[i]])
  326. inputs[[1]]@dir <- "./on_disk_mat/"
  327. all_matrix_inputs(integrated_obj@assays$RNA@layers[[i]]) <- inputs
  328. }
  329. seurat_obj <- seurat_obj %>% NormalizeData(verbose = F) %>% ScaleData(verbose = F) %>% FindVariableFeatures(verbose = F)
  330. DefaultAssay(integrated_obj) <- "RNA"
  331. anchor <- FindTransferAnchors(
  332. reference = integrated_obj,
  333. query = seurat_obj,
  334. reduction = "pcaproject",
  335. reference.reduction = "pca", verbose = FALSE)
  336. refdata <- as.list(c("cell_type_class","anatomical_division_label"))
  337. names(refdata) <- c("cell_type_class","anatomical_division_label")
  338. seurat_obj <- TransferData(
  339. anchorset = anchor,
  340. reference = integrated_obj,
  341. query = seurat_obj,
  342. refdata = refdata,
  343. prediction.assay = TRUE)
  344. ## Remove cell types that are not expected to be present based on anatomy of the tissue
  345. seurat_obj <- subset(seurat_obj, cells = colnames(seurat_obj)[!seurat_obj$predicted.cell_type_class %in% c("15 HY Gnrh1 Glut", "16 HY MM Glut","21 MB Dopa","22 MB-HB Sero", "23 P Glut", "25 Pineal Glut","26 P GABA", "27 MY GABA","28 CB GABA","29 CB Glut","32 OEC")])
  346. tmp <- unique(seurat_obj$predicted.cell_type_class)[order(as.integer(gsub(" .*$","",unique(seurat_obj$predicted.cell_type_class))))]
  347. seurat_obj$cell_type_class <- factor(seurat_obj$cell_type_class, levels = gsub("[0-9]+ ","",tmp))
  348. saveRDS(seurat_obj, "./seurat_obj_postQC.rds")
  349. ```

Trekker_Spatial_Multiome_Cuttag_analysis.Rmd at commit 696d29d, no license · at the source

Overview

Authors: Ting Zhang1,2, Fatemeh S. Farassati1,2, Alejandro Stark-Quiroz1,2, Yuanhang Liu3, Nick M. Huynh1,2, Yujiro Hayashi1,2, Tamas Ordog1,2, Jeong-Heon Lee1,2,4
  1. Enteric Neuroscience Program and Department of Physiology and Biomedical Engineering, Mayo Clinic College of Medicine and Science
  2. Gastroenterology Research Unit, Division of Gastroenterology and Hepatology, Department of Medicine, Mayo Clinic College of Medicine and Science
  3. Division of Computational Biology, Department of Quantitative Health Sciences, Mayo Clinic College of Medicine and Science
  4. Division of Experimental Pathology and Laboratory Medicine, Department of Laboratory Medicine and Pathology, Mayo Clinic College of Medicine and Science
Institutions: Mayo Clinic (United States)
Journal: Journal of visualized experiments : JoVE, issue 232, article 10.3791/71046
Dates: published online 12 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.3791/71046 · PMID 42371963 · PMCID PMC13450693 · OpenAlex W7164661319
Open access: green, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), cellular / molecular (subfield)
Methods: Smoothing, state filtering, decompositions, Machine learning, fMRI & imaging
MeSH: Epigenomics*, Frozen Sections*, Gene Expression Profiling*, Single-Cell Analysis*, Transcriptome*, Animals, Brain, Multiomics, Single-Cell Gene Expression Analysis, Spatial Transcriptomics (* major topic)
Topic: Single-cell and spatial transcriptomics (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: NIDDK NIH HHS (R01 DK126827, P30 DK084567, R01 DK131455, R01 DK121766, R01 DK142826)
Citations: not cited yet (Europe PMC); 27 references in the paper
Research resources: Anti-H3K27ac antibody RRID:AB_3712075, Seurat RRID:SCR_016341, Signac RRID:SCR_021158, scDblFinder RRID:SCR_022700, Cell Ranger Arc v2.0.2 RRID:SCR_023897, ABC atlas RRID:SCR_024440, 10X Genomics Chromium X instrument RRID:SCR_024537, KEYENCE Fluorescence Microscope RRID:SCR_025160, Nexcelom Cellometer K2 RRID:SCR_025529

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

Liuy12/Mouse_Brain_Trekker_Multiome_Cuttag

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 696d29dbc73b97b51beba4db91152f0c25dcc4ef, 8 April 2026
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: the text, “Bioinformatics and data analysis”
Holds: README, 1 notebook
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (1 file), Plotly (1 file), Seurat (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
2 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1 script, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Publisher: n/a → MyJOVE

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, issue, pages, dates, 8 authors, 10 MeSH terms, 1 funder, 27 references, 9 RRIDs.

Cite

This paper

Zhang, T., Farassati, F. S., Stark-Quiroz, A., Liu, Y., Huynh, N. M., Hayashi, Y., Ordog, T., & Lee, J.-H. (2026). Spatially Resolved, Integrated Single-Cell Multiomic Profiling of the Transcriptome and Epigenomic Targets in Frozen Tissue Sections. Journal of visualized experiments : JoVE, 10.3791/71046. https://doi.org/10.3791/71046

BibTeX

@article{zhang2026spatially,
author = {Zhang, Ting and Farassati, Fatemeh S. and Stark-Quiroz, Alejandro and Liu, Yuanhang and Huynh, Nick M. and Hayashi, Yujiro and Ordog, Tamas and Lee, Jeong-Heon},
title = {{Spatially Resolved, Integrated Single-Cell Multiomic Profiling of the Transcriptome and Epigenomic Targets in Frozen Tissue Sections}},
journal = {Journal of visualized experiments : JoVE},
year = {2026},
month = jun,
number = {232},
pages = {10.3791/71046},
publisher = {MyJOVE},
issn = {1940-087X},
doi = {10.3791/71046},
url = {https://doi.org/10.3791/71046},
pmid = {42371963},
pmcid = {PMC13450693}
}

RIS

TY - JOUR
AU - Zhang, Ting
AU - Farassati, Fatemeh S.
AU - Stark-Quiroz, Alejandro
AU - Liu, Yuanhang
AU - Huynh, Nick M.
AU - Hayashi, Yujiro
AU - Ordog, Tamas
AU - Lee, Jeong-Heon
TI - Spatially Resolved, Integrated Single-Cell Multiomic Profiling of the Transcriptome and Epigenomic Targets in Frozen Tissue Sections
T2 - Journal of visualized experiments : JoVE
J2 - J Vis Exp
PY - 2026
DA - 2026/06/12
IS - 232
SP - 10.3791/71046
SN - 1940-087X
PB - MyJOVE
DO - 10.3791/71046
UR - https://doi.org/10.3791/71046
LA - en
ER -

CSL-JSON

{
"id": "10.3791/71046",
"type": "article-journal",
"title": "Spatially Resolved, Integrated Single-Cell Multiomic Profiling of the Transcriptome and Epigenomic Targets in Frozen Tissue Sections",
"container-title": "Journal of visualized experiments : JoVE",
"author": [
{
"family": "Zhang",
"given": "Ting"
},
{
"family": "Farassati",
"given": "Fatemeh S."
},
{
"family": "Stark-Quiroz",
"given": "Alejandro"
},
{
"family": "Liu",
"given": "Yuanhang"
},
{
"family": "Huynh",
"given": "Nick M."
},
{
"family": "Hayashi",
"given": "Yujiro"
},
{
"family": "Ordog",
"given": "Tamas"
},
{
"family": "Lee",
"given": "Jeong-Heon"
}
],
"container-title-short": "J Vis Exp",
"issue": "232",
"page": "10.3791/71046",
"DOI": "10.3791/71046",
"PMID": "42371963",
"PMCID": "PMC13450693",
"ISSN": "1940-087X",
"publisher": "MyJOVE",
"URL": "https://doi.org/10.3791/71046",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
12
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.3390/genes16121394
A Single-Cell Omics Technical Guide for Advancing Neuropsychiatric Research.
Journal: Genes
In common: genetics / omics, cellular / molecular, 11 references
[2] doi:10.1038/s41586-025-09663-y [code]
Spatial dynamics of brain development and neuroinflammation.
Journal: Nature
In common: Seurat, ggplot2, tidyverse, genetics / omics, cellular / molecular, 7 references
[3] doi:10.1038/s41586-024-08453-2 [code]
Mapping cells through time and space with moscot.
Journal: Nature
In common: Plotly, Seurat, ggplot2, 1 other tool, genetics / omics, 6 references
[4] doi:10.1038/s41586-023-06837-4 [code]
Slide-tags enables single-nucleus barcoding for multimodal spatial genomics.
Journal: Nature
In common: Seurat, ggplot2, tidyverse, genetics / omics, cellular / molecular, 7 references
[5] doi:10.1093/nar/gkaf1473 [code]
STAN, a computational framework for inferring spatially informed transcription factor activity.
Journal: Nucleic acids research
In common: Seurat, ggplot2, tidyverse, genetics / omics, cellular / molecular, 6 references
[6] doi:10.1016/j.xpro.2025.103828
Protocol for AI-supported immunofluorescence colocalization analysis in human enteric neurons.
Journal: STAR protocols
In common: 2 authors
[7] doi:10.1038/s41467-023-38121-4 [code]
Reconstruction of the cell pseudo-space from single-cell RNA sequencing data with scSpace.
Journal: Nature communications
In common: Plotly, Seurat, ggplot2, 1 other tool, genetics / omics, cellular / molecular, 5 references
[8] doi:10.1038/s41593-026-02293-1 [code]
Optics-free spatial genomics for mapping mammalian brain aging by IRISeq.
Journal: Nature neuroscience
In common: Seurat, ggplot2, tidyverse, genetics / omics, cellular / molecular, 6 references
[9] doi:10.1038/s41467-026-69346-8 [code]
Seq-Scope-eXpanded: spatial omics beyond optical resolution.
Journal: Nature communications
In common: Seurat, ggplot2, tidyverse, genetics / omics, cellular / molecular, 5 references
[10] doi:10.1038/s41467-022-35288-0 [code]
Spatial-ID: a cell typing method for spatially resolved transcriptomics via transfer learning and spatial embedding.
Journal: Nature communications
In common: genetics / omics, cellular / molecular, 8 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.3791/71046.svg)](https://openscicode.org/badge/doi/10.3791/71046)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.3791/71046.svg
   :target: https://openscicode.org/badge/doi/10.3791/71046
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3791/71046"><img src="https://openscicode.org/badge/doi/10.3791/71046.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.