Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC.
32 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 40 matches
- [1] § 2. Results › 2.5. Identifying the Driver Mutation Specific Prognostic Signature (DMSP.sig) with Immune Characteristics ↔ code/FigureS5/FigureS5.R, lines 233 to 261 · score 0.96 · PAX6 ITGB1, USF2 IGF1, PPARG RARRES2, SNAI1 ITGB4, NR1H4, CEBPB IGF1 · block
oscr:b:9QYQGJ4W6RR0J-B· Report a mismatch - [2] § 2. Results › 2.5. Identifying the Driver Mutation Specific Prognostic Signature (DMSP.sig) with Immune Characteristics ↔ code/Figure5/Figure5.R, lines 994 to 1061 · score 0.96 · PAX6 ITGB1, USF2 IGF1, PPARG RARRES2, SNAI1 ITGB4, NR1H4, CEBPB IGF1 · block
oscr:b:X5XETQXZH3W0A-9· Report a mismatch - [3] § 2. Results › 2.4. Potential Mediators Underlying the Poor-Prognosis CM2 and CM5 ↔ code/Figure4/Figure4.R, lines 319 to 359 · score 0.81 · Astrocyte_05_HLA, Ligand receptor, ANGPTL, CCL, GALECTIN, MIF · block
oscr:b:MXGD3DSXBXE48-6· Report a mismatch - [4] § 4. Materials and Methods › 4.19. Immune Infiltration Analysis ↔ code/Figure5/Figure5.R, lines 813 to 892 · score 0.81 · get_immu_ratio, corr.test, Immune infiltration, Pearson, GSVA, matched · block
oscr:b:Y4RK0Z8DEFT5X-R· Report a mismatch - [5] § 2. Results › 2.5. Identifying the Driver Mutation Specific Prognostic Signature (DMSP.sig) with Immune Characteristics ↔ code/FigureS5/FigureS5.R, lines 233 to 261 · score 0.80 · SNAI1 ITGB4, RELA IGF1, SP1 ITGA6, risk scores, S5D, ROC · block
oscr:b:9QYQGJ4W6RR0J-B· Report a mismatch - [6] § 4. Materials and Methods › 4.12. Cellular Interaction Analysis ↔ code/FigureS4/FigureS4.R, lines 179 to 244 · score 0.79 · netAnalysis_signalingRole_heatmap, CellChatDB, netAnalysis_computeCentrality, Network centrality, probabilities, database · block
oscr:b:QKWPYWDMHQDDV-5· Report a mismatch - [7] § 4. Materials and Methods › 4.12. Cellular Interaction Analysis ↔ code/Figure4/Figure4.R, lines 234 to 274 · score 0.78 · CellChat, netAnalysis_signalingRole_heatmap, netAnalysis_computeCentrality, Network centrality, weights, interactions · block
oscr:b:H17K3D0EJ6M08-0· Report a mismatch - [8] § 2. Results › 2.4. Potential Mediators Underlying the Poor-Prognosis CM2 and CM5 ↔ code/Figure1/Figure1.R, lines 1105 to 1150 · score 0.75 · Macrophage_06_C3, mast cells, Astrocyte_05_HLA, stromal cells, CHIT1, MS4A7 · block
oscr:b:P1KRVSRA7C8MP-Z· Report a mismatch - [9] § 4. Materials and Methods › 4.16. Prognostic Model Construction ↔ code/Figure5/Figure5.R, lines 412 to 486 · score 0.72 · Cox regression, prognostic model, glmnet, LASSO, split, GSVA · block
oscr:b:FB6NVPV9ZSWSX-H· Report a mismatch - [10] § 4. Materials and Methods › 4.9. Cancer Cell State Identification ↔ code/Figure3/Figure3.R, lines 1 to 86 · score 0.70 · CopyKat, Euclidean, chromosome, distance, cancer cell, v2 · block
oscr:b:NSY16Z6F3QTBA-K· Report a mismatch - [11] § 2. Results › 2.5. Identifying the Driver Mutation Specific Prognostic Signature (DMSP.sig) with Immune Characteristics ↔ code/Figure5/Figure5.R, lines 994 to 1061 · score 0.70 · SNAI1 ITGB4, RELA IGF1, SP1 ITGA6, longer, RS, regulons · block
oscr:b:X5XETQXZH3W0A-9· Report a mismatch - [12] § 2. Results › 2.1. A Single-Cell Atlas in Non-Small Cell Lung Cancer (NSCLC) Harboring Driver Mutations ↔ code/Figure1/Figure1.R, lines 478 to 528 · score 0.68 · cell proportions, NK cells, EGFR co mutation, KRAS co mutation, EGFR BM, driver mutation · block
oscr:b:WYET4D3ABQWR2-B· Report a mismatch - [13] § 4. Materials and Methods › 4.13. Metabolic Analysis ↔ code/Figure4/Figure4.R, lines 687 to 703 · score 0.68 · scMetabolism, KEGG metabolic, AUCell, scores · block
oscr:b:T61EJ4MY0MF4C-F· Report a mismatch - [14] § 4. Materials and Methods › 4.13. Metabolic Analysis ↔ code/FigureS4/FigureS4.R, lines 245 to 269 · score 0.68 · scMetabolism, KEGG metabolic, AUCell, scores · block
oscr:b:7HTC23MKJZZD8-N· Report a mismatch - [15] § 2. Results › 2.1. A Single-Cell Atlas in Non-Small Cell Lung Cancer (NSCLC) Harboring Driver Mutations ↔ code/Figure1/Figure1.R, lines 1105 to 1150 · score 0.66 · HLA DQB1, stromal cells, NK cells, plasma, DRA, myeloid · block
oscr:b:P1KRVSRA7C8MP-Z· Report a mismatch - [16] § 4. Materials and Methods › 4.1. Sample Characteristics ↔ code/FigureS1/FigureS1.R, lines 30 to 107 · score 0.64 · EGFR co mutation, KRAS co mutation, MET BM, S1, EGFR BM, tissue · block
oscr:b:3K4403Z8RZ4N6-Y· Report a mismatch - [17] § 4. Materials and Methods › 4.6. Differential Gene Expression and Pathway Enrichment Analysis ↔ code/FigureS2/FigureS2.R, lines 20 to 57 · score 0.64 · qvalueCutoff, pvalueCutoff, BP, GO, enrichment, enriched · block
oscr:b:5BE2PMDAV777T-B· Report a mismatch - [18] § 2. Results › 2.4. Potential Mediators Underlying the Poor-Prognosis CM2 and CM5 ↔ code/Figure4/Figure4.R, lines 319 to 359 · score 0.63 · Macrophage_06_C3, Astrocyte_05_HLA, pro, CHIT1, MS4A7, CD68 · block
oscr:b:MXGD3DSXBXE48-6· Report a mismatch - [19] § 4. Materials and Methods › 4.15. TF Identification ↔ code/Figure5/Figure5.R, lines 176 to 233 · score 0.63 · Chi square, chisq.test, TFs · block
oscr:b:ZPF51Z32CMYSW-G· Report a mismatch - [20] § 2. Results › 2.4. Potential Mediators Underlying the Poor-Prognosis CM2 and CM5 ↔ code/Figure4/Figure4.R, lines 181 to 232 · score 0.62 · communication networks, cell communication, signaling pathways, incoming, outgoing, identity · block
oscr:b:GZWXNJMK6AZ1T-R· Report a mismatch - [21] § 4. Materials and Methods › 4.14. HR Analysis ↔ code/Figure2/Figure2.R, lines 75 to 162 · score 0.62 · Worse survival, Better survival, age, Cox, GSVA, HR · block
oscr:b:BP6MBX168E5JP-V· Report a mismatch - [22] § 4. Materials and Methods › 4.14. HR Analysis ↔ code/Figure4/Figure4.R, lines 422 to 503 · score 0.62 · Worse survival, Better survival, age, TCGA, Cox, GSVA · block
oscr:b:H9A1YNWRWFHZG-N· Report a mismatch - [23] § 4. Materials and Methods › 4.19. Immune Infiltration Analysis ↔ code/Figure2/Figure2.R, lines 1 to 73 · score 0.62 · corr.test, TCGAplot, Pearson, GSVA, LUSC, LUAD · block
oscr:b:J9N8NSQ31RSNN-K· Report a mismatch - [24] § 2. Results › 2.2. Cellular Module Analyses Reveal Five Tumor Immune Microenvironment (TIME) Subtypes ↔ code/Figure2/Figure2.R, lines 364 to 432 · score 0.62 · MHC class, co inhibition, APC, proliferation, antigen, pathways · block
oscr:b:CA2XETCP5P403-C· Report a mismatch - [25] § 4. Materials and Methods › 4.6. Differential Gene Expression and Pathway Enrichment Analysis ↔ code/Figure3/Figure3.R, lines 403 to 453 · score 0.61 · qvalueCutoff, pvalueCutoff, BP, GO, enriched, genes · block
oscr:b:F9VC333EFFD8E-J· Report a mismatch - [26] § 2. Results › 2.1. A Single-Cell Atlas in Non-Small Cell Lung Cancer (NSCLC) Harboring Driver Mutations ↔ code/Figure2/Figure2.R, lines 463 to 546 · score 0.60 · HLA DRA, HLA DQB1, EGFR BM, plasma, NK, astrocytes · block
oscr:b:0GQ1YV9B48X5T-0· Report a mismatch - [27] § 4. Materials and Methods › 4.6. Differential Gene Expression and Pathway Enrichment Analysis ↔ code/Figure2/Figure2.R, lines 243 to 293 · score 0.60 · compareCluster, enrichKEGG, fun, enrichment, Gene · block
oscr:b:AK3DTDHHXC98C-2· Report a mismatch - [28] § 4. Materials and Methods › 4.17. Spatial Transcriptomics-Based Regulon Co-Localization Analysis ↔ code/FigureS7/FigureS7.R, lines 58 to 88 · score 0.59 · SpaGene_LR, co localization, tissue · block
oscr:b:WWVWX1PW90ZGG-P· Report a mismatch - [29] § 4. Materials and Methods › 4.1. Sample Characteristics ↔ code/Figure1/Figure1.R, lines 313 to 355 · score 0.59 · EGFR co mutation, KRAS co mutation, MET BM, EGFR BM, driver mutation, HER2 · block
oscr:b:JA65YF01FHB0K-6· Report a mismatch - [30] § 4. Materials and Methods › 4.16. Prognostic Model Construction ↔ code/Figure5/Figure5.R, lines 412 to 486 · score 0.58 · Cox regression, prognostic model, GSVA, coefficient, regulons, sig · block
oscr:b:FB6NVPV9ZSWSX-H· Report a mismatch - [31] § 2. Results › 2.5. Identifying the Driver Mutation Specific Prognostic Signature (DMSP.sig) with Immune Characteristics ↔ code/FigureS5/FigureS5.R, lines 188 to 231 · score 0.58 · regulatory network, gene associated, cancer cells, CNV, HR, risk · block
oscr:b:STB8HVHK5CGV0-H· Report a mismatch - [32] § 4. Materials and Methods › 4.6. Differential Gene Expression and Pathway Enrichment Analysis ↔ code/Figure3/Figure3.R, lines 475 to 511 · score 0.58 · compareCluster, enrichKEGG, fun, Gene · block
oscr:b:TRSX3SAF10QA0-7· Report a mismatch - [33] § 2. Results › 2.2. Cellular Module Analyses Reveal Five Tumor Immune Microenvironment (TIME) Subtypes ↔ code/Figure2/Figure2.R, lines 243 to 293 · score 0.58 · CC chemokines, functional enrichment, antigen, enriched, receptor, Figure 2 · block
oscr:b:AK3DTDHHXC98C-2· Report a mismatch - [34] § 2. Results › 2.4. Potential Mediators Underlying the Poor-Prognosis CM2 and CM5 ↔ code/FigureS4/FigureS4.R, lines 1 to 41 · score 0.56 · Astrocyte_05_HLA, S4A, intensity, COL10A1, HIGD1B, MKI67 · block
oscr:b:07HYVR0BSX439-9· Report a mismatch - [35] § 2. Results › 2.3. Cellular Module (CM)2 and CM5 Are Associated with Poor Prognosis ↔ code/Figure3/Figure3.R, lines 567 to 607 · score 0.55 · KRAS co mutations, GE3, GE6, GE7, GE13, GE2 · block
oscr:b:WBTF0AGZKRAG4-U· Report a mismatch - [36] § 4. Materials and Methods › 4.20. Drug Sensitivity Prediction and Molecular Docking of Core Targets ↔ code/Figure7/Figure7.R, lines 15 to 62 · score 0.54 · calcPhenotype, GDSC2, Drug, sensitivity, predicted, trained · block
oscr:b:66ZSVQM51KB6R-9· Report a mismatch - [37] § 2. Results › 2.6. Identification of Potential Therapeutic Agents Targeting Prognostic Biomarkers ↔ code/Figure7/Figure7.R, lines 15 to 62 · score 0.53 · FSC231, JW, LY, drug, sensitivity, RELA · block
oscr:b:66ZSVQM51KB6R-9· Report a mismatch - [38] § 4. Materials and Methods › 4.5. Cell Module Identification ↔ code/FigureS3/FigureS3.R, lines 1 to 67 · score 0.51 · ward.D2, v2, corr, v1, matrix, modules · block
oscr:b:WW7P1EX24KC70-H· Report a mismatch - [39] § 2. Results › 2.1. A Single-Cell Atlas in Non-Small Cell Lung Cancer (NSCLC) Harboring Driver Mutations ↔ code/Figure1/Figure1.R, lines 478 to 528 · score 0.51 · NK cells, EGFR BM, driver mutations, innate, immunity, stromal · block
oscr:b:WYET4D3ABQWR2-B· Report a mismatch - [40] § 2. Results › 2.2. Cellular Module Analyses Reveal Five Tumor Immune Microenvironment (TIME) Subtypes ↔ code/Figure2/Figure2.R, lines 748 to 799 · score 0.51 · PI3K, pathway activity, MAPK, CM1, Figure 2, NSCLC · block
oscr:b:V015SZ9F9ZGSD-O· 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 · 895 lines · 44 KB · MIT · 7 matches
- # ------------- Figure 2 --------------
- #----Figure 2A----
- #co-occurrence analyses
- library(Seurat)
- library(dplyr)
- library(ggplot2)
- library(tidyverse)
- setwd("./NSCLC/Figure/figure2/")
- rm(list = ls())
- TIME <- readRDS(file = "./NSCLC/Figure/figure1/TIME.rds")
- sce <- TIME
- #remove cell populations with low cell counts, low frequencies, or unidentified cell populations
- length(table(sce$subcluster))
- freq.low <- c("Unidentified")
- freq.high <- sce$subcluster[!sce$subcluster %in% freq.low]
- sce <- sce[,!sce$subcluster %in% freq.low]
- #Calculate the frequency of cell subsets; the row labels are the samples, and the column labels are the cell subsets
- write.csv(prop.table(table(sce$orig.ident,sce$subcluster),1),file = "./cell frequency cor.csv")
- data.freq <- data.frame(read.csv(file="./cell frequency cor.csv"),row.names = 1)
- data.freq <- data.freq[,!colnames(data.freq) %in% freq.low]#Remove cell clusters with low cell counts or frequencies
- rowSums(data.freq)#Determine the proportion of the cell population in the sample
- #Calculating Correlation
- library(corrplot)
- library(psych)
- library(pheatmap)
- #①corr.test(pearson)
- data_test <- corr.test(data.freq, method= "pearson")#spearman/kendall
- data_cor <- data_test[["r"]]
- write.csv(data_cor,file = "./correlation of TIME cells.csv")
- #pheatmap
- library(circlize)
- col_fun <- colorRamp2(
- c( -0.5,0, 1),
- c("#638fa9","white","#b10928")
- #c("#01665e","white", "#8c510a")
- )
- pheatmap(data_cor,cluster_rows = T,cluster_cols = T,fontsize = 7,main = "correlation of TIME cells",border_color = NA,color = col_fun)
- #Perform HR analysis on the various cell subsets in TIME
- library(GSVA)
- library(TCGAplot)
- library(tidyverse)
- library(survival)
- library(meta)
- library(doParallel)
- #Set the number of parallel processing cores
- registerDoParallel(cores = 15)
- subcluster.marker <- read.csv(file="./yang/wang/TIME.markers1_TOP10.csv",row.names = 1)
- tpm <- get_all_tpm()
- meta <- get_all_meta()
- cancers <- c("LUAD","LUSC")
- genelist <- split(subcluster.marker$gene, subcluster.marker$cluster)
- genelist <- genelist[-c(16,60)]
- # Use a `foreach` loop to parallelize the outer loop
- final_pan <- foreach(geneset_name = names(genelist),
- .combine = bind_rows,
- .packages = c("GSVA", "tidyverse", "survival", "meta", "TCGAplot"),
- .export = c("tpm", "meta", "cancers")) %dopar% {
- current_geneset <- genelist[[geneset_name]]
- current_genelist <- list(current_geneset)
- names(current_genelist) <- geneset_name
- cox_results <- list()
- for (cancer in cancers) {
- exprSet <- subset(tpm, Group == "Tumor" & Cancer == cancer) %>%
- tibble::add_column(ID = stringr::str_sub(rownames(.), 1, 12), .before = "Cancer") %>%
- dplyr::filter(!duplicated(ID)) %>%
- tibble::remove_rownames() %>%
- tibble::column_to_rownames("ID") %>%
- dplyr::filter(rownames(.) %in% rownames(subset(meta, Cancer == cancer)))
- exprSet <- exprSet[, -(1:2)] %>% as.matrix() %>% t()
- # GSVA
- gsvapar <- gsvaParam(exprData = exprSet,
- geneSets = current_genelist,
- kcdf = "Gaussian")
- exprSet_gsva <- gsva(gsvapar)
- # Survival Analysis
- cl <- meta[colnames(exprSet_gsva), ]
- cl$symbol <- exprSet_gsva[geneset_name, ]
- if (sum(!is.na(cl$time) & !is.na(cl$event)) > 0) {
- m <- tryCatch(
- coxph(Surv(time, event) ~ symbol + age, data = cl),
- error = function(e) NULL
- )
- if (!is.null(m)) {
- beta <- coef(m)
- se <- sqrt(diag(vcov(m)))
- tmp <- round(cbind(
- HR = exp(beta),
- se = se,
- lower = exp(beta - 1.96 * se),
- upper = exp(beta + 1.96 * se),
- p = 1 - pchisq((beta/se)^2, 1)
- ), 3)
- cox_results[[cancer]] <- tmp["symbol", ]
- }
- }
- }
- if (length(cox_results) > 0) {
- a <- do.call(rbind, cox_results) %>%
- as.data.frame() %>%
- rownames_to_column("cancer") %>%
- select(cancer, HR, se, lower, upper, p)
- # Pan-cancer meta analysis
- meta_res <- metagen(log(a$HR), a$se, sm = "HR")
- pan_row <- data.frame(
- cancer = "Pan cancer",
- HR = exp(meta_res$TE.random),
- lower = exp(meta_res$lower.random),
- upper = exp(meta_res$upper.random),
- p = meta_res$pval.random,
- stringsAsFactors = FALSE
- )
- a <- a %>% select(cancer, HR, lower, upper, p)
- pan <- bind_rows(a, pan_row) %>%
- mutate(
- celltype = geneset_name,
- significance = case_when(
- p <= 0.0001 ~ "****",
- p <= 0.001 ~ "***",
- p <= 0.01 ~ "**",
- p <= 0.05 ~ "*",
- TRUE ~ ""
- ),
- color = case_when(
- HR > 1 ~ "Worse survival",
- HR < 1 ~ "Better survival",
- TRUE ~ "Neutral"
- )
- )
- pan
- } else {
- NULL
- }
- }
- stopImplicitCluster()
- subcluster.hr <- subset(final_pan,cancer %in%c("LUAD","LUSC"))
- subcluster.hr <- subcluster.hr %>% mutate(cellmodule = case_when(
- celltype %in% c("Bn_06_GZMB","pDC_03_GZMB","Plasma_09_IGHG_RRM2","Plasma_05_IGHG_IGHGP","Plasma_01_IGHA_MZB1","Plasma_02_IGHA_IGLC3","CD8T_02_GZMB",
- "CD8T_03_MKI67","CD8T_01_CCL5","Treg_FOXP3","B_02_HLA.DQB1","CD4T_02_GNB2L1","CD4T_06_ACSL5","CD8T_04_HLA-B") ~ "module1",
- celltype %in% c("Astrocyte_03_ROM1","Endothelial_02_PTMAP2","Fibroblast_01_Myo_HIGD1B","Fibroblast_02_Myo_COL10A1","Fibroblast_03_Myo_MKI67","B_04_PTMAP2","CD4T_04_SNORD3A","Astrocyte_05_HLA-DRB5","Neurophil_01_GOS2","Astrocyte_04_SCGB3A1","Macrophage_06_C3","Astrocyte_01_CAV1","Astrocyte_02_MALAT1","Astrocyte_06_CCL5") ~ "module2",
- celltype %in% c("NK_01_FGFBP2","CD4T_03_SCGB3A1","Endothelial_05_IL1RL1","Mast_01_GNB2L1","Mast_03_PBK","cDC_01_CLEC10A","cDC_02_CD207","Macrophage_02_FCN1","Macrophage_04_SPP1",
- "Macrophage_09_MKI67","CD4T_05_SFTPB","Plasma_06_IGHG_SFTPB","Endothelial_09_S100A14","Macrophage_08_SCGB3A2","Fibroblast_04_Alveolar_DPT","Macrophage_07_IGKC") ~ "module3",
- celltype %in% c("CD4T_01_IL7R","B_03_CD3E","B_05_FYN","Fibroblast_05_Alveolar_MYH11","Endothelial_07_NOTCH3","B_01_HLA-DRA","Plasma_07_IGHG_GRIFIN","Plasma_08_IGHG_GUSBP11","Plasma_03_IGHA_GUSBP11","Plasma_04_IGHA_VPS13D") ~ "module4",
- celltype %in% c("Endothelial_03_VCAM1","Endothelial_08_CCL21","Endothelial_01_FCN3","Endothelial_04_DKK2","Fibroblast_06_Alveolar_MS4A7","Endothelial_06_CD68","Mast_02_CHIT1","Macrophage_03_MARCO","Macrophage_01_LGMN","Macrophage_05_CSTB") ~ "module5",
- ))
- subcluster.hr$cellmodule <- factor(subcluster.hr$cellmodule,levels = c("module1","module2","module3",'module4','module5'))
- subcluster.hr <- subcluster.hr[order(subcluster.hr$cellmodule),]
- write.csv(subcluster.hr,file = "/data/yang/wang//subcluster.hr.csv")
- #----Figure 2B----
- #Analysis of Gene Differential Expression Across Cell Modules
- #Remove cell clusters that are less relevant and lie outside the module
- rm(list = ls())
- TIME <- readRDS(file = "./NSCLC/Figure/figure1/TIME.rds")
- subsce.corr <- TIME
- #corlow <- c("")
- #subsce.corr <- subsce.corr[,!subsce.corr$subcluster %in% freq.low]
- [email hidden] <- [email hidden] %>% mutate(cellmodule = case_when(
- subcluster %in% c("Bn_06_GZMB","pDC_03_GZMB","Plasma_09_IGHG_RRM2","Plasma_05_IGHG_IGHGP","Plasma_01_IGHA_MZB1","Plasma_02_IGHA_IGLC3","CD8T_02_GZMB",
- "CD8T_03_MKI67","CD8T_01_CCL5","Treg_FOXP3","B_02_HLA.DQB1","CD4T_02_GNB2L1","CD4T_06_ACSL5","CD8T_04_HLA-B") ~ "module1",
- subcluster %in% c("Astrocyte_03_ROM1","Endothelial_02_PTMAP2","Fibroblast_01_Myo_HIGD1B","Fibroblast_02_Myo_COL10A1","Fibroblast_03_Myo_MKI67","B_04_PTMAP2","CD4T_04_SNORD3A","Astrocyte_05_HLA-DRB5","Neurophil_01_GOS2","Astrocyte_04_SCGB3A1","Macrophage_06_C3","Astrocyte_01_CAV1","Astrocyte_02_MALAT1","Astrocyte_06_CCL5") ~ "module2",
- subcluster %in% c("NK_01_FGFBP2","CD4T_03_SCGB3A1","Endothelial_05_IL1RL1","Mast_01_GNB2L1","Mast_03_PBK","cDC_01_CLEC10A","cDC_02_CD207","Macrophage_02_FCN1","Macrophage_04_SPP1",
- "Macrophage_09_MKI67","CD4T_05_SFTPB","Plasma_06_IGHG_SFTPB","Endothelial_09_S100A14","Macrophage_08_SCGB3A2","Fibroblast_04_Alveolar_DPT","Macrophage_07_IGKC") ~ "module3",
- subcluster %in% c("CD4T_01_IL7R","B_03_CD3E","B_05_FYN","Fibroblast_05_Alveolar_MYH11","Endothelial_07_NOTCH3","B_01_HLA-DRA","Plasma_07_IGHG_GRIFIN","Plasma_08_IGHG_GUSBP11","Plasma_03_IGHA_GUSBP11","Plasma_04_IGHA_VPS13D") ~ "module4",
- subcluster %in% c("Endothelial_03_VCAM1","Endothelial_08_CCL21","Endothelial_01_FCN3","Endothelial_04_DKK2","Fibroblast_06_Alveolar_MS4A7","Endothelial_06_CD68","Mast_02_CHIT1","Macrophage_03_MARCO","Macrophage_01_LGMN","Macrophage_05_CSTB") ~ "module5",
- ))
- table(subsce.corr$cellmodule)
- getwd()
- saveRDS(subsce.corr,file = "./NSCLC/Figure/figure2/subsce.corr.rds")
- subsce.corr <- readRDS("./subsce.corr.rds")
- #Identify the differentially upregulated genes in each cell module
- DefaultAssay(subsce.corr) <- "RNA"
- Idents(subsce.corr) <- "cellmodule"
- subsce.corr.markers.up <- FindAllMarkers(subsce.corr,
- min.pct = 0.25,
- only.pos = T,
- logfc.threshold = 0.25)
- subsce.corr.markers1.up <- subsce.corr.markers.up [subsce.corr.markers.up $p_val_adj < 0.05, ]
- subsce.corr.markers1.up_TOP5 <- subsce.corr.markers1.up %>% group_by(cluster) %>% top_n(n = 5, wt = avg_log2FC)
- write.csv(subsce.corr.markers1.up,file = "./subsce.corr.markers1.up.csv")
- subsce.corr.markers1.up <- read.csv("./subsce.corr.markers1.up.csv",row.names = 1,header = T)
- subsce.corr.markers1.up$cluster <- factor(subsce.corr.markers1.up$cluster,levels = c("module1","module2","module3",'module4','module5'))
- subsce.corr.markers1.top30 <- subsce.corr.markers1.up %>% group_by(cluster) %>% top_n(n = 30, wt = avg_log2FC)
- subsce.corr.markers1.top30 <- subsce.corr.markers1.top30[order(subsce.corr.markers1.top30$cluster), ]
- write.csv(subsce.corr.markers1.top30,file = "./NSCLC/Figure/figure2/subsce.corr.markers1.top30.csv")
- #install.packages('devtools')
- #devtools::install_github('junjunlab/scRNAtoolVis')
- library(scRNAtoolVis)
- #DEG
- DefaultAssay(subsce.corr) <- "RNA"
- subsce.corr.markers <- FindAllMarkers(subsce.corr,
- min.pct = 0.25,
- only.pos = F,
- logfc.threshold = 0.25)
- subsce.corr.markers1 <- subsce.corr.markers [subsce.corr.markers $p_val_adj < 0.05, ]
- subsce.corr.markers1_TOP5 <- subsce.corr.markers1 %>% group_by(cluster) %>% top_n(n = 5, wt = avg_log2FC)
- write.csv(subsce.corr.markers1,file = "./subsce.corr.markers1.csv")
- #subsce.corr.markers1 <- read.csv("./subsce.corr.markers1.csv",row.names = 1)
- subsce.corr.markers1$cluster <- factor(subsce.corr.markers1$cluster,levels = c("module1","module2","module3",'module4','module5'))
- #save(subsce.corr,file = "F:/subsce.corr.RData")
- mycolors <- c("#f9b3ad","#80C1D7","#70cdbe","#f1dba6","#CEB6E0")
- mycolors <- c("#B1C1E3","#92D3EB","#C9E5D5","#E2EDBC","#FAE7F1")
- mycolors <- c("#9B7EBD","#70cdbe","#46aec8","#6fc08d","#457baa")
- mycolors <- c("#d72e2d","#ea9740","#316339","#7dbcd1","#313663")
- mycolors <- c("#a5c469","#d586b3","#8ea1c9","#dd9f85","#88bdaa")
- mycolors <- c("#70cdbe","#80C1D7","#968ab7","#d586b3","#eb7e60")
- jjVolcano(diffData = subsce.corr.markers1,
- log2FC.cutoff = 0.25,
- size = 2.5,
- fontface = 'italic',
- aesCol = c('#8fb4dc','#eb7e60'),
- tile.col = mycolors,
- #col.type = "adjustP",
- topGeneN = 5,
- fontface = 'italic',
- polar = T)+ ylim(-7,12)
- color = colorRampPalette(c("white","#e6573f", "#d23229"))(100)
- jjVolcano(diffData = subsce.corr.markers1,
- tile.col = mycolors,
- size = 3.5,
- pSize = 0.9,
- topGeneN = 5,
- base_size = 20,
- fontface = 'italic',
- aesCol = c('#8fb4dc','#d23229'),
- polar = T) + ylim(-12,10)#+xlim(-10,10)
- #----Figure 2C----
- #Functional enrichment analysis
- library(clusterProfiler)
- library(org.Hs.eg.db)
- library(dplyr)
- library(enrichplot)
- group <- data.frame(
- gene = subsce.corr.markers.up$gene,
- module = subsce.corr.markers.up$cluster
- )
- #SYMBOL → ENTREZID
- gene_id <- bitr(group$gene,
- fromType = "SYMBOL",
- toType = "ENTREZID",
- OrgDb = org.Hs.eg.db)
- mydf <- merge(gene_id, group, by.x = "SYMBOL", by.y = "gene")
- #KEGG
- kk <- compareCluster(
- ENTREZID ~ module,
- data = mydf,
- fun = "enrichKEGG",
- organism = "hsa",
- pAdjustMethod = "BH",
- pvalueCutoff = 0.05
- )
- dotplot(kk, showCategory = 10) +
- scale_shape_manual(values = 18)
- #----Figure 2D----
- #Gene set scoring
- subsce.corr <- readRDS("./subsce.corr.rds")
- DefaultAssay(subsce.corr) <- "RNA"
- #Antigen-presenting cell co-inhibitory genes
- APC_co_inhibition <- list(c("C10orf54","CD274","LGALS9","PDCD1LG2","PVRL3"))
- #Co-stimulatory genes of antigen-presenting cells
- APC_co_stimulation <- list(c("CD40","CD58","CD70","ICOSLG","SLAMF1","TNFSF14","TNFSF15","TNFSF18","TNFSF4","TNFSF8","TNFSF9"))
- #CC chemokine receptor genes
- CCR <- list(c("CCL16","TPO","TGFBR2","CXCL2","CCL14","TGFBR3","IL11RA","CCL11","IL4I1","IL33","CXCL12","CXCL10","BMPER","BMP8A","CXCL11","IL21R","IL17B","TNFRSF9","ILF2","CX3CR1","CCR8","TNFSF12","CSF3","TNFSF4","BMP3","CX3CL1","BMP5","CXCR2","TNFRSF10D","BMP2","CXCL14",
- "CCL28","CXCL3","BMP6","CCL21","CXCL9","CCL23","IL6","TNFRSF18","IL17RD","IL17D","IL27","CCL7","IL1R1","CXCR4","CXCR2P1","TGFB1I1","IFNGR1","IL9R","IL1RAPL1","IL11","CSF1","IL20RA","IL25","TNFRSF4","IL18","ILF3","CCL20","TNFRSF12A","IL6ST","CXCL13","IL12B","TNFRSF8",
- "IL6R","BMPR2","IFNE","IL1RAPL2","IL3RA","BMP4","CCL24","TNFSF13B","CCR4","IL2RA","IL32","TNFRSF10C","IL22RA1","BMPR1A","CXCR5","CXCR3","IFNA8","IL17REL","IFNB1","IFNAR1","TNFRSF1B","CCL17","IFNL1","IL16","IL1RL1","ILK","CCL25","ILDR2","CXCR1","IL36RN","IL34","TGFB1","IFNG",
- "IL19","ILKAP","BMP2K","CCR10","ILDR1","EPO","CCR7","IL17C","IL23A","CCR5","IL7","EPOR","CCL13","IL2RG","IL31RA","TNFAIP6","IFNL2","BMP1","IL12RB1","TNFAIP8","IL4R","TNFRSF6B","TNFAIP8L1","TNFRSF10B","IFNL3","CCL5","CXCL6","CXCL1","CCR3","TNFSF11","CSF1R","IL21","IL1RAP","IL12RB2",
- "CCL1","IL17RA","CCR1","IL1RN","TNFRSF11B","TNFRSF14","IL13","IL2RB","BMP8B","CCL2","IL24","IL18RAP","TGFBI","TNFSF10","TNFRSF11A","CXCL5","IL5RA","TNFSF9","IL1RL2","TNFRSF13C","IL36G","IL15RA","TNFRSF21","CXCL8","IL22RA2","TNFAIP8L2","IL18R1","IFNLR1","CXCR6","CCL3L3","TNFRSF1A","IL17RE","IFNGR2",
- "IL17RC","TNFAIP8L3","ILVBL","TGFBRAP1","CCL4L1","CSF2RA","CCRN4L","CCL26","TNFAIP1","CCRL2","IFNA10","TNFRSF17","IFNA13","IL20","IL18BP",'CCL3L1',"TNFSF12-TNFSF13","IL5","IL23R","IL26","TNF","TGFA","CSF2","IL1F10","CXCL17","TNFSF13","IFNA4","IL37","IL12A","IL7R","IFNA1","IL1A","IL4","IL2",
- "CCL22","CSF3R","IL10","IFNK","TGFB2","IL1R2","IL1B","IL17F","IL27RA","IL15","TNFSF8","IL36B","XCL1","CXCL16","TNFRSF19","IL3","CCL3","IFNA2","BMPR1B","IFNA21","TNFSF18","CCL8","IL17RB","TNFRSF25","IL22","IL10RB","IFNAR2","CCL18","IFNA16","CSF2RB","IL36A","TNFAIP3","IL13RA2","IL13RA1","CCR9","TNFRSF10A",
- "IFNA7","IFNW1","XCL2","TNFSF14","CCR2","BMP15","BMP10","CCL15-CCL14","TGFBR1","IFNA5","BMP7","IFNA14","IL20RB","IL10RA","IFNA17","CCR6","TGFB3","CCL15","CCL4","CCL27","TNFRSF13B","TNFAIP2","IL31","IL17A","TNFSF15","CCL19","IFNA6","IL9"))
- #Checkpoint genes
- Check_point <- list(c("IDO1","LAG3","CTLA4","TNFRSF9","ICOS","CD80","PDCD1LG2","TIGIT","CD70","TNFSF9","ICOSLG","KIR3DL1","CD86","PDCD1","LAIR1","TNFRSF8","TNFSF15","TNFRSF14","IDO2","CD276","CD40","TNFRSF4","TNFSF14","HHLA2","CD244",
- "CD274","HAVCR2","CD27","BTLA","LGALS9","TMIGD2","CD28","CD48","TNFRSF25","CD40LG","ADORA2A","VTCN1","CD160","CD44","TNFSF18","TNFRSF18","BTNL2","C10orf54","CD200R1","TNFSF4","CD200","NRP1"))
- #Genes encoding cell lysis activity
- Cytolytic_activity <- list(c("PRF1","GZMA"))
- #Human leukocyte antigen genes
- HLA <- list(c("HLA-E","HLA-DPB2","HLA-C","HLA-J","HLA-DQB1","HLA-DQB2","HLA-DQA2","HLA-DQA1","HLA-A","HLA-DMA","HLA-DOB","HLA-DRB1","HLA-H","HLA-B","HLA-DRB5","HLA-DOA","HLA-DPB1","HLA-DRA","HLA-DRB6","HLA-L","HLA-F","HLA-G","HLA-DMB","HLA-DPA1"))
- #pro-inflammatory genes
- Inflammation_promoting <- list(c("CCL5","CD19","CD8B","CXCL10","CXCL13","CXCL9","GNLY","GZMB","IFNG","IL12A","IL12B","IRF1","PRF1","STAT1","TBX21"))
- #Major Histocompatibility Complex Class I Gene
- MHC_class_I <- list(c("B2M","HLA-A","TAP1"))
- #anti-inflammatory genes
- Parainflammation <- list(c("CXCL10","PLAT","CCND1","LGMN","PLAUR","AIM2","MMP7","ICAM1","MX2","CXCL9","ANXA1","TLR2","PLA2G2D","ITGA2","MX1","HMOX1",
- "CD276","TIRAP","IL33","PTGES","TNFRSF12A","SCARB1","CD14","BLNK","IFIT3",'RETNLB',"IFIT2","ISG15","OAS2","REL","OAS3","CD44","PPARG","BST2","OAS1","NOX1","PLA2G2A","IFIT1",'IFITM3',"IL1RN"))
- #T-cell co-inhibitory genes
- T_cell_co_inhibition <- list(c("CD160","CD244","CD274","CTLA4","HAVCR2","LAG3","LAIR1","TIGIT"))
- #T-cell costimulation
- T_cell_co_stimulation <- list(c("CD2","CD226","CD27","CD28","CD40LG","ICOS","SLAMF1","TNFRSF18","TNFRSF25","TNFRSF4","TNFRSF8","TNFRSF9","TNFSF14"))
- #Type I interferon
- Type_I_IFN_Reponse <- list(c("DDX4","IFIT1","IFIT2","IFIT3","IRF7","ISG20","MX1","MX2","RSAD2","TNFSF10"))
- #Type II interferon
- Type_II_IFN_Reponse <- list(c("GPR146","SELP","AHR"))
- #T-cell status genes
- T_naiveness <- list(c("CCR6","CCR7","TCF7","SELL","LEF1","IL7R"))
- T_cytotoxicity <- list(c("GZMA","GZMB","GZMH","GZMK","PRF1","CXCL13","GNLY","IFNG","NKG7"))
- T_exhaustion <- list(c("PDCD1","CTLA4","HAVCR2","LAG3","TIGIT","LAYN"))
- T_proliferation <- list(c("MKI67","TOP2A","CD3D","CD3E"))
- #gene list
- library(readxl)
- genelist <- "./GeneList1.xlsX"
- genes <- read_excel(genelist)
- #Antigen Presentation and Processing Gene Set
- Antigen_Processing_and_Presentation <- subset(genes,Category=="Antigen_Processing_and_Presentation")
- Antigen_Processing_and_Presentation <- list(Antigen_Processing_and_Presentation$Symbol)
- #TCR signaling
- TCRsignalingPathway <- subset(genes,Category=="TCRsignalingPathway")
- TCRsignalingPathway <- list(TCRsignalingPathway$Symbol)
- #TNF (Tumor Necrosis Factor) gene set
- TNF_Family_Members <- subset(genes,Category==c("TNF_Family_Members"))
- TNF_Family_Members_Receptors <- subset(genes,Category==c("TNF_Family_Members_Receptors"))
- TNF_Family <- rbind(TNF_Family_Members,TNF_Family_Members_Receptors)
- TNF_Family <- list(TNF_Family)
- #Natural killer cell cytotoxicity
- NaturalKiller_Cell_Cytotoxicity <- subset(genes,Category=="NaturalKiller_Cell_Cytotoxicity")
- NaturalKiller_Cell_Cytotoxicity <- list(NaturalKiller_Cell_Cytotoxicity)
- #Cytokines
- Cytokines <- subset(genes,Category=="Cytokines")
- Cytokines <- list(Cytokines)
- #BCRSignalingPathway
- BCRSignalingPathway <- subset(genes,Category=="BCRSignalingPathway")
- BCRSignalingPathway <- list(BCRSignalingPathway)
- #Interleukins
- Interleukins <- subset(genes,Category=="Interleukins")
- Interleukins <- list(Interleukins)
- #TGFb_Family_Member
- TGFb_Family_Member <- subset(genes,Category=="TGFb_Family_Member")
- TGFb_Family_Member <- list(TGFb_Family_Member)
- #TIMELASER_marker
- TIMELASER_marker <- read.csv(file = "./TIMELASER_marker.csv")
- TIME_IA <- subset(TIMELASER_marker, TIMELASER.subtype=="TIME-IA")
- IA.gene <- list(TIME_IA$Gene)
- TIME_ISM <- subset(TIMELASER_marker, TIMELASER.subtype=="TIME-ISM")
- ISM.gene <- list(TIME_ISM$Gene)
- TIME_ISS <- subset(TIMELASER_marker, TIMELASER.subtype=="TIME-ISS")
- ISS.gene <- list(TIME_ISS$Gene)
- TIME_IE <- subset(TIMELASER_marker, TIMELASER.subtype=="TIME-IE")
- IE.gene <- list(TIME_IE$Gene)
- TIME_IR <- subset(TIMELASER_marker, TIMELASER.subtype=="TIME-IR")
- IR.gene <- list(TIME_IR$Gene)
- library(Seurat)
- library(ggplot2)
- library(dplyr)
- library(ggpubr)
- DefaultAssay(subsce.corr) <- "RNA"
- gene_sets <- list(
- IA = IA.gene,
- ISM = ISM.gene,
- ISS = ISS.gene,
- IE = IE.gene,
- IR = IR.gene,
- APC_co_inhibition = APC_co_inhibition,
- APC_co_stimulation = APC_co_stimulation,
- CCR = CCR,
- Check_point = Check_point,
- Cytolytic_activity = Cytolytic_activity,
- HLA = HLA,
- Inflammation_promoting = Inflammation_promoting,
- MHC_class_I = MHC_class_I,
- Parainflammation = Parainflammation,
- T_cell_co_inhibition = T_cell_co_inhibition,
- T_cell_co_stimulation = T_cell_co_stimulation,
- Type_I_IFN_Reponse = Type_I_IFN_Reponse,
- Type_II_IFN_Reponse = Type_II_IFN_Reponse,
- T_naiveness = T_naiveness,
- T_cytotoxicity = T_cytotoxicity,
- T_exhaustion = T_exhaustion,
- T_proliferation = T_proliferation,
- Antigen_Processing_and_Presentation = Antigen_Processing_and_Presentation,
- TCRsignalingPathway = TCRsignalingPathway,
- TNF_Family = TNF_Family,
- NaturalKiller_Cell_Cytotoxicity = NaturalKiller_Cell_Cytotoxicity,
- Cytokines = Cytokines,
- BCRSignalingPathway = BCRSignalingPathway,
- Interleukins = Interleukins,
- TGFb_Family_Member = TGFb_Family_Member
- )
- #AddModuleScore
- for (nm in names(gene_sets)) {
- subsce.corr <- AddModuleScore(
- subsce.corr,
- features = gene_sets[[nm]],
- ctrl = 100,
- name = "score"
- )
- }
- # score1~scoreN
- score_cols <- grep("^score", colnames([email hidden]), value = TRUE)
- colnames([email hidden])[match(score_cols, colnames([email hidden]))] <- names(gene_sets)
- plot_list <- list()
- mycolors <- c("#70cdbe","#80C1D7","#968ab7","#d586b3","#eb7e60")
- for (nm in names(gene_sets)) {
- df <- [email hidden] %>%
- mutate(cellmodule = factor(cellmodule))
- # Kruskal-Wallis
- kw <- kruskal.test(df[[nm]] ~ df$cellmodule)
- p_label <- paste0(
- "Kruskal-Wallis: χ²(", kw$parameter, ") = ",
- format(kw$statistic, digits = 3),
- ifelse(kw$p.value < 0.001,
- ", p < 0.001",
- paste0(", p = ", format(kw$p.value, digits = 3)))
- )
- p <- ggplot(df, aes(x = cellmodule, y = .data[[nm]], fill = cellmodule)) +
- geom_violin(width = 0.8, alpha = 0.85, scale = "width") +
- geom_boxplot(width = 0.15, fill = "white", outlier.size = 1) +
- scale_fill_manual(values = mycolors) +
- theme_bw() +
- annotate(
- "text",
- x = 3,
- y = Inf,
- label = p_label,
- vjust = 1.5,
- size = 4,
- fontface = "italic"
- ) +
- labs(title = nm)
- plot_list[[nm]] <- p
- }
- #----Figure 2E----
- #Determine the TIME subtype for each patient
- write.csv(prop.table(table(subsce.corr$subcluster,subsce.corr$orig.ident),1),file = "./patient.type.csv")
- ALL <- data.frame(read.csv(file="./NSCLC/Figure/figure2/patient.type.csv"))#,row.names = 1))
- ALL <- ALL %>% mutate(cellmodule = case_when(
- X %in% c("Bn_06_GZMB","pDC_03_GZMB","Plasma_09_IGHG_RRM2","Plasma_05_IGHG_IGHGP","Plasma_01_IGHA_MZB1","Plasma_02_IGHA_IGLC3","CD8T_02_GZMB",
- "CD8T_03_MKI67","CD8T_01_CCL5","Treg_FOXP3","B_02_HLA.DQB1","CD4T_02_GNB2L1","CD4T_06_ACSL5","CD8T_04_HLA.B") ~ "module1",
- X %in% c("Astrocyte_03_ROM1","Endothelial_02_PTMAP2","Fibroblast_01_Myo_HIGD1B","Fibroblast_02_Myo_COL10A1","Fibroblast_03_Myo_MKI67","B_04_PTMAP2","CD4T_04_SNORD3A",
- "Astrocyte_05_HLA.DRB5","Neurophil_01_GOS2","Astrocyte_04_SCGB3A1","Macrophage_06_C3","Astrocyte_01_CAV1","Astrocyte_02_MALAT1","Astrocyte_06_CCL5") ~ "module2",
- X %in% c("NK_01_FGFBP2","CD4T_03_SCGB3A1","Endothelial_05_IL1RL1","Mast_01_GNB2L1","Mast_03_PBK","cDC_01_CLEC10A","cDC_02_CD207","cDC_02_CD207","Macrophage_02_FCN1","Macrophage_04_SPP1",
- "Macrophage_09_MKI67","CD4T_05_SFTPB","Plasma_06_IGHG_SFTPB","Endothelial_09_S100A14","Macrophage_08_SCGB3A2","Fibroblast_04_Alveolar_DPT","Macrophage_07_IGKC") ~ "module3",
- X %in% c("CD4T_01_IL7R","B_03_CD3E","B_05_FYN","Fibroblast_05_Alveolar_MYH11","Endothelial_07_NOTCH3","B_01_HLA.DRA","Plasma_07_IGHG_GRIFIN","Plasma_08_IGHG_GUSBP11","Plasma_03_IGHA_GUSBP11","Plasma_04_IGHA_VPS13D") ~ "module4",
- X %in% c("Endothelial_03_VCAM1","Endothelial_08_CCL21","Endothelial_01_FCN3","Endothelial_04_DKK2","Fibroblast_06_Alveolar_MS4A7","Endothelial_06_CD68","Mast_02_CHIT1","Macrophage_03_MARCO","Macrophage_01_LGMN","Macrophage_05_CSTB") ~ "module5",
- ))
- which.max ()
- rownames(ALL) <- ALL$X
- ALL$X <-NULL
- library(stringr)
- module1 <- subset(ALL,cellmodule=="module1")
- module1$cellmodule <- NULL
- module_freq <- data.frame(colSums(module1))
- module2 <- subset(ALL,cellmodule=="module2")
- module2$cellmodule <- NULL
- module_freq[[2]] <- data.frame(colSums(module2))
- module3 <- subset(ALL,cellmodule=="module3")
- module3$cellmodule <- NULL
- module_freq[[3]] <- data.frame(colSums(module3))
- module4 <- subset(ALL,cellmodule=="module4")
- module4$cellmodule <- NULL
- module_freq[[4]] <- data.frame(colSums(module4))
- module5 <- subset(ALL,cellmodule=="module5")
- module5$cellmodule <- NULL
- module_freq[[5]] <- data.frame(colSums(module5))
- module_freq[[6]] <- data.frame(rowSums(module_freq))
- colnames(module_freq) <- c("module1","module2","module3","module4","module5","sum_freq")
- module_freq$module1 <- module_freq$module1/module_freq$sum_freq
- module_freq$module2 <- module_freq$module2/module_freq$sum_freq
- module_freq$module3 <- module_freq$module3/module_freq$sum_freq
- module_freq$module4 <- module_freq$module4/module_freq$sum_freq
- module_freq$module5 <- module_freq$module5/module_freq$sum_freq
- module_freq[[6]] <- NULL
- module_freq$patient <- rownames(module_freq)
- row_anno <- module_freq$patient
- row_anno <- data.frame(row_anno)
- colnames(row_anno) <- "patient"
- #row_anno$patient <- rownames(row_anno)
- #row_anno$patient <- NULL
- row_anno <- row_anno %>% mutate(mutation = case_when(
- patient %in% c("P1","P2","P3","P4","P5","P6","P7","P8","P9","P10","P11") ~ "EGFR",
- patient %in% c("P12","P13","P14","P15","P16","P17","P18","P19","P20","P21") ~ "EGFR-BM",
- patient %in% c("P22","P23") ~ "EGFR-co-mutation",
- patient %in% c("P24","P25","P26","P27","P28","P29","P30","P31","P32","P33","P34","P35") ~ "KRAS",
- patient %in% c("P36","P37","P38") ~ "KRAS-co-mutation",
- patient %in% c("P39") ~ "ALK",
- patient %in% c("P40","P41","P42") ~ "ROS1",
- patient %in% c("P43") ~ "TP53",
- patient %in% c("P44") ~ "MET-BM",
- patient %in% c("P45") ~ "HER2"))
- rownames(row_anno) <- row_anno$patient
- row_anno$mutation<- factor(row_anno$mutation)
- rownames(module_freq) <- module_freq$patient
- row_anno$patient <- NULL
- module_freq$patient <- NULL
- #factor(row_anno$mutation)
- row_anno <- data.frame(t(row_anno))
- module_freq <- data.frame(t(module_freq))
- #row_anno$mutation = list(c("EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR","EGFR-co-mutation","EGFR-co-mutation","EGFR-co-mutation","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS","KRAS-co-mutation","KRAS-co-mutation","KRAS-co-mutation","ALK","ROS1","ROS1","ROS1","TP53","MET","BRAF"))
- module_freq
- colSums(module_freq)
- row_anno <- data.frame(t(row_anno))
- row_anno$mutation <- factor(row_anno$mutation,levels = c("EGFR","EGFR-BM","EGFR-co-mutation","KRAS","KRAS-co-mutation","ALK","ROS1","TP53","MET-BM","HER2"))
- library("pheatmap")
- ann_colors=list(class=c(L='#009933',R='#CC33CC',F='#FDDCA9'))
- mycol2 = list(mutation = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #names(mycol2) <- unique(row_anno$mutation)
- module_freq <- data.frame(t(module_freq))
- patientorder <- c("P22","P43","P9","P1","P4","P25","P10","P27",
- "P18","P15","P38","P14","P44","P12","P13","P3",
- "P16","P42","P2","P23","P8","P41","P26","P20","P17","P45","P21","P36","P7","P11","P19","P39","P34","P5",
- "P31","P28","P30","P29","P35","P32",
- "P24","P40","P37","P33","P6")
- df_sorted <- module_freq[patientorder,]
- df_sorted <- data.frame(t(df_sorted))
- #color = colorRampPalette(c("white","#e6573f", "#d23229"))(100)
- color = colorRampPalette(c("white","#0172be"))(100)
- pheatmap(df_sorted,
- color = color,
- annotation_col = row_anno,
- annotation_colors = mycol2,
- display_numbers = F,
- border="white",
- cluster_cols = F,
- cluster_rows = F,
- treeheight_col = 40,
- treeheight_row = 45,
- border_color = NA)
- #----Figure 2F----
- #Plotting the Organizational Preference Map for the TIME Subtype
- subsce.corr <- readRDS(file = "./NSCLC/Figure/figure2/subsce.corr.rds")
- ROIE <- function(crosstab){
- ## Calculate the Ro/e value from the given crosstab
- ##
- ## Args:
- #' @crosstab: the contingency table of given distribution
- ##
- ## Return:
- ## The Ro/e matrix
- rowsum.matrix <- matrix(0, nrow = nrow(crosstab), ncol = ncol(crosstab))
- rowsum.matrix[,1] <- rowSums(crosstab)
- colsum.matrix <- matrix(0, nrow = ncol(crosstab), ncol = ncol(crosstab))
- colsum.matrix[1,] <- colSums(crosstab)
- allsum <- sum(crosstab)
- roie <- divMatrix(crosstab, rowsum.matrix %*% colsum.matrix / allsum)
- row.names(roie) <- row.names(crosstab)
- colnames(roie) <- colnames(crosstab)
- return(roie)
- }
- divMatrix <- function(m1, m2){
- ## Divide each element in turn in two same dimension matrixes
- ##
- ## Args:
- #' @m1: the first matrix
- #' @m2: the second matrix
- ##
- ## Returns:
- ## a matrix with the same dimension, row names and column names as m1.
- ## result[i,j] = m1[i,j] / m2[i,j]
- dim_m1 <- dim(m1)
- dim_m2 <- dim(m2)
- if( sum(dim_m1 == dim_m2) == 2 ){
- div.result <- matrix( rep(0,dim_m1[1] * dim_m1[2]) , nrow = dim_m1[1] )
- row.names(div.result) <- row.names(m1)
- colnames(div.result) <- colnames(m1)
- for(i in 1:dim_m1[1]){
- for(j in 1:dim_m1[2]){
- div.result[i,j] <- m1[i,j] / m2[i,j]
- }
- }
- return(div.result)
- }
- else{
- warning("The dimensions of m1 and m2 are different")
- }
- }
- metadata <- [email hidden]
- meta_filt <- metadata[metadata$mutation %in% c("ALK","EGFR","EGFR-BM","EGFR-co-mutation","HER2","KRAS","KRAS-co-mutation","MET-BM","ROS1","TP53"),]
- meta_filt$mutation <- factor(as.vector(meta_filt$mutation),levels=c("ALK","EGFR","EGFR-BM","EGFR-co-mutation","HER2","KRAS","KRAS-co-mutation","MET-BM","ROS1","TP53"))
- summary <- table(meta_filt[,c('cellmodule','mutation')])
- # ro/e
- roe <- as.data.frame(ROIE(summary))
- library("pheatmap")
- pheatmap(roe, display_numbers = TRUE,number_color = "black",cluster_row = FALSE,cluster_col = FALSE,
- color = colorRampPalette(c("#e7eb8e","#cd782d","firebrick3"))(50))
- #Create a lollipop chart showing organizational preferences for the TIME subtype
- roe0 <- as.data.frame(t(roe))
- roe0$group <- rownames(roe0)
- library(ggpubr)
- mycol2 = c("#c6b7d4","#d44e26","#e3a264","#6fc2d0","#6f9abf","#a5c49b","#7266ac","#FF9966","#d84986","#2d588e")
- #module1
- ggdotchart(roe0, x = "group", y = "module1",
- color = "group", # Color by groups
- sorting = "descending", # Sort value in descending order
- add = "segments", # Add segments from y = 0 to dots
- add.params = list(color = "lightgray", size = 2), # Change segment color and size
- dot.size = 11, # Large dot size
- label = round(roe0$module1,2), # Add mpg values as dot labels
- font.label = list(color = "black", size = 9,
- vjust = 0.5), # Adjust label parameters
- ggtheme = theme_pubr())+
- geom_hline(yintercept = 1, linetype = 2, color = "black")+
- theme(legend.position='none')+ylab("Ro/e")+ggtitle("Ro/e-module1")+
- theme(axis.text.x = element_text(angle = 45,vjust = 1))+
- scale_color_manual(values = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #module2
- ggdotchart(roe0, x = "group", y = "module2",
- color = "group", # Color by groups
- sorting = "descending", # Sort value in descending order
- add = "segments", # Add segments from y = 0 to dots
- add.params = list(color = "lightgray", size = 2), # Change segment color and size
- dot.size = 11, # Large dot size
- label = round(roe0$module2,2), # Add mpg values as dot labels
- font.label = list(color = "black", size = 9,
- vjust = 0.5), # Adjust label parameters
- ggtheme = theme_pubr())+
- geom_hline(yintercept = 1, linetype = 2, color = "black")+
- theme(legend.position='none')+ylab("Ro/e")+ggtitle("Ro/e-module2")+
- theme(axis.text.x = element_text(angle = 45,vjust = 1))+
- scale_color_manual(values = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #module3
- ggdotchart(roe0, x = "group", y = "module3",
- color = "group", # Color by groups
- sorting = "descending", # Sort value in descending order
- add = "segments", # Add segments from y = 0 to dots
- add.params = list(color = "lightgray", size = 2), # Change segment color and size
- dot.size = 11, # Large dot size
- label = round(roe0$module3,2), # Add mpg values as dot labels
- font.label = list(color = "black", size = 9,
- vjust = 0.5), # Adjust label parameters
- ggtheme = theme_pubr())+
- geom_hline(yintercept = 1, linetype = 2, color = "black")+
- theme(legend.position='none')+ylab("Ro/e")+ggtitle("Ro/e-module3")+
- theme(axis.text.x = element_text(angle = 45,vjust = 1))+
- scale_color_manual(values = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #module4
- ggdotchart(roe0, x = "group", y = "module4",
- color = "group", # Color by groups
- sorting = "descending", # Sort value in descending order
- add = "segments", # Add segments from y = 0 to dots
- add.params = list(color = "lightgray", size = 2), # Change segment color and size
- dot.size = 11, # Large dot size
- label = round(roe0$module4,2), # Add mpg values as dot labels
- font.label = list(color = "black", size = 9,
- vjust = 0.5), # Adjust label parameters
- ggtheme = theme_pubr())+
- geom_hline(yintercept = 1, linetype = 2, color = "black")+
- theme(legend.position='none')+ylab("Ro/e")+ggtitle("Ro/e-module4")+
- theme(axis.text.x = element_text(angle = 45,vjust = 1))+
- scale_color_manual(values = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #module5
- ggdotchart(roe0, x = "group", y = "module5",
- color = "group", # Color by groups
- sorting = "descending", # Sort value in descending order
- add = "segments", # Add segments from y = 0 to dots
- add.params = list(color = "lightgray", size = 2), # Change segment color and size
- dot.size = 11, # Large dot size
- label = round(roe0$module5,2), # Add mpg values as dot labels
- font.label = list(color = "black", size = 9,
- vjust = 0.5), # Adjust label parameters
- ggtheme = theme_pubr())+
- geom_hline(yintercept = 1, linetype = 2, color = "black")+
- theme(legend.position='none')+ylab("Ro/e")+ggtitle("Ro/e-module5")+
- theme(axis.text.x = element_text(angle = 45,vjust = 1))+
- scale_color_manual(values = c("EGFR"="#c6b7d4","EGFR-BM"="#d44e26","EGFR-co-mutation"="#e3a264","KRAS"="#6fc2d0","KRAS-co-mutation"="#6f9abf","ALK"="#a5c49b","ROS1"="#7266ac","TP53"="#FF9966","MET-BM"="#d84986","HER2"="#2d588e"))
- #Plotting a scatter plot of gene set scores
- library(ggplot2)
- library(ggsankey)
- subsce.corr <- readRDS("./NSCLC/Figure/figure2/subsce.corr.rds")
- DefaultAssay(subsce.corr) <- "RNA"
- immune.inhibitor <- list(c("ADORA2A","BTLA","CD160","CD244","CD274","CD96","CSF1R","CTLA4","HAVCR2","IDO1","IL10","IL10RB","KDR","KIR2DL1","KIR2DL3","LAG3","LGALS9","PDCD1","PDCD1LG2","TGFB1","TGFBR1","TIGIT","VTCN1"))
- Inscore <- AddModuleScore(subsce.corr,
- features = immune.inhibitor,
- ctrl = 100,
- name = "AUCELL")
- colnames([email hidden])
- colnames([email hidden])[28] <- 'immune.inhibitor'
- immune.stimulator <- list(c("CD27","CD276","CD28","CD40","CD40LG","CD48","CD70","CD80","CD86","CXCL12","CXCR4","ENTPD1","HHLA2","ICOS","ICOSLG","IL2RA","IL6","IL6R","KLRC1","KLRK1","LTA","MICB","NT5E","PVR","RAET1E","TMIGD2","TNFRSF13B","TNFRSF13C","TNFRSF14","TNFRSF17","TNFRSF18","TNFRSF25","TNFRSF4","TNFRSF8","TNFRSF9","TNFSF13","TNFSF13B","TNFSF14","TNFSF15","TNFSF18","TNFSF4","TNFSF9","ULBP1"))
- Inscore <- AddModuleScore(Inscore,
- features = immune.stimulator,
- ctrl = 100,
- name = "AUCELL")
- colnames([email hidden])
- colnames([email hidden])[29] <- 'immune.stimulator'
- Chemokine.receptor <- list(c("CCR1","CCR2","CCR3","CCR4","CCR5","CCR6","CCR7","CCR8","CCR9","CCR10", "CXCR1","CXCR2","CXCR3","CXCR4","CXCR5","CXCR6","XCR1","CX3R1"))
- Inscore <- AddModuleScore(Inscore,
- features = Chemokine.receptor,
- ctrl = 100,
- name = "AUCELL")
- colnames([email hidden])
- colnames([email hidden])[30] <- 'Chemokine.receptor'
- Chemokine <- list(c("CCL1","CCL2","CCL3","CCL4","CCL5","CCL7","CCL8","CCL11","CCL13","CCL14","CCL15","CCL16","CCL17","CCL18","CCL19","CCL20","CCL21","CCL22","CCL23","CCL24","CCL25","CCL26","CCL28","CX3CL1","CXCL1","CXCL2","CXCL3","CXCL5","CXCL6","CXCL8","CXCL9","CXCL10","CXCL11","CXCL12","CXCL13","CXCL14","CXCL16","CXCL17"))
- Inscore <- AddModuleScore(Inscore,
- features = Chemokine,
- ctrl = 100,
- name = "AUCELL")
- colnames([email hidden])
- colnames([email hidden])[31] <- 'Chemokine'
- #----Figure 2G----
- #The 14 malicious pathways in the decouple package are scored on CM1-CM5
- library(Seurat)
- library(decoupleR)
- library(dplyr)
- library(tibble)
- library(tidyverse)
- corsce <- readRDS("./yang/wang/NSCLC/subsce.corr.rds")
- net <- get_progeny(organism = 'human', top = 500)
- mat <- as.matrix(corsce@assays$RNA@layers$data)
- rownames(mat) <- rownames(corsce)
- colnames(mat) <- colnames(corsce)
- acts <- run_mlm(mat=mat, net=net, .source='source', .target='target',
- .mor='weight', minsize = 5)
- acts
- corsce[['pathwaysmlm']] <- acts %>%
- pivot_wider(id_cols = 'source', names_from = 'condition', values_from = 'score') %>%
- column_to_rownames('source') %>%
- Seurat::CreateAssayObject()
- DefaultAssay(corsce) <- 'pathwaysmlm'
- corsce <- ScaleData(corsce)
- corsce@assays$pathwaysmlm@data <- corsce@assays$[email hidden]
- #module
- Idents(corsce) <- "cellmodule"
- df <- t(as.matrix(corsce@assays$pathwaysmlm@data)) %>%
- as.data.frame() %>%
- mutate(cellmodule = Idents(corsce)) %>%
- pivot_longer(cols = -cellmodule, names_to = "pathway", values_to = "score") %>%
- group_by(cellmodule, pathway) %>%
- summarise(mean_score = mean(score), .groups = "drop")
- selected_pathways <- c("Androgen","EGFR","Estrogen","Hypoxia","JAK-STAT","MAPK","NFkB","p53","PI3K","TGFb","TNFa","Trail","VEGF","WNT")
- df_filtered <- df %>%
- filter(pathway %in% selected_pathways)
- top_acts_mat <- df_filtered %>%
- pivot_wider(names_from = pathway, values_from = mean_score) %>%
- column_to_rownames('cellmodule') %>%
- as.matrix()
- library(pheatmap)
- module.top_acts_mat <- top_acts_mat
- pheatmap(module.top_acts_mat,
- scale = "row",
- cluster_rows = TRUE,
- cluster_cols = TRUE,
- color = colorRampPalette(c("#A5CCE0", "white", "#d66c61"))(100),
- main = "Pathway Activity across Cell Modules")
- #mutation
- Idents(corsce) <- "mutation"
- df <- t(as.matrix(corsce@assays$pathwaysmlm@data)) %>%
- as.data.frame() %>%
- mutate(mutation = Idents(corsce)) %>%
- pivot_longer(cols = -mutation, names_to = "pathway", values_to = "score") %>%
- group_by(mutation, pathway) %>%
- summarise(mean_score = mean(score), .groups = "drop")
- selected_pathways <- c("Androgen","EGFR","Estrogen","Hypoxia","JAK-STAT","MAPK","NFkB","p53","PI3K","TGFb","TNFa","Trail","VEGF","WNT")
- df_filtered <- df %>%
- filter(pathway %in% selected_pathways)
- top_acts_mat <- df_filtered %>%
- pivot_wider(names_from = pathway, values_from = mean_score) %>%
- column_to_rownames('mutation') %>%
- as.matrix()
- library(pheatmap)
- pheatmap(top_acts_mat,
- scale = "row",
- cluster_rows = TRUE,
- cluster_cols = TRUE,
- border="white",
- border_color = NA,
- color = colorRampPalette(c("#A5CCE0", "white", "#d66c61"))(100),
- main = "Pathway Activity across Cell Modules")
- df.module <- data.frame(module.top_acts_mat)
- df.mutation <- data.frame(top_acts_mat)
- write.csv(df.module,file = "/data/yang/wang/NSCLC/df.module.csv")
- write.csv(df.mutation,file = "/data/yang/wang/NSCLC/df.mutation.csv")
- #----Figure 2H----
- #Drawing Sankey
- #Classify regulon_group expression values into high and low categories
- df <- [email hidden][,c(4,27:31)]
- df$score <- ifelse(df$immune.inhibitor >= median(df$immune.inhibitor, na.rm = TRUE), "High", "Low")
- df$score <- ifelse(df$immune.stimulator >= median(df$immune.stimulator, na.rm = TRUE), "High", "Low")
- df$score <- ifelse(df$Chemokine.receptor >= median(df$Chemokine.receptor, na.rm = TRUE), "High", "Low")
- df$score <- ifelse(df$Chemokine >= median(df$Chemokine, na.rm = TRUE), "High", "Low")
- write.csv(df,file = "./NSCLC/Figure/figure2/df.csv")
- library(ggsankey)
- library(tidyverse)
- level <- unique(df$score)
- mutation <- unique(df$mutation)
- module <- unique(df$cellmodule)
- level_colors <- c(
- "Low" = "#ADD4A5",
- "High" = "#C9B8DA"
- )
- mutation_colors <- c(
- "EGFR" = "#c6b7d4",
- "EGFR-BM" = "#d44e26",
- "EGFR-co-mutation" = "#e3a264",
- "KRAS" = "#6fc2d0",
- "KRAS-co-mutation" = "#6f9abf",
- "ALK" = "#a5c49b",
- "ROS1" = "#7266ac",
- "TP53" = "#FF9966",
- "MET-BM" = "#d84986",
- "HER2" = "#2d588e"
- )
- module_colors <- c(
- "module1" = "#70cdbe",
- "module2" = "#80C1D7",
- "module3" = "#968ab7",
- "module4" = "#d586b3",
- "module5" = "#eb7e60")
- level <- names(level_colors)
- mutation <- names(mutation_colors)
- module <- names(module_colors)
- color_palette <- c(module_colors,level_colors,mutation_colors)
- df$cellmodule <- factor(df$cellmodule,levels = c("module1","module2","module3","module4","module5"))
- df_sankey <- df %>%
- select(cellmodule,score, mutation) %>%
- make_long(cellmodule,score, mutation)
- ggplot(df_sankey, aes(x = x,
- next_x = next_x,
- node = node,
- next_node = next_node,
- fill = node,
- label = node)) +
- scale_fill_manual(values = color_palette) +
- geom_sankey(flow.alpha = 0.6, smooth = 6, width = 0.15) +
- geom_sankey_text(size = 3, color = "black") +
- theme_void() +
- theme(legend.position = "none")
Figure2.R at commit 44ddfe7, under MIT · at the source
Overview
- College of Bioinformatics Science and Technology, Harbin Medical University, Harbin 150081, China; (K.Y.); (K.Y.); (J.W.); (H.Z.); (W.J.); (D.M.); (X.P.); (Y.Y.); (X.G.); (J.B.); (C.H.)
- School of Intelligent Medicine and Technology, Big Data Research Center, Hainan Medical University, No. 3 Xueyuan Road, Longhua District, Haikou 571199, China
Abstract
Oncogenic driver mutations in non-small cell lung cancer (NSCLC) activate defined signaling pathways that sustain tumor growth and influence the immune landscape. Yet, how coordinated interactions among diverse cell populations within the tumor immune microenvironment (TIME) contribute to this process remains largely unresolved. To address this, we profiled approximately 200,000 single cells from 45 treatment-naïve NSCLC patients representing seven major driver mutations. This analysis uncovered five multicellular modules (CM1–5) with distinct functional properties, each linked to specific malignant regulatory programs. Among them, CM2 and CM5 exhibited pronounced invasive features and were associated with unfavorable clinical outcomes. CM2 was predominantly observed in EGFR- and MET-driven brain metastases and was defined by strong crosstalk between astrocytes and myofibroblasts. Factors such as SPP1, PTN, and PSAP, together with metabolic alterations, contributed to a microenvironment supportive of metastatic colonization in the brain. By contrast, CM5 was enriched in ROS1-, KRAS-, and EGFR-mutant tumors and consisted of diverse myeloid and endothelial subsets characterized by immunosuppressive and pro-angiogenic signaling, including MIF, GALECTIN, and RETN, collectively facilitating immune escape and vascular remodeling. We further constructed and validated a driver mutation-specific prognostic signature (DMSP.sig) model integrating receptor–ligand interactions and core transcription factors, which effectively stratified patient survival. Leveraging this model, we also identified potential therapeutic candidates linked to these prognostic features, highlighting opportunities for clinical intervention. In summary, our study delineates how oncogenic drivers give rise to distinct TIME architectures, providing a framework for prognostic assessment and precision immunotherapy in high-risk NSCLC.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 40 matches between paragraphs and lines of code.
Zhangyunpeng1987/NSCLC-DMSPsig
44ddfe7e75bb24418c7eab6299ec053583865f57, 5 May 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
15 files
- code/
Figure1/ , R, 1,151 lines, 5 matchesFigure1.R - code/
Figure2/ , R, 895 lines, 7 matchesFigure2.R - code/
Figure3/ , R, 1,504 lines, 4 matchesFigure3.R - code/
Figure4/ , R, 726 lines, 6 matchesFigure4.R - code/
Figure5/ , R, 1,061 lines, 6 matchesFigure5.R - code/
Figure7/ , R, 62 lines, 2 matchesFigure7.R - code/
FigureS1/ , R, 108 lines, 1 matchFigureS1.R - code/
FigureS2/ , R, 64 lines, 1 matchFigureS2.R - code/
FigureS3/ , R, 810 lines, 1 matchFigureS3.R - code/
FigureS4/ , R, 302 lines, 3 matchesFigureS4.R - code/
FigureS5/ , R, 327 lines, 3 matchesFigureS5.R - code/
FigureS6/ , R, 69 linesFigureS6.R - code/
FigureS7/ , R, 129 lines, 1 matchFigureS7.R - LICENSE, License, 21 lines
- README.md, Text, 127 lines
Code Availability Statement
The R scripts used for data processing, analysis, and visualization in this study are publicly available at: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 13 scripts, each with its path and the digest of its content;
- 40 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:GSE171145, at NCBI GEO; found in “Data Availability Statement”
Data Availability Statement
All data used in this study are publicly available from GEO and TCGA. The datasets analyzed are existing publicly accessible datasets, and detailed information is provided in Table S1. The scRNA-seq datasets used in this study include GSE171145 (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 13 authors, 5 keywords, 10 MeSH terms, 7 funders, 94 references.
Cite
This paper
Yang, K., Yang, K., Wang, J., Zhao, H., Jiang, W., Mu, D., Peng, X., Yan, Y., Gao, X., Bai, J., Hu, C., Zhang, Y., & Li, X. (2026). Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC. International journal of molecular sciences, 27(9), 3997. https://
BibTeX
@article{yang2026coordin
author = {Yang, Kuan and Yang, Kaiyue and Wang, Jiasi and Zhao, Hang and Jiang, Wenqi and Mu, Depeng and Peng, Xiao and Yan, Yiming and Gao, Xing and Bai, Jing and Hu, Congxue and Zhang, Yunpeng and Li, Xia},
title = {{Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC}},
journal = {International journal of molecular sciences},
year = {2026},
month = apr,
volume = {27},
number = {9},
pages = {3997},
publisher = {Multidisciplinary Digital Publishing Institute (MDPI)},
issn = {1422-0067},
doi = {10.3390/
url = {https://
pmid = {42123577},
pmcid = {PMC13163347}
}
RIS
TY - JOUR
AU - Yang, Kuan
AU - Yang, Kaiyue
AU - Wang, Jiasi
AU - Zhao, Hang
AU - Jiang, Wenqi
AU - Mu, Depeng
AU - Peng, Xiao
AU - Yan, Yiming
AU - Gao, Xing
AU - Bai, Jing
AU - Hu, Congxue
AU - Zhang, Yunpeng
AU - Li, Xia
TI - Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC
T2 - International journal of molecular sciences
J2 - Int J Mol Sci
PY - 2026
DA - 2026/
VL - 27
IS - 9
SP - 3997
SN - 1422-0067
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3390/
"type": "article-journal",
"title": "Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC",
"container-title": "International journal of molecular sciences",
"author": [
{
"family": "Yang",
"given": "Kuan"
},
{
"family": "Yang",
"given": "Kaiyue"
},
{
"family": "Wang",
"given": "Jiasi"
},
{
"family": "Zhao",
"given": "Hang"
},
{
"family": "Jiang",
"given": "Wenqi"
},
{
"family": "Mu",
"given": "Depeng"
},
{
"family": "Peng",
"given": "Xiao"
},
{
"family": "Yan",
"given": "Yiming"
},
{
"family": "Gao",
"given": "Xing"
},
{
"family": "Bai",
"given": "Jing"
},
{
"family": "Hu",
"given": "Congxue"
},
{
"family": "Zhang",
"given": "Yunpeng"
},
{
"family": "Li",
"given": "Xia"
}
],
"container-title-short":
"volume": "27",
"issue": "9",
"page": "3997",
"DOI": "10.3390/
"PMID": "42123577",
"PMCID": "PMC13163347",
"ISSN": "1422-0067",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
29
]
]
}
}
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: glmnet, circlize, clusterProfiler, 11 other tools, genetics / omics, 2 authors - [2] doi:10.1016/j.isci.2026.115657 [code]
- Integration of machine learning to develop a disulfidptosis model for predicting glioma prognosis, immunotherapy response, and drug.Journal: iScienceIn common: survival, glmnet, Harmony, 15 other tools, other condition
- [3] doi:10.1038/s41467-023-40408-5 [code]
- Epigenetic reprogramming shapes the cellular landscape of schwannoma.Journal: Nature communicationsIn common: survival, glmnet, Harmony, 12 other tools, other condition
- [4] doi:10.1016/j.xcrm.2026.102682 [code]
- TET CpG sequence-context-specifi
c DNA demethylation shapes progression of IDH-mutant gliomas. Journal: Cell reports. MedicineIn common: survival, glmnet, circlize, 12 other tools, genetics / omics, other condition - [5] doi:10.1093/bioinformatics/btag592 [code]
- Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.Journal: Bioinformatics (Oxford, England)In common: survival, circlize, rstatix, 12 other tools, genetics / omics, other condition
- [6] doi:10.1186/s13059-025-03765-6 [code]
- BLEND: probabilistic cellular deconvolution with individualized single-cell reference integration.Journal: Genome biologyIn common: survival, Harmony, circlize, 12 other tools, genetics / omics
- [7] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: survival, glmnet, circlize, 12 other tools
- [8] doi:10.1038/s43587-025-01016-8 [code]
- Organ-specific proteomic aging clocks predict disease and longevity across diverse populations.Journal: Nature agingIn common: survival, circlize, clusterProfiler, 11 other tools, genetics / omics
- [9] doi:10.1186/s13059-024-03407-3 [code]
- Spatiotemporal modeling reveals high-resolution invasion states in glioblastoma.Journal: Genome biologyIn common: survival, circlize, clusterProfiler, 11 other tools, other condition
- [10] doi:10.1093/neuped/wuag009 [code]
- Alternative splicing in pediatric central nervous system tumors highlights oncofetal candidate &
lt;i& gt;CLK1& lt;/ i& gt; exon 4. Journal: Neuro-oncology pediatricsIn common: survival, circlize, rstatix, 11 other tools, other condition
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, 13 scripts, and 40 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:fd1b73ff3434bc06…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.3390/ijms27093997)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3390/ijms27093997.svg
:target: https://openscicode.org/badge/doi/10.3390/ijms27093997
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3390/ijms27093997"><img src="https://openscicode.org/badge/doi/10.3390/ijms27093997.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.
