A Porcine Model of Intervertebral Disc Injury Recapitulates Human Discogenic Pain Via Notochordal Cell Loss and Pain-Inducing Nucleus Pulposus Cell Emergence.
The 2 matches
- [1] § Methods › scRNA‐Seq Bioinformatic Analysis ↔ 2. Data Visualization with Seurat Script.qmd, lines 193–256 · score 0.96 · CHI3L1, IL1R1, IL6R, TNFRSF1B, COL1A1, HMOX1
- [2] § Methods › scRNA‐Seq Bioinformatic Analysis ↔ 3. Psudotime Analysis Script.qmd, lines 161–220 · score 0.60 · NC lineage, KRT19, MGP, KRT8, TBXT, ACAN
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Quarto · 612 lines · 26 KB · no license · 1 match
- ---
- title: "General Seurat Figures and Analysis in RStudio"
- format: html
- editor: visual
- ---
- ```{r}
- ```
- All packages required for script to run.
- ```{r}
- #| echo: false
- #if (!require("BiocManager", quietly = TRUE))
- #install.packages("BiocManager")
- #BiocManager::install("Seurat", force = TRUE)
- #install.packages("remotes")
- #install.packages("R.utils")
- #remotes::install_github("satijalab/seurat-wrappers")
- #BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats',
- # 'limma', 'lme4', 'S4Vectors', 'SingleCellExperiment',
- # 'SummarizedExperiment', 'batchelor', 'HDF5Array',
- # 'terra', 'ggrastr'))
- #install.packages("devtools")
- #devtools::install_github('cole-trapnell-lab/monocle3')
- #BiocManager::install("EnhancedVolcano", force = TRUE)
- #BiocManager::install("ComplexHeatmap")
- #devtools::install_github("jinworks/CellChat")
- #install.packages("NMF")
- library(Seurat)
- library(SeuratWrappers)
- library(patchwork)
- library(dplyr)
- library(ggplot2)
- library(monocle3)
- library(Matrix)
- #library(EnhancedVolcano)
- library (ggrepel)
- library(RColorBrewer)
- library(pheatmap)
- library(webr)
- #if GK Laptop
- #setwd("C:/Users/gkane/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat")
- #if BIRI super computer
- setwd("C:/Users/kanedag/OneDrive - Cedars-Sinai Health System/Sheyn, Dima's files - Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD model/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat")
- ```
- ```{r}
- #color by cluster
- AllData.int$seurat_clusters -> [email hidden]
- AllData.umap <-DimPlot(AllData.int, reduction = "umap", pt.size = 0.01, label = TRUE,
- label.size = 4, raster = FALSE) + coord_fixed(ratio=1)
- AllData.pca
- ggsave("AllData umap.png", AllData.umap)
- #color by disc
- P1 <- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,group.by = "orig.ident")
- P1
- ggsave("All discs orig.ident pca.png", P1)
- #color by injury stats
- P2 <- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,group.by = "disc.ident")
- P2
- ggsave("Inj vs Healthy pca.png", P2)
- P3 <- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,group.by = "cell.ident")
- P3
- ggsave("Cell Ident pca.png", P3)
- P4 <- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,group.by = "cell.state")
- P4
- ggsave("Cell.state pca.png", P4)
- DimPlot(AllData.int, reduction = "pca", pt.size = 0.01, label = TRUE,
- label.size = 4, raster = FALSE)
- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,split.by = "orig.ident")
- DimPlot(AllData.int, reduction = "pca", pt.size = 0.1, label = TRUE, repel = TRUE,
- raster = FALSE,split.by = "disc.ident")
- ```
- Plot percent cells from each disc per cluster and percent cells injured/healthy per cluster
- ```{r Visualization of batch spread within clusters}
- #percent cells from each disc per cluster
- # Create a table of cluster-orig.ident counts
- cluster_orig.ident_counts <- table(AllData.int$seurat_clusters, AllData.int$orig.ident)
- # Calculate the percentage of cells per genotype in each cluster
- cluster_orig.ident_percentage <- prop.table(cluster_orig.ident_counts, margin = 1) * 100
- # Create a data frame for plotting
- plot_data <- as.data.frame(cluster_orig.ident_percentage)
- colnames(plot_data) <- c('Cluster', 'orig.ident', 'Percentage')
- # Create the stacked bar plot using ggplot2
- disc.pct.plot <- ggplot(plot_data, aes(x = Cluster, y = Percentage, fill = orig.ident)) +
- geom_bar(stat = "identity", position = "stack", width = 0.7) +
- labs(x = 'Cluster', y = 'Percentage of Cells') +
- theme_minimal() +
- ggtitle('Percentage of Cells per orig.ident in Each Cluster') +
- guides(fill = guide_legend(title = 'orig.ident'))
- disc.pct.plot
- ggsave("percent cells per disc.png", disc.pct.plot, width = 10, height = 8, units = "in")
- #percent cells injured/healthy per cluster
- #Create a table of cluster-disc.ident counts
- inj_ctr_counts <- table(AllData.int$seurat_clusters, AllData.int$disc.ident)
- # Calculate the percentage of cells per genotype in each cluster
- inj_ctr_percentage <- prop.table(inj_ctr_counts, margin = 1) * 100
- # Create a data frame for plotting
- plot_data <- as.data.frame(inj_ctr_percentage)
- colnames(plot_data) <- c('Cluster', 'disc.ident', 'Percentage')
- # Create the stacked bar plot using ggplot2
- InjCtr.pct.plot <- ggplot(plot_data, aes(x = Cluster, y = Percentage, fill = disc.ident)) +
- geom_bar(stat = "identity", position = "stack", width = 0.7) +
- labs(x = 'Cluster', y = 'Percentage of Cells') +
- theme_minimal() +
- ggtitle('Percentage of Cells per disc.ident in Each Cluster') +
- guides(fill = guide_legend(title = 'disc.ident'))+
- theme(axis.text.x = element_text(angle = 45, hjust = 1))
- InjCtr.pct.plot
- ggsave("percent cells per inj-ctr.png", InjCtr.pct.plot, width = 10, height = 8, units = "in")
- ```
- ```{r Pie-Donut plot}
- # Extract the cell.ident and seurat_clusters from the Seurat object
- cell_data <- data.frame(cell.ident = [email hidden]$cell.ident,
- seurat_clusters = [email hidden]$seurat_clusters)
- # Summarize the counts for each combination of cell type and cluster
- PD <- cell_data %>%
- group_by(cell.ident, seurat_clusters) %>%
- summarise(n = n()) %>%
- ungroup()
- # Modify only the labels containing the word "Transitional" to include line breaks
- #PD$cell.ident <- ifelse(grepl("Transitional", PD$cell.ident),
- # gsub("Transitional ", "Transitional\n", PD$cell.ident),
- # as.character(PD$cell.ident))
- # Create the nested pie chart with the specified order and label adjustments
- PieDonut(PD, aes(cell.ident, seurat_clusters, count = n),
- title = "Cell Types and Clusters Distribution",
- showPieName = FALSE,
- start=pi/2,
- r0 = 0
- )
- ```
- ```{r Healthy vs Injured cluster breakdown bar}
- # Extract meta.data from Seurat object
- meta_data <- [email hidden]
- # Ensure the relevant columns are factors
- meta_data$disc.ident <- as.factor(meta_data$disc.ident)
- meta_data$seurat_clusters <- as.factor(meta_data$seurat_clusters)
- meta_data_summary <- meta_data %>%
- dplyr::count(disc.ident, cell.ident) %>%
- group_by(disc.ident) %>%
- mutate(percentage = n / sum(n) * 100)
- # Create the bar plot using ggplot2
- ggplot(meta_data, aes(x = disc.ident, fill = cell.ident)) +
- geom_bar(position = "fill", stat = "count") +
- scale_y_continuous(labels = scales::percent) +
- theme_minimal() +
- labs(x = "Cell Ident", y = "Percentage", fill = "Cell Identity") +
- ggtitle("Distribution of cell identities across Discs")
- ```
- First run through for cluster cell type identification and visualization of select interesting genes
- ```{r Initial cell identification and visiualization of interesting genes}
- marker_test_res <- top_markers(cds, group_cells_by="cell.ident", reference_cells=1000, cores=8)
- top_specific_markers <- marker_test_res %>%
- filter(fraction_expressing >= 0.5) %>%
- group_by(cell_group) %>%
- top_n(13, pseudo_R2)
- top_specific_marker_ids <- unique(top_specific_markers %>% pull(gene_id))
- top_specific_marker.int <- plot_genes_by_group(cds,
- top_specific_marker_ids,
- group_cells_by="cell.ident",
- ordering_type="maximal_on_diag",
- max.size=3)
- top_specific_marker.int
- mmp.adam.timp.markers <- DotPlot(AllData.int, features = c("MMP1","MMP2","MMP3", "MMP7",
- "MMP11","MMP12","MMP13","MMP14","MMP15","MMP16",
- "MMP17","MMP19","MMP20", "MMP23B", "MMP24",
- "MMP25","MMP27","MMP28","ADAMTS1","ADAMTS2","ADAMTS3",
- "ADAMTS4","ADAMTS5","ADAMTS6","ADAMTS7","ADAMTS9",
- "ADAMTS10","ADAMTS12","ADAMTS14",
- "ADAMTS17","TIMP1","TIMP2","TIMP3","TNFAIP6")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- mmp.adam.timp.markers
- ggsave("MMP-ADAMTS-TIMP dotplot.png", mmp.adam.timp.markers)
- assort.mark <- DotPlot(AllData.int, features = c("CDKN1A", "CDKN2A", "E2F7","EIF4", "CDC25A","CDC42", "CDKN2D","CDK12", "TNFRSF1B", "TP53", "IFNG","TNF","IL1B", "IL2","IL6","IL10", "CCL2","CCL7", "CXCL1","CXCL5","CXCL9","CXCL10","MCSF", "RANKL","VEGFA", "IL1R2", "CCL6","CCR6","ADAM8", "TLR1", "TLR2","TLR7","TLR9")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- assort.mark
- ggsave("Assorted markers dotplot.png", assort.mark)
- hog <- DotPlot(AllData.int, features = c("KRT8", "KRT18", "MGP","DCN","PRRX1","CRLF1","PDE1A","ABLIM1","HHIP", "HHIPL2","CDON","BOC","SMO")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- hog
- ggsave("Hedgehog dotplot.png",hog, width = 8, height = 7, units = "in")
- #WNT related markers "WNT5B","DVL1","DVL3","LRP5","CTNNB1","GSK3B","CSNK1E","LRP6","SFRP1"
- #assorted differentiation markers - ,"SOX5","SOX6","SOX9", "CHRD","GDF5","GREM1"
- celltype.overview <- DotPlot(AllData.int, features = list(
- "NC" = c("TBXT","KRT8","KRT18","CD24"),
- "Trans" = c("ACAN","OGN","ABLIM1","FOSB","PODN","CCNL1","SOX9","COL11A1","FN1","COL2A1","TIMP3"),
- "NP" = c( "PAX1","COL9A1","SOX5","SOX6","MGP","DCN","LUM"),
- "Pro" = c("TOP2A","CDK1","BIRC5"),
- "EC" = c("PECAM1","ENG", "CDH5"))) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 45, hjust = 1))
- celltype.overview
- ggsave("AllData initial cell overview dotplot.png", celltype.overview)
- dpi.overview <- DotPlot(AllData.int, features = list(
- "Degeneration" = c("COL1A1", "COL3A1", "FN1", "MMP16","ADAMTS6","TIMP1","TIMP3","CHI3L1"),
- "Inflammation" = c("IL1R1","IL6R","IL16","IL18","TNFRSF1B","IER3","HMOX1"),
- "Pain/Innervation" = c("NTN1","NTN4","SEMA3D","SEMA3E","CCN2","TRPV4"))) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 45, hjust = 1))
- dpi.overview
- ggsave("degen pain inflam marker overview dotplot.png", celltype.overview)
- ```
- ```{r}
- DefaultAssay(AllData.int) <- "RNA"
- celltype.overview <- DotPlot(AllData.int, features = c("ACAN", "COL2A1","SOX9","MIA","KRT8","KRT18","SLC2A1", "CD81","FN1","CRTAC1","CALR","COL1A1","COL1A2", "COL5A1","COL5A2","COL12A1","CD14", "TBXT","PECAM1","ENG", "CDH5", "PTPRC","LYZ" )) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- celltype.overview
- #Identification of endothelial cells - Cluster 14
- Endo.clust <- VlnPlot(AllData.int, features = c("ENG", "PECAM1", "CDH5", "ICAM1", "TEK", "KDR"),pt.size = 0)
- Endo.clust
- #notochordal/progenitor cells - Cluster 0,1,3,8,9,11,13-16,18,20, maybe 17
- noto.clust <- VlnPlot(AllData.int, features = c("TBXT","KRT8","KRT18","PDGFRA","PRRX1","PROCR","ANGPT1","PAX1"), pt.size = 0)
- noto.clust
- AllData.int$cell.ident <- as.factor(ifelse(AllData.int$seurat_clusters %in% c("0", "1", "3", "9", "20"), "Notochordal",
- ifelse(AllData.int$seurat_clusters %in% c("2", "4", "5", "6", "7", "12"), "Nucleus Pulposus",
- ifelse(AllData.int$seurat_clusters %in% c("10", "19"), "Fibrocartilage",
- ifelse(AllData.int$seurat_clusters %in% c("11", "13"), "Transitional Fibrocartilage",
- ifelse(AllData.int$seurat_clusters %in% c("8", "14", "15", "16", "18"), "Transitional Nucleus Pulposus",
- ifelse(AllData.int$seurat_clusters == "17", "Immune",
- ifelse(AllData.int$seurat_clusters == "21", "Endothelial", ""))))))))
- AllData.int$cell.state <- as.factor(ifelse(AllData.int$cell.ident %in% c("Notochordal"), "Progenitor",
- ifelse(AllData.int$cell.ident %in% c("Transitional Nucleus Pulposus", "Transitional Fibrocartilage"), "Transitional",
- ifelse(AllData.int$cell.ident %in% c("Nucleus Pulposus", "Fibrocartilage", "Immune", "Endothelial"), "Terminal", NA))))
- ```
- Find and export cluster vs all unique markers
- ```{r Export cluster vs all unique genes for IPA analysis}
- DefaultAssay(AllData.int) <- "RNA"
- top_genes_list <- list()
- # Loop through each cluster, find unique genes, and export to CSV
- for (i in 0:21) {
- cluster_markers <- FindMarkers(AllData.int, ident.1 = i, min.pct = 0.25)
- top_genes <- head(cluster_markers[order(cluster_markers$p_val_adj), ],10)
- top_genes_list[[paste("Cluster", i)]] <- top_genes
- # write.csv(cluster_markers, sprintf("C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Cluster Unique Genes/Cluster%d.csv", i), row.names = TRUE)
- print(paste("File for cluster", i, "written."))
- }
- print(top_genes_list)
- top_gene_names <- unique(unlist(lapply(top_genes_list, rownames)))
- # Remove markers that start with "ENSSS"
- top_gene_names <- top_gene_names[!grepl("^ENSSS", top_gene_names)]
- top5.dot <- DotPlot(AllData.int, features = top_gene_names) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- top5.dot
- ggsave("Top 10 genes dotplot.png", top5.dot, width = 30, height = 7, units = "in")
- ```
- Find and export unique markers between injured vs healthy discs
- ```{r Export inj vs ctr unique markers for IPA analysis}
- Idents(AllData.int) <- AllData.int$disc.ident
- # Find markers between groups
- InjVCtr <- FindMarkers(AllData.int, ident.1 = "injured", ident.2 = "healthy", min.pct = 0.25)
- # Print the top 10 markers
- head(InjVCtr, n = 10)
- # Write the markers to a CSV file
- write.csv(InjVCtr, file = "C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Cluster Unique Genes/Inj_Vs_Ctr_markers.csv", row.names = TRUE)
- ```
- ```{r NP-FC-Transitional Clusters comparison}
- Idents(AllData.int) <- AllData.int$seurat_clusters
- # Define the subset of clusters to process
- clusters_to_process <- c(2, 4:8, 10:16, 18:19)
- # Loop through each specified cluster
- for (i in clusters_to_process) {
- # Find markers in the current cluster compared to all other clusters in the subset
- cluster_markers <- FindMarkers(AllData.int, ident.1 = i, ident.2 = clusters_to_process[clusters_to_process != i], min.pct = 0.25)
- # Construct the file path using sprintf for organized file naming
- file_path <- sprintf("C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/NP-FC-Transitional Clusters/Cluster%d.csv", i)
- # Write the result to a CSV file
- write.csv(cluster_markers, file_path, row.names = TRUE)
- # Print message after writing the file
- print(paste("File for cluster", i, "written."))
- }
- ```
- ```{r NP-FC cluster comparison}
- Idents(AllData.int) <- AllData.int$seurat_clusters
- # Define the subset of clusters to process
- clusters_to_process <- c(2, 4:7, 10,12)
- # Loop through each specified cluster
- for (i in clusters_to_process) {
- # Find markers in the current cluster compared to all other clusters in the subset
- cluster_markers <- FindMarkers(AllData.int, ident.1 = i, ident.2 = clusters_to_process[clusters_to_process != i], min.pct = 0.25)
- # Construct the file path using sprintf for organized file naming
- file_path <- sprintf("C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/NP-FC Clusters/Cluster%d.csv", i)
- # Write the result to a CSV file
- write.csv(cluster_markers, file_path, row.names = TRUE)
- # Print message after writing the file
- print(paste("File for cluster", i, "written."))
- }
- ```
- ```{r Notochordal cluster comparison}
- Idents(AllData.int) <- AllData.int$seurat_clusters
- # Define the subset of clusters to process
- clusters_to_process <- c(0, 1, 3, 8, 9, 11, 14:16, 18, 20)
- # Loop through each specified cluster
- for (i in clusters_to_process) {
- # Find markers in the current cluster compared to all other clusters in the subset
- cluster_markers <- FindMarkers(AllData.int, ident.1 = i, ident.2 = clusters_to_process[clusters_to_process != i], min.pct = 0.25)
- # Construct the file path using sprintf for organized file naming
- file_path <- sprintf("C:/Users/gkane/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Notochordal Clusters/Cluster%d.csv", i)
- # Write the result to a CSV file
- write.csv(cluster_markers, file_path, row.names = TRUE)
- # Print message after writing the file
- print(paste("File for cluster", i, "written."))
- }
- ```
- ```{r Cell type comparison}
- Idents(AllData.int) <- AllData.int$cell.ident
- # Define the subset of clusters to process
- ident_to_process <- c("Notochordal","Fibrocartilage", "Transitional Fibrocartilage","Transitional Nucleus Pulposus","Endothelial","Immune","Nucleus Pulposus")
- # Loop through each specified cluster
- for (i in ident_to_process) {
- # Find markers in the current cluster compared to all other clusters in the subset
- ident_markers <- FindMarkers(AllData.int, ident.1 = i, ident.2 = ident_to_process[ident_to_process != i], min.pct = 0.25)
- # Construct the file path using sprintf for organized file naming
- file_path <- sprintf("C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Comparison by cell type/%s.csv", i)
- # Write the result to a CSV file
- write.csv(ident_markers, file_path, row.names = TRUE)
- # Print message after writing the file
- print(paste("File for ident", i, "written."))
- }
- marker_test_res <- top_markers(cds, group_cells_by="cell.ident", reference_cells=1000, cores=8)
- top_specific_markers <- marker_test_res %>%
- filter(fraction_expressing >= 0.5) %>%
- group_by(cell_group) %>%
- top_n(10, pseudo_R2)
- top_specific_marker_ids <- unique(top_specific_markers %>% pull(gene_id))
- top_specific_marker.int <- plot_genes_by_group(cds,
- top_specific_marker_ids,
- group_cells_by="cell.ident",
- ordering_type="maximal_on_diag",
- max.size=3)
- top_specific_marker.int
- ```
- ```{r Problem vs non-problem children}
- #all clusters with > 65% of one disc type will be classificed as that disc, clusters will 50/50 to 65/40 splits will be considered mixed.
- AllData.int$disc.prop <- as.factor(ifelse(AllData.int$seurat_clusters %in% c("0", "1", "3", "9", "11", "13", "14" ,"15","16","17","18","20"), "Healthy",
- ifelse(AllData.int$seurat_clusters %in% c("2", "4", "5", "6", "8","9", "12","19"), "Injured",
- ifelse(AllData.int$seurat_clusters %in% c("7","10","21"), "Mixed",""))))
- Idents(AllData.int) <- AllData.int$disc.prop
- # Find markers between groups
- comp <- FindMarkers(AllData.int, ident.1 = "Injured", ident.2 = "Healthy", min.pct = 0.25)
- # Write the markers to a CSV file
- write.csv(comp, file = "C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Inj Vs Ctr cluster comparison.csv", row.names = TRUE)
- DotPlot(AllData.int, features = features_to_plot) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu")))+
- theme(axis.text.x = element_text(angle = 90, hjust = 1))
- Idents(AllData.int) <- AllData.int$seurat_clusters
- ```
- ```{r problem children comparison}
- Idents(AllData.int) <- AllData.int$seurat_clusters
- # Define the subset of clusters to process
- clusters_to_process <- c("2", "4", "5", "6", "7", "10", "12")
- # Loop through each specified cluster
- for (i in clusters_to_process) {
- # Find markers in the current cluster compared to all other clusters in the subset
- cluster_markers <- FindMarkers(AllData.int, ident.1 = i, ident.2 = clusters_to_process[clusters_to_process != i], min.pct = 0.25)
- # Construct the file path using sprintf for organized file naming
- file_path <- sprintf("C:/Users/kanedag/Box/Box - Sheyn Lab/Projects/Ongoing projects/Porcine IVD/Data/scRNA Seq/RStudio and Seurat Analysis/3. Data Visualization via Seurat/Problem Children Comparison/Cluster%s.csv", i)
- # Write the result to a CSV file
- write.csv(cluster_markers, file_path, row.names = TRUE)
- # Print message after writing the file
- print(paste("File for cluster", i, "written."))
- }
- ```
- ```{r}
- DefaultAssay(AllData.int) <- "RNA"
- # Define gene lists (adjust if you already have them stored)
- EXO <- c("TSG101","PDCD6IP","VPS4A","VPS4B","CHMP2A","CHMP2B","CHMP4A","CHMP4B",
- "CHMP1A","CHMP1B","IST1","HGS","STAM","STAM2","RAB27A","RAB27B","RAB35",
- "RAB11A","RAB11B","ARF6","VAMP7","VAMP8","SNAP23","SYTL4","ANXA1","ANXA2",
- "CD9","CD63","CD81")
- CONST <- c("SAR1A","SAR1B","SEC23A","SEC23B","SEC24A","SEC24B","SEC24C","SEC24D",
- "SEC13","SEC31A","SEC31B","ARF1","GBF1","COPA","COPB1","COPB2","COPG1",
- "COPG2","COPZ1","COPZ2","SEC61A1","SEC61B","SSR1","HSPA5","DNAJB11",
- "STX3","STX4","VAMP3","VAMP8","SNAP23")
- CAV <- c("CAV1","CAV2","CAVIN1","CAVIN2","CAVIN3","EHD2")
- REG <- c("RAB3A","RAB3B","RAB3C","RAB3D","SYT1","SYT7","CPLX1","CPLX2","STX1A",
- "VAMP2","SNAP25")
- # Add module scores with unique names
- AllData.int <- AddModuleScore(AllData.int, features = list(EXO), name = "EXOscore")
- AllData.int <- AddModuleScore(AllData.int, features = list(CONST), name = "CONSTscore")
- AllData.int <- AddModuleScore(AllData.int, features = list(CAV), name = "CAVscore")
- AllData.int <- AddModuleScore(AllData.int, features = list(REG), name = "REGscore")
- # Create composite AltTraffickingScore
- AllData.int$AltTraffickingScore <-
- AllData.int$EXOscore1 + AllData.int$CONSTscore1 -
- AllData.int$CAVscore1 - AllData.int$REGscore1
- #Cell communication style by cluster
- scores <- FetchData(AllData.int, vars = c("seurat_clusters",
- "EXOscore1","CONSTscore1","CAVscore1","REGscore1","AltTraffickingScore"))
- avg_scores <- scores %>%
- group_by(seurat_clusters) %>%
- summarise(across(everything(), mean, na.rm = TRUE))
- avg_scores_long <- tidyr::pivot_longer(avg_scores,
- cols = -seurat_clusters,
- names_to = "ScoreType",
- values_to = "MeanScore")
- ggplot(avg_scores_long, aes(x = seurat_clusters, y = MeanScore, fill = ScoreType)) +
- geom_bar(stat="identity", position="dodge") +
- theme_classic() +
- theme(axis.text.x = element_text(angle=45, hjust=1)) +
- ylab("Average module score") +
- xlab("Cluster")
- #Cell communication style by cell type
- scores <- FetchData(AllData.int, vars = c("cell.ident",
- "EXOscore1","CONSTscore1","CAVscore1","REGscore1","AltTraffickingScore"))
- avg_scores <- scores %>%
- group_by(cell.ident) %>%
- summarise(across(everything(), mean, na.rm = TRUE))
- avg_scores_long <- tidyr::pivot_longer(avg_scores,
- cols = -cell.ident,
- names_to = "ScoreType",
- values_to = "MeanScore")
- ggplot(avg_scores_long, aes(x = cell.ident, y = MeanScore, fill = ScoreType)) +
- geom_bar(stat="identity", position="dodge") +
- theme_classic() +
- theme(axis.text.x = element_text(angle=45, hjust=1)) +
- ylab("Average module score") +
- xlab("Cluster")
- #Cell communication style by select cell type
- # Pick the identities you care about
- selected_idents <- c("Notochordal","Transitional Nucleus Pulposus","Nucleus Pulposus")
- scores <- FetchData(AllData.int, vars = c("cell.ident",
- "EXOscore1","CONSTscore1","CAVscore1","REGscore1","AltTraffickingScore")) %>%
- filter(cell.ident %in% selected_idents)
- avg_scores <- scores %>%
- group_by(cell.ident) %>%
- summarise(across(everything(), mean, na.rm = TRUE), .groups="drop")
- avg_scores_long <- pivot_longer(avg_scores,
- cols = -cell.ident,
- names_to = "ScoreType",
- values_to = "MeanScore")
- ggplot(avg_scores_long, aes(x = cell.ident, y = MeanScore, fill = ScoreType)) +
- geom_bar(stat="identity", position="dodge") +
- theme_classic() +
- theme(axis.text.x = element_text(angle=45, hjust=1)) +
- ylab("Average module score") +
- xlab("Cell identity")
- ```
- ```{r}
- NC <- DotPlot(AllData.int, features = c("TBXT","KRT8", "KRT18", "KRT19", "CD24","LGALS3","CAV1","SHH", "NOTO", "FOXA2","FOXJ1", "CHRD","NOG")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu"))) +
- theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
- labs(title = "Notochordal Marker Expression")
- NC
- # NP marker plot (bottom)
- NP <- DotPlot(AllData.int, features = c("ACAN", "COL2A1","COL3A1","COL6A1","COL9A1", "COL11A1", "DCN","MGP","COMP","TRPV4","SERPINE2","TIMP1","TIMP3", "PAX1", "SOX5", "SOX6")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu"))) +
- theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
- labs(title = "NP Marker Expression")
- NP
- NC + NP
- DotPlot(AllData.int, features = c("PECAM1", "VWF", "CDH5", "KDR", "FLT1", "ENG", "ESAM", "PLVAP", "CD34", "MCAM", "CLDN5", "TEK", "FABP4")) +
- scale_color_gradientn(colors = rev(brewer.pal(11, "RdBu"))) +
- theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
- labs(title = "Endothelial Cell Marker Expression")
- ```
2. Data Visualization with Seurat Script.qmd at commit d8bb4fc, no license · at the source
Overview
- Orthopaedic Stem Cell Research Laboratory, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Board of Governors Regenerative Medicine Institute, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Department of Biomedical Sciences, Cedars‐Sinai Medical Center, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Biomedical Imaging Research Institute, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Department of Bioengineering, University of California, Los Angeles, California, USA
- Department of Orthopaedics, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Department of Surgery, Cedars‐Sinai Medical Center, Los Angeles, California, USA
- Department of Emergency Medicine, Emory University, Atlanta, Georgia, USA
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 2 matches between paragraphs and lines of code.
gkaneda/Pig-IVD-Scripts
d8bb4fc3c123dbf52a58d68bb08b9507839af1f9, 18 September 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
4 files
- 1. Raw File Upload and Processing.QMD, Quarto, 188 lines
- 2. Data Visualization with Seurat Script.qmd, Quarto, 612 lines, 1 match
- 3. Psudotime Analysis Script.qmd, Quarto, 220 lines, 1 match
- 4. CellChat Script.qmd, Quarto, 477 lines
The paper's code and data availability statement is in the Data section.
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;
- 4 scripts, each with its path and the digest of its content;
- 2 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
Datasets cited
- geo:GSE308921, at NCBI GEO; found in “Data Availability Statement”
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: NCBI GEO GSE308921
- it points to the authors' code: gkaneda/
Pig-IVD-Scripts
Read it in the paper: doi.org/10.1002/jsp2.70200.
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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 15 authors, 7 keywords, 2 funders, 127 references.
Cite
This paper
Kaneda, G., Wechsler, J. T., Chavez, M., Sheyn, J., Cheema, K., Shen, C., Rigo De Righi, D., Wang, L., Hsu, Y., Avalos, P., Xie, Y., Tawackoli, W., Floyd, C., Li, D., & Sheyn, D. (2026). A Porcine Model of Intervertebral Disc Injury Recapitulates Human Discogenic Pain Via Notochordal Cell Loss and Pain-Inducing Nucleus Pulposus Cell Emergence. JOR spine, 9(3), e70200. https://
BibTeX
@article{kaneda2026porci
author = {Kaneda, Giselle and Wechsler, Jacob T and Chavez, Melissa and Sheyn, Julia and Cheema, Karandeep and Shen, Chushu and Rigo De Righi, Dante and Wang, Lixia and Hsu, Yin‐Chen and Avalos, Pablo and Xie, Yibin and Tawackoli, Wafa and Floyd, Candace and Li, Debiao and Sheyn, Dmitriy},
title = {{A Porcine Model of Intervertebral Disc Injury Recapitulates Human Discogenic Pain Via Notochordal Cell Loss and Pain-Inducing Nucleus Pulposus Cell Emergence}},
journal = {JOR spine},
year = {2026},
month = jul,
volume = {9},
number = {3},
pages = {e70200},
publisher = {Wiley},
issn = {2572-1143},
doi = {10.1002/
url = {https://
pmid = {42428568},
pmcid = {PMC13347629}
}
RIS
TY - JOUR
AU - Kaneda, Giselle
AU - Wechsler, Jacob T
AU - Chavez, Melissa
AU - Sheyn, Julia
AU - Cheema, Karandeep
AU - Shen, Chushu
AU - Rigo De Righi, Dante
AU - Wang, Lixia
AU - Hsu, Yin‐Chen
AU - Avalos, Pablo
AU - Xie, Yibin
AU - Tawackoli, Wafa
AU - Floyd, Candace
AU - Li, Debiao
AU - Sheyn, Dmitriy
TI - A Porcine Model of Intervertebral Disc Injury Recapitulates Human Discogenic Pain Via Notochordal Cell Loss and Pain-Inducing Nucleus Pulposus Cell Emergence
T2 - JOR spine
J2 - JOR Spine
PY - 2026
DA - 2026/
VL - 9
IS - 3
SP - e70200
SN - 2572-1143
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "A Porcine Model of Intervertebral Disc Injury Recapitulates Human Discogenic Pain Via Notochordal Cell Loss and Pain-Inducing Nucleus Pulposus Cell Emergence",
"container-title": "JOR spine",
"author": [
{
"family": "Kaneda",
"given": "Giselle"
},
{
"family": "Wechsler",
"given": "Jacob T"
},
{
"family": "Chavez",
"given": "Melissa"
},
{
"family": "Sheyn",
"given": "Julia"
},
{
"family": "Cheema",
"given": "Karandeep"
},
{
"family": "Shen",
"given": "Chushu"
},
{
"family": "Rigo De Righi",
"given": "Dante"
},
{
"family": "Wang",
"given": "Lixia"
},
{
"family": "Hsu",
"given": "Yin‐Chen"
},
{
"family": "Avalos",
"given": "Pablo"
},
{
"family": "Xie",
"given": "Yibin"
},
{
"family": "Tawackoli",
"given": "Wafa"
},
{
"family": "Floyd",
"given": "Candace"
},
{
"family": "Li",
"given": "Debiao"
},
{
"family": "Sheyn",
"given": "Dmitriy"
}
],
"container-title-short":
"volume": "9",
"issue": "3",
"page": "e70200",
"DOI": "10.1002/
"PMID": "42428568",
"PMCID": "PMC13347629",
"ISSN": "2572-1143",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
9
]
]
}
}
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/ijms27104466 [code]
- Uncovering the Key Circuit FOSL2/
FOS/ EGR3/ EGR1, Contributing to the Hyperexcitability of Excitatory Neurons in the Epileptic Temporal Cortex and Hippocampus. Journal: International journal of molecular sciencesIn common: Monocle 3, reticulate, igraph, 6 other tools, genetics / omics, 1 reference - [2] doi:10.1186/s12967-026-08266-z [code]
- Single-cell multi-omic integration analysis prioritizes druggable genes and reveals cell-type-specific causal effects in glioblastomagenesis.Journal: Journal of translational medicineIn common: Monocle 3, reticulate, igraph, 5 other tools, genetics / omics, cellular / molecular, 2 references
- [3] doi:10.1038/s41593-026-02367-0 [code]
- A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.Journal: Nature neuroscienceIn common: Monocle 3, reticulate, igraph, 6 other tools, cellular / molecular, 1 reference
- [4] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Monocle 3, reticulate, igraph, 6 other tools, cellular / molecular
- [5] doi:10.1038/s41588-026-02737-1 [code]
- Human and mouse adrenal glands are characterized by species-specific steroidogenic states and tissue turnover.Journal: Nature geneticsIn common: Monocle 3, igraph, ComplexHeatmap, 5 other tools, genetics / omics, cellular / molecular, 1 reference
- [6] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Monocle 3, igraph, ComplexHeatmap, 5 other tools, genetics / omics, cellular / molecular, 1 reference
- [7] doi:10.1002/imt2.70163 [code]
- Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.Journal: iMetaIn common: Monocle 3, igraph, ComplexHeatmap, 5 other tools, genetics / omics, cellular / molecular, 1 reference
- [8] doi:10.1038/s41467-026-76675-1 [code]
- Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.Journal: Nature communicationsIn common: Monocle 3, reticulate, igraph, 5 other tools, genetics / omics, 1 reference
- [9] doi:10.1186/s13059-026-04177-w [code]
- Genomic sequence evolution underlying human neocortical interareal diversification.Journal: Genome biologyIn common: Monocle 3, reticulate, igraph, 5 other tools, genetics / omics, cellular / molecular
- [10] doi:10.1016/j.stemcr.2026.102997 [code]
- BDNF regulates pituitary stem cell engagement toward precursor state.Journal: Stem cell reportsIn common: reticulate, igraph, ComplexHeatmap, 4 other tools, cellular / molecular, 3 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 4 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:d1c900cf087ded79…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
