OSCR

Gene expression dynamics of human and mouse craniofacial development at the single-cell level.

Code ↔ Paper

38 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.

The 38 matches
  1. [1] § Methods › Processing of snRNA and identification of major cell types ↔ old/main_figures.R, lines 171–230 · score 0.98 · sex determination genes, DDX3Y, KDM5D, NLGN4Y, logfc.threshold, min.cells.feature
  2. [2] § Results › Single nuclei gene-expression atlas of the developing human face ↔ clustering/human/Craniofacial-scRNAseq-manuscript-Rmarkdown.Rmd, lines 1777–1783 · score 0.93 · malar flattening, neural crest tumors, Epidermolysis Bullosa, brain tumors, Palate fistula, cleft palate
  3. [3] § Methods › Processing of snRNA and identification of major cell types ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 395–469 · score 0.91 · logfc.threshold, min.cells.feature, min.pct, return.thresh, G2M score, FindAllMarkers
  4. [4] § Results › Characterization of human mesenchymal cell subtypes ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 344–393 · score 0.85 · palatalShelf2, pLNP2, palatal.fusion, muscle.mes, palatal shelf1, fusion.mes2
  5. [5] § Results › Characterization of human mesenchymal cell subtypes ↔ old/02_annotate_mes_ect_subtypes.R, lines 190–240 · score 0.84 · palatalShelf2, pLNP2, palatal.fusion, muscle.mes, palatal shelf1, fusion.mes2
  6. [6] § Results › Conservation of cell types in craniofacial development ↔ main figures/spatial_expression.R, lines 416–463 · score 0.81 · NR2F2, NR2F1, Tfap2b, Tfap2a, human CNCC subtypes, SOX5
  7. [7] § Methods › Gene list enrichments per cell type ↔ magma_celltyping/ewce_analysis.R, lines 292–339 · score 0.79 · oneClosest, geneSizeControl, bootstrap enrichment, HARs, EWCE, Neanderthal
  8. [8] § Methods › Processing of spatial transcriptomics ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 50–124 · score 0.78 · FindVariableFeatures, FindTransferAnchors, TransferData, log normalization, subtype annotations, cca
  9. [9] § Methods › Processing of spatial transcriptomics ↔ main figures/spatial_expression.R, lines 65–152 · score 0.74 · SCTransform, SpatialFeaturePlot, FindAllMarkers, variable features, Harmony, resolution
  10. [10] § Results › Conservation of cell types in craniofacial development ↔ old/mouse_figures.R, lines 672–736 · score 0.71 · NR2F2, NR2F1, Tfap2b, Tfap2a, SOX5, Foxd3
  11. [11] § Results › Characterization of human mesenchymal cell subtypes ↔ old/02_annotate_mes_ect_subtypes.R, lines 190–240 · score 0.69 · palatalShelf1, palatalShelf2, fusion.mes2, Chondrodysplasia, osteoblasts, mandibulararch
  12. [12] § Results › Characterization of putative human cranial neural crest ↔ main figures/spatial_expression.R, lines 416–463 · score 0.69 · NR2F2, NR2F1, Tfap2b, Tfap2a, SOX9, CNCC subtypes
  13. [13] § Results › Characterization of human mesenchymal cell subtypes ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 344–393 · score 0.69 · palatalShelf1, palatalShelf2, fusion.mes2, Chondrodysplasia, osteoblasts, mandibulararch
  14. [14] § Methods › Marker gene comparisons across species ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 1–48 · score 0.69 · convert_orthologs, non121_strategy, HGNC symbol, gprofiler, orthogene, species
  15. [15] § Methods › Subclustering of major cell types ↔ clustering/human/Ectoderm_subclustering_and_annotation.Rmd, lines 337–355 · score 0.68 · FindTransferAnchors, log normalization, transfer mouse, rpca, orthogene, Predicted
  16. [16] § Methods › Subclustering of major cell types ↔ clustering/human/Mesenchyme_subclustering_and_annotation.Rmd, lines 477–496 · score 0.68 · FindTransferAnchors, log normalization, transfer mouse, rpca, orthogene, Predicted
  17. [17] § Methods › Marker gene comparisons across species ↔ main figures/Species_Comparison.Rmd, lines 914–942 · score 0.68 · convert_orthologs, non121_strategy, HGNC symbol, species, orthogene, Conserved
  18. [18] § Results › Characterization of human mesenchymal cell subtypes ↔ clustering/mouse/Mouse_Spatial_Expression.Rmd, lines 766–797 · score 0.68 · MxP2, palatal shelf, fusion.mes2, mouse spatial, LNP, cluster
  19. [19] § Results › Cell type specific contributions to craniofacial phenotypes ↔ old/magma_celltyping_finngen.R, lines 542–590 · score 0.67 · LVOTO Narrow, Cleft Lip, Cleft Palate, tongue, tract, heart
  20. [20] § Methods › Subclustering of major cell types ↔ clustering/mouse/Mouse_Spatial_Expression.Rmd, lines 681–733 · score 0.67 · neural stem, early.CNCC, int.CNCC, Schwann, mesenchymal, clusters
  21. [21] § Results › Cell type specific contributions to craniofacial phenotypes ↔ magma_celltyping/Magma_Celltyping.R, lines 581–649 · score 0.65 · lip thickness, brow, chin, jaw, protrusion, nostril
  22. [22] § Results › Cell type specific contributions to craniofacial phenotypes ↔ old/magma_celltyping_finngen.R, lines 592–641 · score 0.65 · lip thickness, brow, chin, jaw, protrusion, nostril
  23. [23] § Results › Cell type specific contributions to craniofacial phenotypes ↔ main figures/Spatial_Expression.Rmd, lines 159–180 · score 0.65 · LVOTO Narrow, gsMap, CS13 human, B4GALNT3, trait, mapping
  24. [24] § Methods › Single-nucleus multiomics ↔ clustering/human/Craniofacial-scRNAseq-manuscript-Rmarkdown.Rmd, lines 45–68 · score 0.65 · CellRanger ARC, identify cell, CS16, CS14, CS12, CS17
  25. [25] § Methods › Subclustering of major cell types ↔ clustering/mouse/mouse_ect_mes_subclustering.R, lines 473–494 · score 0.64 · scToppR, toppFun, ToppGene, subclustering, mouse, ectodermal
  26. [26] § Methods › Phenotype-cell type association tests ↔ main figures/phenomix_analysis.R, lines 28–86 · score 0.62 · MSTExplorer, run_phenomix, HPO, phenotypes, EWCE, CellTypeData
  27. [27] § Methods › Processing of snRNA and identification of major cell types › RNA velocity analyses ↔ clustering/mouse/Mouse_clustering_and_annotation.Rmd, lines 21–78 · score 0.59 · Read10X_h5, mouse cluster, e13, Seurat, e10, e15
  28. [28] § Results › Characterization of putative human cranial neural crest ↔ clustering/mouse/Mouse_SOX2-_SOX10+_subclustering_and_annotation.Rmd, lines 442–496 · score 0.58 · early.CNCC, int.CNCC, melanocyte, CNCC subtypes, sensory, Schwann
  29. [29] § Results › Characterization of human ectodermal cell subtypes ↔ old/02_subclustering_and_annotation.R, lines 84–125 · score 0.57 · fusion.zone, ectodermal subtypes, thyroid, periderm, auditory, pituitary
  30. [30] § Methods › Facial variation and congenital abnormality GWAS enrichments ↔ magma_celltyping/Magma_Celltyping.R, lines 1747–1807 · score 0.57 · facial variation, MAGMA.Celltyping, linear, kb, trait, seq
  31. [31] § Results › Single nuclei gene-expression atlas of the developing human face ↔ clustering/human/Craniofacial-scRNAseq-manuscript-Rmarkdown.Rmd, lines 1057–1085 · score 0.57 · CD86, FLT1, MYH3, MYOG, PAX6, RHAG
  32. [32] § Results › Cell type specific contributions to craniofacial phenotypes ↔ main figures/Spatial_Expression.Rmd, lines 99–122 · score 0.55 · gsMap, Cleft Lip, Cleft Palate, MAB21L1, traits, CS13
  33. [33] § Results › Cell type specific contributions to craniofacial phenotypes ↔ magma_celltyping/FinnGen/retrieve_studies.sh, lines 1–60 · score 0.55 · musculoskeletal system, nervous system, growth, neck, eye, abnormality
  34. [34] § Results › Cell type specific contributions to craniofacial phenotypes ↔ old/magma_celltyping_finngen.R, lines 542–590 · score 0.55 · musculoskeletal system, nervous system, growth, neck, eye, abnormality
  35. [35] § Results › Characterization of putative human cranial neural crest ↔ old/mouse_spatial_plots.R, lines 95–164 · score 0.53 · Tfap2b, Tfap2a, HAND2, ALX4, module scores, PAX3
  36. [36] § Results › Characterization of putative human cranial neural crest ↔ clustering/mouse/Mouse_Spatial_Expression.Rmd, lines 681–733 · score 0.52 · Early CNCCs, ncl4, ncl2, ncl3, ncl1, melanocytes
  37. [37] § Methods › Spatial GWAS enrichments ↔ main figures/Spatial_Expression.Rmd, lines 99–122 · score 0.51 · gsMap, SpatialFeaturePlot, traits, CS13, mapped, score
  38. [38] § Results › Cell type specific contributions to craniofacial phenotypes ↔ main figures/phenomix_analysis.R, lines 28–86 · score 0.51 · MSTExplorer, run_phenomix, HPO, phenotypes, magma, abnormalities

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

R · 581 lines · 30 KB · CC0-1.0 · 6 matches

  1. library(scToppR)
  2. library(Seurat)
  3. library(tidyverse)
  4. library(harmony)
  5. library(patchwork)
  6. library(openxlsx)
  7. library(orthogene)
  8. # Mouse ectoderm and mesenchyme subclustering
  9. #subset E11 matching TW E11 data
  10. setwd("/scr1/users/manchela/Data")
  11. cds <- readRDS("face_mouse_final.rds")
  12. Idents(cds) <- "stage"
  13. E11 <- subset(cds, idents = "E11")
  14. Idents(E11) <- "cell_type"
  15. require(biomaRt)
  16. mart_m <- useMart("ENSEMBL_MART_ENSEMBL", host = "useast.ensembl.org")
  17. mart_m <- useDataset("mmusculus_gene_ensembl", mart_m)
  18. mGenes <- getBM(
  19. mart = mart_m,
  20. attributes = c(
  21. "mgi_symbol","description",
  22. "entrezgene_id",
  23. "ensembl_gene_id",
  24. "gene_biotype"),
  25. filter = "mgi_symbol",
  26. values = rownames(cds),
  27. uniqueRows=TRUE)
  28. tf_table <- read.table("human_tf_Lambertetal_PMID29425488.txt",sep="\t",header = T)
  29. mart <- useMart("ENSEMBL_MART_ENSEMBL") #, host = "https://useast.ensembl.org")
  30. mart <- useDataset("hsapiens_gene_ensembl", mart)
  31. annotLookup <- getBM(
  32. mart = mart,
  33. attributes = c(
  34. "hgnc_symbol","description",
  35. "entrezgene_id","ensembl_gene_id",
  36. "gene_biotype"),
  37. filter = "ensembl_gene_id",
  38. values = tf_table$Human_TF,
  39. uniqueRows=TRUE)
  40. annotLookup_ortho_one2one <- orthogene::convert_orthologs(unique(annotLookup$hgnc_symbol),input_species="human",output_species = "mouse",
  41. non121_strategy = "drop_both_species", method="gprofiler")
  42. annotLookup$mgi_symbol <- rownames(annotLookup_ortho_one2one)[match(annotLookup$hgnc_symbol,annotLookup_ortho_one2one$input_gene)]
  43. mGenes$TF <- "No"
  44. mGenes$TF[which(mGenes$mgi_symbol%in%na.omit(annotLookup$mgi_symbol))] <- "Yes"
  45. ### MESENCHYME ###
  46. #subset E11 mesenchyme and transfer subtype annotation from TW
  47. mes <- subset(E11, idents = "mesenchyme")
  48. TW_mes <- readRDS("/Volumes/Extreme SSD/Mouse_cellranger/figures_all/TW/mm.rds")
  49. anchors <- FindTransferAnchors(reference = TW_mes, query = mes, reduction = 'cca', normalization.method = "LogNormalize", dims = 1:30)
  50. predicted.id <- TransferData(anchorset = anchors, refdata = TW_mes$RNA_snn_res.1, weight.reduction = mes[['harmony']],dims = 1:30)
  51. mes$cellType1 <- predicted.id$predicted.id
  52. predicted.id <- TransferData(anchorset = anchors, refdata = TW_mes$cellType2, weight.reduction = mes[['harmony']],dims = 1:30)
  53. mes$cellType2 <- predicted.id$predicted.id
  54. DimPlot(mes, group.by = "cellType2")
  55. #pre-processing
  56. mes <- NormalizeData(mes) %>%
  57. FindVariableFeatures() %>%
  58. ScaleData(vars.to.regress = c("S.Score", "G2M.Score")) %>%
  59. RunPCA(verbose = FALSE) %>%
  60. RunHarmony(group.by.vars = "orig.ident")
  61. mes <- RunUMAP(mes, reduction = "harmony", dims = 1:30, min.dist = 0.3) %>%
  62. FindNeighbors(reduction = "harmony", dims = 1:30, verbose = FALSE) %>%
  63. FindClusters(resolution = c(0.1,0.2,0.4,0.6,0.8,1), verbose = FALSE)
  64. Idents(mes) <- "RNA_snn_res.0.8"
  65. #plotting
  66. library(clustree)
  67. p4 <- clustree(mes, prefix = "RNA_snn_res.")
  68. p1 <- DimPlot(mes, label = T)+NoAxes()+NoLegend()
  69. p2 <- DimPlot(mes, group.by = "cellType2")+NoAxes()
  70. p3 <- DimPlot(mes,split.by = "stage",label = T)+NoAxes()+NoLegend()
  71. pdf("figures/mes_E11_TWtransferID.pdf",width = 16,height = 8)
  72. p1+p2
  73. p4
  74. dev.off()
  75. # find markers
  76. sig_genes <- FindAllMarkers(mes, assay = "RNA" ,logfc.threshold = 0.25, test.use = "wilcox", min.pct = 0.1,
  77. min.diff.pct = -Inf, node = NULL, verbose = TRUE,
  78. only.pos = TRUE, max.cells.per.ident = Inf, random.seed = 1,
  79. latent.vars = NULL, min.cells.feature = 3, min.cells.group = 3,
  80. pseudocount.use = 1, return.thresh = 0.01)
  81. sig_genes <- mutate(sig_genes,pct.diff=pct.1-pct.2)
  82. sig_genes$TF <- "no"
  83. id <- intersect(mGenes$mgi_symbol,sig_genes$gene)
  84. x <- sig_genes[sig_genes$gene %in% id,]
  85. sig_genes$TF[sig_genes$gene %in% id] <- mGenes$TF[match(x$gene,mGenes$mgi_symbol)]
  86. sig_genes$Entrez <- mGenes$entrezgene_id[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  87. sig_genes$description <- mGenes$description[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  88. sig_genes <- sig_genes[, c("gene","TF","Entrez","description","p_val_adj","avg_log2FC","pct.1","pct.2","pct.diff","cluster")]
  89. head(sig_genes)
  90. #remove "Rik" and "Gm" genes from markers lists
  91. RikFeatures <- grep("Rik",rownames(count))
  92. GmFeatures <- grep("Gm",rownames(count))
  93. count1 <- count[-RikFeatures,]
  94. count1 <- count1[-GmFeatures,]
  95. sig_genes2 <- filter(sig_genes, gene %in% row.names(count1))
  96. top <- sig_genes2 %>% group_by(cluster) %>% top_n(5, avg_log2FC) #%>% top_n(5, pct.diff);top
  97. p <- DotPlot(object = mes, features = unique(top$gene))+ coord_flip()+ RotatedAxis()
  98. df <- data.frame(Gene = p$data$features.plot, avg.exp = p$data$avg.exp.scaled, pct.exp = p$data$pct.exp, cluster = p$data$id)
  99. p2 <- df %>%
  100. filter(avg.exp > 0, pct.exp > 1) %>%
  101. ggplot(aes(x=cluster, y = Gene, color = avg.exp, size = pct.exp)) +
  102. geom_point() +
  103. scale_color_viridis_c() +
  104. cowplot::theme_cowplot() +
  105. theme(axis.line = element_blank()) +
  106. theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
  107. ylab('') + xlab("")+
  108. theme(axis.ticks = element_blank())
  109. p2
  110. heatmap(table(mes$cellType1, mes$RNA_snn_res.0.8))
  111. mes <- RenameIdents(mes,c("0"="surface.fusion","1"="pLNP1","2"="palatal shelf1","3"="pLNP2","4"="chondroprogenitors",
  112. "5"="palatal shelf2","6"="MxP1","7"="MxP2","8"="MxP.aLNP","9"="ambiguous","10"="fusion.mes2",
  113. "11"="surface.mes","12"="palatal.fusion","13"="aLNP","14"="hrmn","15"="oxy","16"="cyc"))
  114. #use scToppR for validating annotations
  115. setwd("/scr1/users/manchela/Data")
  116. mes_degs <- openxlsx::read.xlsx("Craniofacial-scRNAseqManuscript/final-tables/Mouse_SigGenes_mes_SubTypes.xlsx")
  117. mes_toppData <- toppFun(mes_degs,
  118. gene_col = "gene",
  119. cluster_col = "cluster",
  120. p_val_col = "p_val_adj",
  121. logFC_col = "avg_log2FC")
  122. head(mes_toppData)
  123. p <- toppBalloon(mes_toppData,
  124. categories = "MousePheno",x_axis_text_size = 10) + coord_flip() +
  125. viridis::scale_color_viridis(option = "C",direction=-1) +
  126. ggtitle("Mouse Mesenchyme Subtypes: Mouse Phenotype ToppGene") +
  127. theme(panel.border = element_rect(color = "black", fill = NA, linewidth = 0.5),
  128. axis.text = element_text(color="black"),
  129. plot.title = element_text(color="black",size=14,hjust=0.5))
  130. pdf("Craniofacial-scRNAseqManuscript/final-figs/Mouse_mes_subtypes_scToppR_baloonplot.pdf",height=14,width=8.5)
  131. p
  132. dev.off()
  133. # functional annotation
  134. mmes1 <- readRDS("mmes1_final.rds")
  135. mart <- useMart("ENSEMBL_MART_ENSEMBL")#, host = "https://asia.ensembl.org")
  136. mart <- useDataset("hsapiens_gene_ensembl", mart)
  137. mes_annotLookup <- getBM(
  138. mart = mart,
  139. attributes = c(
  140. "hgnc_symbol","description",
  141. "entrezgene_id", "ensembl_gene_id",
  142. "gene_biotype"),
  143. filter = "hgnc_symbol",
  144. values = rownames(mmes1),
  145. uniqueRows=TRUE)
  146. mes_degs$entrez <- mes_annotLookup$entrezgene_id[match(mes_degs$gene,mes_annotLookup$hgnc_symbol)]
  147. mes_degs$biotype <- mes_annotLookup$gene_biotype[match(mes_degs$gene,mes_annotLookup$hgnc_symbol)]
  148. top_mes <- mes_degs %>% filter(p_val_adj < 0.05) %>% group_by(cluster) %>% top_n(10, avg_log2FC)
  149. top100_mes <- mes_degs %>% filter(p_val_adj < 0.05) %>% group_by(cluster) %>% top_n(100, avg_log2FC)
  150. top100pval_mes <- subset(top100_mes, rowSums(top100_mes[5] < 0.05) > 0)
  151. df1 <- top100pval_mes[,c(6,10)]
  152. df1$cluster <- factor(df1$cluster,levels=unique(df1$cluster))
  153. df1sample <- split(df1$entrez,df1$cluster)
  154. length(df1sample)
  155. initial_types <- names(df1sample)
  156. genelist <- as.list(df1sample)
  157. background_genes <- unique(mes_degs$entrez)
  158. BPclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'BP', universe = background_genes)
  159. BPclusterplot <- pairwise_termsim(BPclusterplot)
  160. CCclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'CC', universe = background_genes)
  161. CCclusterplot <- pairwise_termsim(CCclusterplot)
  162. MFclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'MF', universe = background_genes)
  163. MFclusterplot <- pairwise_termsim(MFclusterplot)
  164. Pathwayclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichPathway", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  165. Pathwayclusterplot <- pairwise_termsim(Pathwayclusterplot)
  166. KEGGclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichKEGG", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  167. KEGGclusterplot <- pairwise_termsim(KEGGclusterplot)
  168. DOclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichDGN", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  169. DOclusterplot <- pairwise_termsim(DOclusterplot)
  170. options(enrichplot.colours = c("blue", "grey"))
  171. p1 <- dotplot(BPclusterplot, showCategory = 5, font.size = 6, title = "GO: Biological Process", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  172. options(enrichplot.colours = c("orange", "grey"))
  173. p2 <- dotplot(CCclusterplot, showCategory = 5, font.size = 6, title = "GO: Cellular Component", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  174. options(enrichplot.colours = c("green", "grey"))
  175. p3 <- dotplot(MFclusterplot, showCategory = 5, font.size = 6, title = "GO: Molecular Function", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  176. options(enrichplot.colours = c("brown", "grey"))
  177. p4 <- dotplot(Pathwayclusterplot, showCategory = 5, font.size = 6, title = "Reactome Pathway", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  178. options(enrichplot.colours = c("yellow", "grey"))
  179. p5 <- dotplot(KEGGclusterplot, showCategory = 5, font.size = 6, title = "KEGG Pathway", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  180. options(enrichplot.colours = c("red", "grey"))
  181. p6 <- dotplot(DOclusterplot, showCategory = 5, font.size = 6, title = "DisGeNet", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  182. p1
  183. p2
  184. p3
  185. p4
  186. p5
  187. p6
  188. mes_annot_list <- list(BP =BPclusterplot, CC=CCclusterplot, MF = MFclusterplot, Reactome=Pathwayclusterplot,
  189. KEGG=KEGGclusterplot, DisGeNet=DOclusterplot)
  190. saveRDS(mes_annot_list, "mouse_mes_subtype_functional-annotation_lists.rds")
  191. mes_annot_list <- readRDS("mouse_mes_subtype_functional-annotation_lists.rds")
  192. mes_annot_list$BP <- mes_annot_list$BP@compareClusterResult
  193. mes_annot_list$CC <- mes_annot_list$CC@compareClusterResult
  194. mes_annot_list$MF <- mes_annot_list$MF@compareClusterResult
  195. mes_annot_list$Reactome <- mes_annot_list$Reactome@compareClusterResult
  196. mes_annot_list$KEGG <- mes_annot_list$KEGG@compareClusterResult
  197. mes_annot_list$DisGeNet <- mes_annot_list$DisGeNet@compareClusterResult
  198. openxlsx::write.xlsx(mes_annot_list, file = "Craniofacial-scRNAseqManuscript/final-tables/mouse_mes_subtype_functional-annotation.xlsx",
  199. sheetName = names(mes_annot_list), rowNames = FALSE)
  200. ### ECTODERM ###
  201. #subset E11 ectoderm and transfer subtype annotation from TW
  202. ect <- subset(E11, idents = "ectoderm")
  203. TW_ect <- readRDS("/Volumes/Extreme SSD/Mouse_cellranger/figures_all/TW/ee.rds")
  204. anchors <- FindTransferAnchors(reference = TW_ect, query = ect, reduction = 'cca', normalization.method = "LogNormalize", dims = 1:30)
  205. predicted.id <- TransferData(anchorset = anchors, refdata = TW_ect$cellType2, weight.reduction = ect[['harmony']],dims = 1:30)
  206. ect$cellType2 <- predicted.id$predicted.id
  207. DimPlot(ect, group.by = "cellType2")
  208. ect <- NormalizeData(ect) %>%
  209. FindVariableFeatures() %>%
  210. ScaleData(vars.to.regress = c("S.Score", "G2M.Score")) %>%
  211. RunPCA(verbose = FALSE) %>%
  212. RunHarmony(group.by.vars = "orig.ident")
  213. ect <- RunUMAP(ect, reduction = "harmony", dims = 1:30, min.dist = 0.3) %>%
  214. FindNeighbors(reduction = "harmony", dims = 1:30, verbose = FALSE) %>%
  215. FindClusters(resolution = c(0.1,0.2,0.4,0.5,0.6,0.8,1), verbose = FALSE)
  216. clustree(ect, prefix = "RNA_snn_res.")
  217. Idents(ect) <- "RNA_snn_res.0.8"
  218. p1 <- DimPlot(ect, label = T)+NoAxes()+NoLegend()
  219. p2 <- DimPlot(ect, group.by = "cellType2")+NoAxes()
  220. p3 <- DimPlot(ect,split.by = "stage",label = T)+NoAxes()+NoLegend()
  221. p4 <- clustree(ect, prefix = "RNA_snn_res.")
  222. pdf("figures/ect_E11_TWtransferID.pdf",width = 16,height = 8)
  223. p1+p2
  224. p4
  225. dev.off()
  226. sig_genes <- FindAllMarkers(ect, assay = "RNA" ,logfc.threshold = 0.25, test.use = "wilcox", min.pct = 0.1,
  227. min.diff.pct = -Inf, node = NULL, verbose = TRUE,
  228. only.pos = TRUE, max.cells.per.ident = Inf, random.seed = 1,
  229. latent.vars = NULL, min.cells.feature = 3, min.cells.group = 3,
  230. pseudocount.use = 1, return.thresh = 0.01)
  231. sig_genes <- mutate(sig_genes,pct.diff=pct.1-pct.2)
  232. sig_genes$TF <- "no"
  233. id <- intersect(mGenes$mgi_symbol,sig_genes$gene)
  234. x <- sig_genes[sig_genes$gene %in% id,]
  235. sig_genes$TF[sig_genes$gene %in% id] <- mGenes$TF[match(x$gene,mGenes$mgi_symbol)]
  236. sig_genes$Entrez <- mGenes$entrezgene_id[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  237. sig_genes$description <- mGenes$description[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  238. sig_genes <- sig_genes[, c("gene","TF","Entrez","description","p_val_adj","avg_log2FC","pct.1","pct.2","pct.diff","cluster")]
  239. head(sig_genes)
  240. #remove "Rik" and "Gm" genes from markers lists
  241. # RikFeatures <- grep("Rik",rownames(count))
  242. # GmFeatures <- grep("Gm",rownames(count))
  243. # count1 <- count[-RikFeatures,]
  244. # count1 <- count1[-GmFeatures,]
  245. sig_genes2 <- filter(sig_genes, gene %in% row.names(count1))
  246. top <- sig_genes2 %>% group_by(cluster) %>% top_n(5, avg_log2FC) #%>% top_n(5, pct.diff);top
  247. p <- DotPlot(object = ect, features = unique(top$gene))+ coord_flip()+ RotatedAxis()
  248. df <- data.frame(Gene = p$data$features.plot, avg.exp = p$data$avg.exp.scaled, pct.exp = p$data$pct.exp, cluster = p$data$id)
  249. p2 <- df %>%
  250. filter(avg.exp > 0, pct.exp > 1) %>%
  251. ggplot(aes(x=cluster, y = Gene, color = avg.exp, size = pct.exp)) +
  252. geom_point() +
  253. scale_color_viridis_c() +
  254. cowplot::theme_cowplot() +
  255. theme(axis.line = element_blank()) +
  256. theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
  257. ylab('') + xlab("")+
  258. theme(axis.ticks = element_blank())
  259. p2
  260. heatmap(table(ect$cellType2, ect$RNA_snn_res.0.8))
  261. ect <- RenameIdents(ect,c("0"="fusion.surface","1"="palate","2"="OE.NaP","3"="ambiguous","4"="surface","5"="OE1",
  262. "6"="dental1","7"="periderm2","8"="OE3","9"="periderm","10"="OE2","11"="dental2","12"="NaP","13"="blood"))
  263. ect <- subset(ect,idents = "blood",invert=T)
  264. DimPlot(ect, label = T)
  265. ect$cellType3 <- Idents(ect)
  266. mes$cellType3 <- Idents(mes)
  267. E11_mes_ect <- merge(mes,ect)
  268. Idents(E11_mes_ect) <- "cellType3"
  269. E11$cell_type3 <- E11_mes_ect$cellType3
  270. Idents(cds) <- "cell_type"
  271. cds$E11ectmes1 <- E11_mes_ect$cellType3
  272. for (i in levels(E11_mes_ect)) {
  273. id <- rownames([email hidden][[email hidden]$cellType3 == i,])
  274. cds <- SetIdent(cds,id,value = i)
  275. }
  276. cds$E11ectmes <- Idents(cds)
  277. DimPlot(cds, group.by = "E11ectmes")+NoLegend()+NoAxes()
  278. #expand the annotation from E11 mesenchyme to combined mesenchyme
  279. Idents(cds) <- "cell_type"
  280. mes_all <- subset(cds, idents = "mesenchyme")
  281. mes_all <- NormalizeData(mes_all) %>%
  282. FindVariableFeatures() %>%
  283. ScaleData(vars.to.regress = c("S.Score", "G2M.Score")) %>%
  284. RunPCA(verbose = FALSE) %>%
  285. RunHarmony(group.by.vars = "orig.ident")
  286. ElbowPlot(ect,ndims = 50)
  287. mes_all <- RunUMAP(mes_all, reduction = "harmony", dims = 1:30, min.dist = 0.3) %>%
  288. FindNeighbors(reduction = "harmony", dims = 1:30, verbose = FALSE) %>%
  289. FindClusters(resolution = c(0.1,0.2,0.4,0.6,0.8,1), verbose = FALSE)
  290. p4 <- clustree(mes_all, prefix = "RNA_snn_res.")
  291. Idents(mes_all) <- "RNA_snn_res.0.8"
  292. p1 <- DimPlot(mes_all, label = T)+NoAxes()+NoLegend()
  293. p2 <- DimPlot(mes_all, group.by = "orig.ident")+NoAxes()
  294. p3 <- DimPlot(mes_all,split.by = "stage",label = T)+NoAxes()+NoLegend()
  295. p5 <- DimPlot(mes_all,group.by = "RNA_snn_res.0.8", label = T)+NoAxes()+NoLegend()
  296. p1+p2
  297. pdf("figures/mes_all_subtypes.pdf",width = 16,height = 8)
  298. p1+p2
  299. p5+p4
  300. dev.off()
  301. Idents(mes_all) <- "stage"
  302. mes1 <- subset(mes_all, idents = "E11")
  303. p1 <- DimPlot(mes_all, group.by = "RNA_snn_res.0.8",label = T)+NoAxes()+NoLegend()
  304. p2 <- DimPlot(mes1, group.by = "E11ectmes",label = T)+NoAxes()
  305. p1+p2
  306. heatmap(table(mes1$E11ectmes1, mes1$RNA_snn_res.0.8))
  307. barplot(prop.table(table(mes_all$stage,mes_all$RNA_snn_res.0.8),margin = 2),col = c("navy","blue","purple","brown","red","orange", "yellow"),legend.text = T)
  308. Idents(mes_all) <- "RNA_snn_res.0.8"
  309. mes_all <- RenameIdents(mes_all,c("0"="palatalShelf1","1"="MxP.surface","2"="LNP","3"="MxP.aLNP","4"="MandibularArch",
  310. "5"="pLNP.fusion","6"="e.osteoblast","7"="palatalShelf2","8"="MxP2","9"="cycling",
  311. "10"="pLNP2","11"="muscle.mes","12"="fusion.mes2","13"="palatal.fusion","14"="palatalShelf2",
  312. "15"="chondrocyte","16"="cartilage","17"="neural","18"="l.Osteoblast","19"="immune"))
  313. mes_all$cellType4 <- Idents(mes_all)
  314. heatmap(table(mes_all$E11ectmes1, mes_all$cellType4))
  315. sig_genes <- FindAllMarkers(mes_all, assay = "RNA" ,logfc.threshold = 0.25, test.use = "wilcox", min.pct = 0.1,
  316. min.diff.pct = -Inf, node = NULL, verbose = TRUE,
  317. only.pos = TRUE, max.cells.per.ident = Inf, random.seed = 1,
  318. latent.vars = NULL, min.cells.feature = 3, min.cells.group = 3,
  319. pseudocount.use = 1, return.thresh = 0.01)
  320. sig_genes <- mutate(sig_genes,pct.diff=pct.1-pct.2)
  321. sig_genes$TF <- "no"
  322. id <- intersect(mGenes$mgi_symbol,sig_genes$gene)
  323. x <- sig_genes[sig_genes$gene %in% id,]
  324. sig_genes$TF[sig_genes$gene %in% id] <- mGenes$TF[match(x$gene,mGenes$mgi_symbol)]
  325. sig_genes$Entrez <- mGenes$entrezgene_id[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  326. sig_genes$description <- mGenes$description[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  327. sig_genes <- sig_genes[, c("gene","TF","Entrez","description","p_val_adj","avg_log2FC","pct.1","pct.2","pct.diff","cluster")]
  328. head(sig_genes)
  329. #remove "Rik" and "Gm" genes from markers lists
  330. # RikFeatures <- grep("Rik",rownames(count))
  331. # GmFeatures <- grep("Gm",rownames(count))
  332. # count1 <- count[-RikFeatures,]
  333. # count1 <- count1[-GmFeatures,]
  334. sig_genes2 <- filter(sig_genes, gene %in% row.names(count1))
  335. top <- sig_genes2 %>% group_by(cluster) %>% top_n(10, avg_log2FC) #%>% top_n(5, pct.diff);top
  336. p <- DotPlot(object = mes_all, features = unique(top$gene))+ coord_flip()+ RotatedAxis()
  337. df <- data.frame(Gene = p$data$features.plot, avg.exp = p$data$avg.exp.scaled, pct.exp = p$data$pct.exp, cluster = p$data$id)
  338. p2 <- df %>%
  339. filter(avg.exp > 0, pct.exp > 1) %>%
  340. ggplot(aes(x=cluster, y = Gene, color = avg.exp, size = pct.exp)) +
  341. geom_point() +
  342. scale_color_viridis_c() +
  343. cowplot::theme_cowplot() +
  344. theme(axis.line = element_blank()) +
  345. theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
  346. ylab('') + xlab("")+
  347. theme(axis.ticks = element_blank())
  348. p2
  349. openxlsx::write.xlsx(sig_genes,"tables/SigGenes_mes_all_res0.8.xlsx")
  350. #expand the annotation from E11 ectoderm to combined ectoderm
  351. ect_all <- subset(cds, idents = "ectoderm")
  352. ect_all <- NormalizeData(ect_all) %>%
  353. FindVariableFeatures() %>%
  354. ScaleData(vars.to.regress = c("S.Score", "G2M.Score")) %>%
  355. RunPCA(verbose = FALSE) %>%
  356. RunHarmony(group.by.vars = "orig.ident")
  357. ElbowPlot(ect,ndims = 50)
  358. ect_all <- RunUMAP(ect_all, reduction = "harmony", dims = 1:30, min.dist = 0.3) %>%
  359. FindNeighbors(reduction = "harmony", dims = 1:30, verbose = FALSE) %>%
  360. FindClusters(resolution = c(0.1,0.2,0.4,0.6,0.8,1), verbose = FALSE)
  361. p4 <- clustree(ect_all, prefix = "RNA_snn_res.")
  362. Idents(ect_all) <- "RNA_snn_res.0.8"
  363. p1 <- DimPlot(ect_all, label = T)+NoAxes()+NoLegend()
  364. p2 <- DimPlot(ect_all, group.by = "orig.ident")+NoAxes()
  365. p3 <- DimPlot(ect_all,split.by = "stage",label = T)+NoAxes()+NoLegend()
  366. p5 <- DimPlot(ect_all,group.by = "RNA_snn_res.0.8", label = T)+NoAxes()+NoLegend()
  367. p1+p2
  368. pdf("figures/ect_all_subtypes.pdf",width = 16,height = 8)
  369. p1+p2
  370. p5+p4
  371. dev.off()
  372. Idents(ect_all) <- "stage"
  373. ect1 <- subset(ect_all, idents = "E11")
  374. p1 <- DimPlot(ect_all, group.by = "RNA_snn_res.0.8",label = T)+NoAxes()+NoLegend()
  375. p2 <- DimPlot(ect1, group.by = "E11ectmes",label = T)+NoAxes()
  376. p1+p2
  377. heatmap(table(ect1$E11ectmes1, ect1$RNA_snn_res.0.8))
  378. barplot(prop.table(table(ect_all$stage,ect_all$RNA_snn_res.0.8),margin = 2),col = c("navy","blue","purple","brown","red","orange", "yellow"),legend.text = T)
  379. Idents(ect_all) <- "RNA_snn_res.0.8"
  380. sig_genes <- FindAllMarkers(ect_all, assay = "RNA" ,logfc.threshold = 0.25, test.use = "wilcox", min.pct = 0.1,
  381. min.diff.pct = -Inf, node = NULL, verbose = TRUE,
  382. only.pos = TRUE, max.cells.per.ident = Inf, random.seed = 1,
  383. latent.vars = NULL, min.cells.feature = 3, min.cells.group = 3,
  384. pseudocount.use = 1, return.thresh = 0.01)
  385. sig_genes <- mutate(sig_genes,pct.diff=pct.1-pct.2)
  386. sig_genes$TF <- "no"
  387. id <- intersect(mGenes$mgi_symbol,sig_genes$gene)
  388. x <- sig_genes[sig_genes$gene %in% id,]
  389. sig_genes$TF[sig_genes$gene %in% id] <- mGenes$TF[match(x$gene,mGenes$mgi_symbol)]
  390. sig_genes$Entrez <- mGenes$entrezgene_id[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  391. sig_genes$description <- mGenes$description[match(as.character(sig_genes$gene),mGenes$mgi_symbol)]
  392. sig_genes <- sig_genes[, c("gene","TF","Entrez","description","p_val_adj","avg_log2FC","pct.1","pct.2","pct.diff","cluster")]
  393. head(sig_genes)
  394. #remove "Rik" and "Gm" genes from markers lists
  395. # RikFeatures <- grep("Rik",rownames(count))
  396. # GmFeatures <- grep("Gm",rownames(count))
  397. # count1 <- count[-RikFeatures,]
  398. # count1 <- count1[-GmFeatures,]
  399. sig_genes2 <- filter(sig_genes, gene %in% row.names(count1))
  400. top <- sig_genes2 %>% group_by(cluster) %>% top_n(10, avg_log2FC) #%>% top_n(5, pct.diff);top
  401. p <- DotPlot(object = ect_all, features = unique(top$gene))+ coord_flip()+ RotatedAxis()
  402. df <- data.frame(Gene = p$data$features.plot, avg.exp = p$data$avg.exp.scaled, pct.exp = p$data$pct.exp, cluster = p$data$id)
  403. p2 <- df %>%
  404. filter(avg.exp > 0, pct.exp > 1) %>%
  405. ggplot(aes(x=cluster, y = Gene, color = avg.exp, size = pct.exp)) +
  406. geom_point() +
  407. scale_color_viridis_c() +
  408. cowplot::theme_cowplot() +
  409. theme(axis.line = element_blank()) +
  410. theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
  411. ylab('') + xlab("")+
  412. theme(axis.ticks = element_blank())
  413. p2
  414. ect_all <- RenameIdents(ect_all,c("0"="fusion.surface","1"="ambiguous","2"="palate","3"="periderm2","4"="dental1",
  415. "5"="OE2","6"="dental2","7"="periderm","8"="surface.ect1","9"="NaP",
  416. "10"="OE.NaP","11"="OE1.Pax7","12"="OE3","13"="surface.ect2","14"="ciliated",
  417. "15"="collagen","16"="cardiac","17"="auditory","18"="pituitary","19"="myeloid"))
  418. ect_all$cellType4 <- Idents(ect_all)
  419. heatmap(table(ect_all$E11ectmes1, ect_all$cellType4))
  420. openxlsx::write.xlsx(sig_genes,"tables/SigGenes_ect_all_res0.8.xlsx")
  421. #use scToppR for validating annotations
  422. ect_degs <- openxlsx::read.xlsx("Craniofacial-scRNAseqManuscript/final-tables/Mouse_SigGenes_ect_SubTypes.xlsx")
  423. ect_toppData <- toppFun(ect_degs,
  424. gene_col = "gene",
  425. cluster_col = "cluster",
  426. p_val_col = "p_val_adj",
  427. logFC_col = "avg_log2FC")
  428. head(ect_toppData)
  429. p <- toppBalloon(ect_toppData,
  430. categories = "MousePheno",x_axis_text_size = 10) + coord_flip() +
  431. viridis::scale_color_viridis(option = "C",direction=-1) +
  432. ggtitle("Mouse Ectoderm Subtypes: Mouse Phenotype ToppGene") +
  433. theme(panel.border = element_rect(color = "black", fill = NA, linewidth = 0.5),
  434. axis.text = element_text(color="black"),
  435. plot.title = element_text(color="black",size=14,hjust=0.5))
  436. p
  437. pdf("Craniofacial-scRNAseqManuscript/final-figs/Mouse_ect_subtypes_scToppR_baloonplot.pdf",height=14,width=8.5)
  438. p
  439. dev.off()
  440. ## functional annotation
  441. mect1 <- readRDS("mect1_final.rds")
  442. ect_annotLookup <- getBM(
  443. mart = mart,
  444. attributes = c(
  445. "hgnc_symbol","description",
  446. "entrezgene_id", "ensembl_gene_id",
  447. "gene_biotype"),
  448. filter = "hgnc_symbol",
  449. values = rownames(mect1),
  450. uniqueRows=TRUE)
  451. ect_degs$entrez <- ect_annotLookup$entrezgene_id[match(ect_degs$gene,ect_annotLookup$hgnc_symbol)]
  452. ect_degs$biotype <- ect_annotLookup$gene_biotype[match(ect_degs$gene,ect_annotLookup$hgnc_symbol)]
  453. top_mes <- ect_degs %>% filter(p_val_adj < 0.05) %>% group_by(cluster) %>% top_n(10, avg_log2FC)
  454. top100_mes <- ect_degs %>% filter(p_val_adj < 0.05) %>% group_by(cluster) %>% top_n(100, avg_log2FC)
  455. top100pval_mes <- subset(top100_mes, rowSums(top100_mes[5] < 0.05) > 0)
  456. df1 <- top100pval_mes[,c(6,10)]
  457. df1$cluster <- factor(df1$cluster,levels=unique(df1$cluster))
  458. df1sample <- split(df1$entrez,df1$cluster)
  459. length(df1sample)
  460. initial_types <- names(df1sample)
  461. genelist <- as.list(df1sample)
  462. background_genes <- unique(ect_degs$entrez)
  463. BPclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'BP', universe = background_genes)
  464. BPclusterplot <- pairwise_termsim(BPclusterplot)
  465. CCclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'CC', universe = background_genes)
  466. CCclusterplot <- pairwise_termsim(CCclusterplot)
  467. MFclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichGO", OrgDb = "org.Hs.eg.db", pvalueCutoff=0.05, pAdjustMethod = "BH", ont = 'MF', universe = background_genes)
  468. MFclusterplot <- pairwise_termsim(MFclusterplot)
  469. Pathwayclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichPathway", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  470. Pathwayclusterplot <- pairwise_termsim(Pathwayclusterplot)
  471. KEGGclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichKEGG", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  472. KEGGclusterplot <- pairwise_termsim(KEGGclusterplot)
  473. DOclusterplot <- compareCluster(geneCluster = genelist, fun = "enrichDGN", pvalueCutoff=0.05, pAdjustMethod = "BH", universe = background_genes)
  474. DOclusterplot <- pairwise_termsim(DOclusterplot)
  475. options(enrichplot.colours = c("blue", "grey"))
  476. p1 <- dotplot(BPclusterplot, showCategory = 5, font.size = 6, title = "GO: Biological Process", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  477. options(enrichplot.colours = c("orange", "grey"))
  478. p2 <- dotplot(CCclusterplot, showCategory = 5, font.size = 6, title = "GO: Cellular Component", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  479. options(enrichplot.colours = c("green", "grey"))
  480. p3 <- dotplot(MFclusterplot, showCategory = 5, font.size = 6, title = "GO: Molecular Function", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  481. options(enrichplot.colours = c("brown", "grey"))
  482. p4 <- dotplot(Pathwayclusterplot, showCategory = 5, font.size = 6, title = "Reactome Pathway", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  483. options(enrichplot.colours = c("yellow", "grey"))
  484. p5 <- dotplot(KEGGclusterplot, showCategory = 5, font.size = 6, title = "KEGG Pathway", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  485. options(enrichplot.colours = c("red", "grey"))
  486. p6 <- dotplot(DOclusterplot, showCategory = 5, font.size = 6, title = "DisGeNet", color = "p.adjust", label_format = 50) + theme( legend.text=element_text(size=5),legend.position = "right",legend.box = "vertical",text = element_text(size=6), plot.title = element_text(hjust= 0.5, size = 12))
  487. p1
  488. p2
  489. p3
  490. p4
  491. p5
  492. p6
  493. ect_annot_list <- list(BP =BPclusterplot, CC=CCclusterplot, MF = MFclusterplot, Reactome=Pathwayclusterplot,
  494. KEGG=KEGGclusterplot, DisGeNet=DOclusterplot)
  495. saveRDS(ect_annot_list, "mouse_ect_subtype_functional-annotation_lists.rds")
  496. ect_annot_list <- readRDS("mouse_ect_subtype_functional-annotation_lists.rds")
  497. ect_annot_list$BP <- ect_annot_list$BP@compareClusterResult
  498. ect_annot_list$CC <- ect_annot_list$CC@compareClusterResult
  499. ect_annot_list$MF <- ect_annot_list$MF@compareClusterResult
  500. ect_annot_list$Reactome <- ect_annot_list$Reactome@compareClusterResult
  501. ect_annot_list$KEGG <- ect_annot_list$KEGG@compareClusterResult
  502. ect_annot_list$DisGeNet <- ect_annot_list$DisGeNet@compareClusterResult
  503. openxlsx::write.xlsx(ect_annot_list, file = "Craniofacial-scRNAseqManuscript/final-tables/mouse_ect_subtype_functional-annotation.xlsx",
  504. sheetName = names(ect_annot_list), rowNames = FALSE)

mouse_ect_mes_subclustering.R at commit 368d608, under CC0-1.0 · at the source

Overview

Authors: Nagham Khouri-Farah1, Alexandra Manchel2, Emma Wentworth Winchester1, Brian M. Schilder3,4, Kelsey Robinson5, Sarah W. Curtis5, Nathan G. Skene3,4, Elizabeth J. Leslie-Clarkson5, Justin Cotney2,6
  1. Graduate Program in Genetics and Developmental Biology, UConn Health,Farmington, CT USA
  2. Department of Surgery, Children’s Hospital of Philadelphia,Philadelphia, PA USA
  3. Department of Brain Sciences, Faculty of Medicine, Imperial College London,London, UK
  4. UK Dementia Research Institute at Imperial College London,London, UK
  5. Department of Human Genetics, Emory University School of Medicine,Atlanta, GA USA
  6. Department of Genetics, Perelman School of Medicine, University of Pennsylvania,Philadelphia, PA USA
Institutions: UConn Health (United States); Children's Hospital of Philadelphia (United States); Imperial College London (United Kingdom); UK Dementia Research Institute (United Kingdom); Emory University (United States); University of Pennsylvania (United States)
Journal: Nature communications, volume 17, issue 1, article 3714
Dates: received 23 January 2025; accepted 19 February 2026; published online 9 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-70232-6 · PMID 41803119 · PMCID PMC13102946 · OpenAlex W7134836733
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), mouse (organism), cellular / molecular (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning
Keywords: Development, Musculoskeletal development, Sequencing
MeSH: Gene Expression Regulation, Developmental*, Skull*, Animals, Cleft Lip, Cleft Palate, Ectoderm, Humans, Mesoderm, Mice, Neural Crest, Single-Cell Analysis, Single-Cell Gene Expression Analysis, Spatial Transcriptomics (* major topic)
Topic: Cleft Lip and Palate Research (Genetics, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: cited by 2 papers (Europe PMC); 163 references in the paper

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.

Repositories

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

cotneylab/craniofacial_snrna

License: CC0-1.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 368d60853543935043f47b9894f742af90263e14, 11 September 2025
Languages: R (30), Shell (9)
Size: 70 files, 39 scripts
Software Heritage: not checked
Found in: “Code availability”
Holds: README, license file, 10 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (27 files), Seurat (24 files), patchwork (21 files), cowplot (20 files), Harmony (20 files), clusterProfiler (13 files), pheatmap (12 files), limma (11 files), reshape2 (11 files), ggplot2 (7 files), data.table (5 files), ggpubr (5 files), SingleCellExperiment (3 files), DESeq2 (2 files), edgeR (1 file), reticulate (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
41 files

Zenodo 18246448

License: CC0-1.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (27 files), Seurat (24 files), patchwork (21 files), cowplot (20 files), Harmony (20 files), clusterProfiler (13 files), pheatmap (12 files), limma (11 files), reshape2 (11 files), ggplot2 (7 files), data.table (5 files), ggpubr (5 files), SingleCellExperiment (3 files), DESeq2 (2 files), edgeR (1 file), reticulate (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
41 files
At the source:

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-70232-6.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 78 scripts, each with its path and the digest of its content;
  • 38 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

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-70232-6.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 3 keywords, 13 MeSH terms, 2 funders, 155 references.

Cite

This paper

Khouri-Farah, N., Manchel, A., Wentworth Winchester, E., Schilder, B. M., Robinson, K., Curtis, S. W., Skene, N. G., Leslie-Clarkson, E. J., & Cotney, J. (2026). Gene expression dynamics of human and mouse craniofacial development at the single-cell level. Nature communications, 17(1), 3714. https://doi.org/10.1038/s41467-026-70232-6

BibTeX

@article{khourifarah2026gene,
author = {Khouri-Farah, Nagham and Manchel, Alexandra and Wentworth Winchester, Emma and Schilder, Brian M. and Robinson, Kelsey and Curtis, Sarah W. and Skene, Nathan G. and Leslie-Clarkson, Elizabeth J. and Cotney, Justin},
title = {{Gene expression dynamics of human and mouse craniofacial development at the single-cell level}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {3714},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-70232-6},
url = {https://doi.org/10.1038/s41467-026-70232-6},
pmid = {41803119},
pmcid = {PMC13102946}
}

RIS

TY - JOUR
AU - Khouri-Farah, Nagham
AU - Manchel, Alexandra
AU - Wentworth Winchester, Emma
AU - Schilder, Brian M.
AU - Robinson, Kelsey
AU - Curtis, Sarah W.
AU - Skene, Nathan G.
AU - Leslie-Clarkson, Elizabeth J.
AU - Cotney, Justin
TI - Gene expression dynamics of human and mouse craniofacial development at the single-cell level
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/03/09
VL - 17
IS - 1
SP - 3714
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-70232-6
UR - https://doi.org/10.1038/s41467-026-70232-6
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-70232-6",
"type": "article-journal",
"title": "Gene expression dynamics of human and mouse craniofacial development at the single-cell level",
"container-title": "Nature communications",
"author": [
{
"family": "Khouri-Farah",
"given": "Nagham"
},
{
"family": "Manchel",
"given": "Alexandra"
},
{
"family": "Wentworth Winchester",
"given": "Emma"
},
{
"family": "Schilder",
"given": "Brian M."
},
{
"family": "Robinson",
"given": "Kelsey"
},
{
"family": "Curtis",
"given": "Sarah W."
},
{
"family": "Skene",
"given": "Nathan G."
},
{
"family": "Leslie-Clarkson",
"given": "Elizabeth J."
},
{
"family": "Cotney",
"given": "Justin"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "3714",
"DOI": "10.1038/s41467-026-70232-6",
"PMID": "41803119",
"PMCID": "PMC13102946",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-70232-6",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
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.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 neuroscience
In common: Harmony, SingleCellExperiment, edgeR, 13 other tools, cellular / molecular, 3 references
[2] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: Harmony, SingleCellExperiment, edgeR, 12 other tools, genetics / omics, cellular / molecular, 4 references
[3] doi:10.1038/s41586-026-10214-2 [code]
Multidimensional profiling of heterogeneity in supratentorial ependymomas.
Journal: Nature
In common: Harmony, SingleCellExperiment, edgeR, 12 other tools, genetics / omics, mouse, 1 reference
[4] doi:10.1002/imt2.70163 [code]
Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.
Journal: iMeta
In common: Harmony, SingleCellExperiment, edgeR, 12 other tools, genetics / omics, mouse, cellular / molecular, 1 reference
[5] doi:10.1038/s41467-026-73305-8 [code]
Comparative analysis of the cellular landscape in mammalian striatum.
Journal: Nature communications
In common: Harmony, SingleCellExperiment, edgeR, 11 other tools, genetics / omics, mouse, cellular / molecular, 1 reference
[6] doi:10.1016/j.celrep.2026.117073 [code]
Single-cell epigenomics uncovers heterochromatin instability and transcription factor dysfunction during mouse brain aging.
Journal: Cell reports
In common: edgeR, reticulate, DESeq2, 10 other tools, genetics / omics, mouse, cellular / molecular, 3 references
[7] 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 communications
In common: edgeR, reticulate, limma, 10 other tools, genetics / omics, 2 references
[8] doi:10.1038/s41586-026-10629-x [code]
Whole-genome duplication shaped cell-type evolution in the vertebrate brain.
Journal: Nature
In common: Harmony, reticulate, DESeq2, 9 other tools, genetics / omics, mouse, cellular / molecular, 3 references
[9] doi:10.1016/j.celrep.2026.117500 [code]
Spatio-molecular gene expression reflects dorsal anterior cingulate cortex structure and function in the human brain.
Journal: Cell reports
In common: Harmony, SingleCellExperiment, edgeR, 9 other tools, genetics / omics, cellular / molecular, 3 references
[10] 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 medicine
In common: edgeR, reticulate, limma, 9 other tools, genetics / omics, 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.

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.