OSCR

Uncovering Latent Structure in Gliomas Using Multi-Omics Factor Analysis.

Code ↔ Paper

4 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 4 matches
  1. [1] § 2. Materials and Methods › 2.3. Multi-Omics Factor Analysis (MOFA) ↔ run_mofa.R, lines 18–94 · score 0.74 · MOFA2, MOFA model, medium, training, seed, likelihoods
  2. [2] § 2. Materials and Methods › 2.5. Gene Set Enrichment Analysis (GSEA) ↔ enrichment.R, lines 50–99 · score 0.73 · stExon, TSS1500, TSS200, bias, BP, GO
  3. [3] § 3. Results › 3.1. Overview of the Model › 3.1.1. Features Selected ↔ mofa-results.R, lines 351–433 · score 0.60 · gene ISM1, probes selected, mRNA, CpGs, DNA, matrices
  4. [4] § 3. Results › 3.2. Interpretation and Evaluation of the Findings ↔ mofa-results.R, lines 351–433 · score 0.54 · Pearson correlations, gene regulation, ISM1, probes

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 · 508 lines · 18 KB · no license · 2 matches

  1. setwd("~/Desktop/artigo")
  2. source("setup.R")
  3. ### Load data
  4. clinical <- read.csv("DataSets/2_analysis/clinical.csv", row.names = 1)
  5. survival <- read.csv("DataSets/2_analysis/survival_data.csv", row.names = 1)
  6. mutations <- read.csv("DataSets/2_analysis/mutations.csv", row.names = 1)
  7. dna <- read.csv("DataSets/2_analysis/dna.csv", row.names = 1)
  8. mrna <- read.csv("DataSets/2_analysis/mrna.csv", row.names = 1)
  9. mirna <- read.csv("DataSets/2_analysis/mirna.csv", row.names = 1)
  10. info.methy <- read.csv("DataSets/processed_assays/info_methylation.csv", row.names = 1)
  11. info.mirna <- read.csv("DataSets/processed_assays/info_rna_mirna.csv", row.names = 1)
  12. info.mrna <- read.csv("DataSets/processed_assays/info_rna_coding.csv", row.names = 1)
  13. omics.list <- list(Mutations = mutations, Methylation = dna, mRNA = mrna, miRNA = mirna)
  14. ## Run Model
  15. source("run_mofa.R")
  16. output <- run_mofa(omics.list, n_runs = 10, num_factors = NULL,
  17. likelihoods = c("bernoulli", "gaussian", "gaussian", "gaussian"),
  18. clinical_data = clinical)
  19. #### Save Results
  20. model <- output$model_output
  21. print(model)
  22. print(output$time_taken)
  23. #### Read Z and W
  24. factors <- as.matrix(read.csv("mofa-output/factors.csv", row.names = 1))
  25. loadings <- list(
  26. Mutations = as.matrix(read.csv("mofa-output/loadings_mutations.csv", row.names = 1)),
  27. Methylation = as.matrix(read.csv("mofa-output/loadings_Methylation.csv", row.names = 1)),
  28. mRNA = as.matrix(read.csv("mofa-output/loadings_mrna.csv", row.names = 1)),
  29. miRNA = as.matrix(read.csv("mofa-output/loadings_mirna.csv", row.names = 1))
  30. )
  31. ### Results shown in the paper
  32. ## Variance Decomposition
  33. p__variance_decomposition <- local({
  34. p1 <- plot_variance_explained(model, plot_total = T)[[1]]
  35. p1 <- p1$data
  36. p1$value <- round(p1$value, 1)
  37. colnames(p1) <- c("Factor", "View", "Value", "Group")
  38. p1$Factor <- gsub("([a-zA-Z]+)([0-9]+)", "\\1 \\2", p1$Factor)
  39. p1$View <- factor(p1$View, levels = c("miRNA", "mRNA", "Methylation", "Mutations"))
  40. p <- ggplot(p1, aes(x = .data$Value, y = .data$View, fill = .data$Factor)) +
  41. geom_bar(
  42. position = position_stack(reverse = T), stat = "identity") +
  43. stat_identity(
  44. geom = "text", color = "black", size = 5,
  45. aes(label = ifelse(.data$Value > 2, .data$Value, "")),
  46. position = position_stack(reverse = TRUE, vjust = 0.5)
  47. ) +
  48. labs(title = "", x = "% of Variance", y = "") +
  49. scale_fill_manual(values = brewer.pal(n = 4, name = "Oranges")) +
  50. my_theme
  51. p
  52. })
  53. ggsave(filename = "mofa-results/variance-decomposition.pdf",
  54. p__variance_decomposition, width = 14, height = 7)
  55. ## Factors projection
  56. classified_samples <- clinical[!is.na(clinical$Subtype), ]
  57. p__factors_projection <- local({
  58. sample_df <- data.frame(Factor1 = numeric(nrow(classified_samples)),
  59. Factor3 = numeric(nrow(classified_samples)),
  60. Factor2 = numeric(nrow(classified_samples)),
  61. Subtype = rep("GBM", nrow(classified_samples)))
  62. sample_df$Factor1 <- factors[rownames(classified_samples),1]
  63. sample_df$Factor3 <- factors[rownames(classified_samples),3]
  64. sample_df$Factor2 <- factors[rownames(classified_samples),2]
  65. sample_df$Subtype <- classified_samples$Subtype
  66. p <- ggplot(sample_df, aes(x = Factor1, y = Factor3)) +
  67. geom_point(aes(shape = Subtype, color = Factor2), size = 2.5) +
  68. geom_vline(xintercept=0, linetype="dashed") +
  69. geom_segment(aes(x = 0, xend = Inf, y = 0, yend = 0), linetype = "dashed") +
  70. scale_color_gradientn(
  71. colours = c("darkgreen", "white", "darkred"),
  72. name = "Factor 2"
  73. ) +
  74. my_theme +
  75. labs(x = "Factor 1", y = "Factor 3", shape = "Subtype")
  76. p
  77. })
  78. ggsave(filename = "mofa-results/factors-projectionUPDATED.pdf", p__factors_projection, width = 6, height = 4)
  79. ## Hazard Ratio for factors
  80. plot_survival_factors_univariate <- function(survival, factors_matrix) {
  81. survival[is.na(survival)] <- 0
  82. surv_object <- Surv(time = survival[rownames(factors_matrix), "Time"],
  83. event = survival[rownames(factors_matrix), "Status"])
  84. results <- lapply(colnames(factors_matrix), function(fac) {
  85. factor_values <- factors_matrix[, fac, drop = FALSE]
  86. fit <- coxph(surv_object ~ factor_values)
  87. s <- summary(fit)
  88. coef <- s$coefficients
  89. conf <- s$conf.int
  90. data.frame(
  91. factor = fac,
  92. coef = coef["factor_values", "exp(coef)"],
  93. p = coef["factor_values", "Pr(>|z|)"],
  94. lower = conf["factor_values", "lower .95"],
  95. higher = conf["factor_values", "upper .95"]
  96. )
  97. })
  98. df <- do.call(rbind, results)
  99. df$factor <- factor(df$factor, levels = rev(df$factor))
  100. df$significant <- ifelse(df$p < 0.05, "*", "")
  101. p <- ggplot(df, aes(x = factor, y = coef, ymin = lower, ymax = higher)) +
  102. geom_pointrange() +
  103. geom_text(aes(label = significant, y = coef), vjust = -1, size = 5)+
  104. labs(y="Hazard Ratio", x="") +
  105. scale_x_discrete(labels = paste0("Factor ", seq(ncol(factors_matrix),1))) +
  106. geom_hline(aes(yintercept=1), linetype="dotted") +
  107. coord_flip() +
  108. my_theme
  109. return(list(p, df))
  110. }
  111. plot_survival_factors_multivariate <- function (survival, factors_matrix){
  112. survival[is.na(survival)] <- 0
  113. surv_object <- Surv(time = survival[rownames(factors_matrix), "Time"], event = survival[rownames(factors_matrix), "Status"] )
  114. fit <- coxph(surv_object ~ factors_matrix)
  115. s <- summary(fit)
  116. coef <- s[["coefficients"]]
  117. df <- data.frame(
  118. factor = factor(rownames(coef), levels = rev(rownames(coef))),
  119. p = coef[,"Pr(>|z|)"],
  120. coef = coef[,"exp(coef)"],
  121. lower = s[["conf.int"]][,"lower .95"],
  122. higher = s[["conf.int"]][,"upper .95"])
  123. df$significant <- ifelse(df$p < 0.05, "*", "")
  124. p <- ggplot(df, aes(x = factor, y = coef, ymin = lower, ymax = higher)) +
  125. geom_pointrange() +
  126. geom_text(aes(label = significant, y = coef), vjust = -1, size = 5)+
  127. labs(y="Hazard Ratio", x="") +
  128. scale_x_discrete(labels = paste0("Factor ", seq(ncol(factors_matrix),1))) +
  129. geom_hline(aes(yintercept=1), linetype="dotted") +
  130. coord_flip() +
  131. my_theme
  132. print(p)
  133. return(list(p, fit))
  134. }
  135. p <- plot_survival_factors_univariate(survival, factors)[[1]]
  136. ggsave(filename = "mofa-results/factors-hazard-uni.pdf", p, width = 6, height = 4)
  137. p <- plot_survival_factors_multivariate(survival, factors)[[1]]
  138. ggsave(filename = "mofa-results/factors-hazard-multi.pdf", p, width = 6, height = 4)
  139. rm(p)
  140. ## Features selected & mutations projections
  141. # Mutations Omic
  142. mutations_sel_f1_pos <- c("IDH1")
  143. mutations_sel_f1_neg <- c("PTEN", "EGFR")
  144. mutations_sel_f3_pos <- c("TP53", "ATRX")
  145. mutations_sel_f3_neg <- c("CIC")
  146. p__mutations_projection <- local({
  147. combs <- c("EGFR", "IDH1", "IDH1", "ATRX", "CIC", "TP53")
  148. p_list <- list()
  149. for (k in c(1, 3, 5)){
  150. p <- plot_factors(model,
  151. factors = c(1,3),
  152. color_by = combs[k],
  153. shape_by = combs[k+1],
  154. show_missing = T,
  155. scale = T
  156. )
  157. p <- p +
  158. geom_vline(xintercept=0, linetype="dashed") +
  159. geom_segment(aes(x = 0, xend = max(p$data$x), y = 0, yend = 0), linetype = "dashed") +
  160. my_theme +
  161. labs(x = "Factor 1", y = "Factor 3")
  162. ggsave(filename = paste0("mofa-results/mutations-projected-", k, ".pdf"), p, width = 6, height = 4)
  163. p_list <- append(p_list, p)
  164. }
  165. p_list
  166. })
  167. # DNA Methylation Omic
  168. methy_sel_f1 <- names(head(sort(abs(loadings$Methylation[, 1]), decreasing = TRUE), 30))
  169. methy_sel_f3 <- names(head(sort(abs(loadings$Methylation[, 3]), decreasing = TRUE), 30))
  170. # mRNA Omic
  171. mrna_sel_f1 <- names(head(sort(abs(loadings$mRNA[, 1]), decreasing = TRUE), 30))
  172. mrna_sel_f2 <- names(head(sort(abs(loadings$mRNA[, 2]), decreasing = TRUE), 30))
  173. mrna_sel_f3 <- names(head(sort(abs(loadings$mRNA[, 3]), decreasing = TRUE), 30))
  174. # miRNA Omic
  175. mirna_sel_f1 <- names(head(sort(abs(loadings$miRNA[, 1]), decreasing = TRUE), 3))
  176. ## Enrichment Analysis
  177. source("enrichment.R")
  178. # mRNA
  179. mrna_enrich_f1 <- run_rna_gsea(loadings$mRNA[, 1], sign = 0, alpha = 0.05)
  180. plot_gsea(mrna_enrich_f1, alpha = 0.05, max.pathways = 25, sign = -2, filename = NULL)
  181. mrna_enrich_f2 <- run_rna_gsea(loadings$mRNA[, 2], sign = 0, alpha = 0.05)
  182. plot_gsea(mrna_enrich_f2, alpha = 0.05, max.pathways = 25, sign = 2, filename = NULL)
  183. mrna_enrich_f3 <- run_rna_gsea(loadings$mRNA[, 3], sign = 0, alpha = 0.05)
  184. plot_gsea(mrna_enrich_f3, alpha = 0.05, max.pathways = 25, sign = 2, filename = NULL)
  185. plot_categories_reactome(list("Factor 1"= mrna_enrich_f1[mrna_enrich_f1$NES<0,"ID"],
  186. "Factor 2"= mrna_enrich_f2[mrna_enrich_f2$NES>0, "ID"],
  187. "Factor 3"= mrna_enrich_f3[mrna_enrich_f3$NES>0, "ID"]),
  188. filename="mrna-gsea-top-levels")
  189. #the pathways in "Disease"
  190. diseases_f1 <- pathways_of_disease(mrna_enrich_f1)
  191. print(table(diseases_f1))
  192. diseases_f2 <- pathways_of_disease(mrna_enrich_f2)
  193. print(table(diseases_f2))
  194. diseases_f3 <- pathways_of_disease(mrna_enrich_f3)
  195. print(table(diseases_f3))
  196. # DNA methylation
  197. methy_enrich_f1 <- run_methy_gsea(loadings$Methylation[,1], sign = "positive",
  198. background_vector = rownames(loadings$Methylation),
  199. q = 0.01, promoter = F, alpha = 0.05, filename = NULL)
  200. plot_methy_gsea(methy_enrich_f1, sign = 2, max.pathways = 15,
  201. filename = "methy-enrich-f1",
  202. alpha = 0.05)
  203. methy_enrich_f1_promoter <- run_methy_gsea(loadings$Methylation[,1], sign = "positive",
  204. background_vector = rownames(loadings$Methylation), q = 0.01,
  205. promoter = TRUE, alpha = 0.05, filename = NULL)
  206. plot_methy_gsea(methy_enrich_f1_promoter, sign = 2, max.pathways = 15,
  207. filename = "methy-enrich-f1-prom",
  208. alpha = 0.05)
  209. methy_enrich_f3 <- run_methy_gsea(loadings$Methylation[,3], sign = "negative",
  210. background_vector = rownames(loadings$Methylation),
  211. q = 0.01, promoter = F, alpha = 0.05, filename = NULL)
  212. plot_methy_gsea(methy_enrich_f3, sign = -2, max.pathways = 15,
  213. filename = "methy-enrich-f3",
  214. alpha = 0.05)
  215. methy_enrich_f3_promoter <- run_methy_gsea(loadings$Methylation[,3], sign = "negative",
  216. background_vector = rownames(loadings$Methylation),
  217. q = 0.01,
  218. promoter = TRUE, alpha = 0.05, filename = NULL)
  219. plot_methy_gsea(methy_enrich_f3_promoter, sign = -2, max.pathways = 15,
  220. filename = "methy-enrich-f3-prom",
  221. alpha = 0.05)
  222. ## Validation Features
  223. # Survival
  224. gbm_mrna <- read.csv("survival-results/gbm_mrna.csv", row.names = 1)
  225. lgg_mrna <- read.csv("survival-results/lgg_mrna.csv", row.names = 1)
  226. gbm_methy <- read.csv("survival-results/gbm_methy.csv", row.names = 1)
  227. lgg_methy <- read.csv("survival-results/lgg_methy.csv", row.names = 1)
  228. # DGE
  229. gbm_vs_astro_mrna <- read.csv("dge-results/gbm_vs_astro_mrna.csv", row.names = 1)
  230. gbm_vs_oligo_mrna <- read.csv("dge-results/gbm_vs_oligo_mrna.csv", row.names = 1)
  231. astro_vs_oligo_mrna <- read.csv("dge-results/astro_vs_oligo_mrna.csv", row.names = 1)
  232. gbm_vs_astro_methy <- read.csv("dge-results/gbm_vs_astro_methy.csv", row.names = 1)
  233. gbm_vs_oligo_methy <- read.csv("dge-results/oligo_vs_gbm_methy.csv", row.names = 1)
  234. astro_vs_oligo_methy <- read.csv("dge-results/astro_vs_oligo_methy.csv", row.names = 1)
  235. # build data frame as summary for each factor:
  236. #DGE (GBM vs ASTRO; GBM vs OLIGO; ASTRO vs OLIGO);
  237. #Significant in survival: in GBM group || in LGG group
  238. build_df <- function(methy_sel, mrna_sel) {
  239. combined_features <- c(methy_sel, mrna_sel)
  240. df <- data.frame(matrix(NA, nrow = length(combined_features), ncol = 5))
  241. colnames(df) <- c("GBMvsASTRO", "GBMvsOLIGO", "ASTROvsOLIGO", "GBM", "LGG")
  242. rownames(df) <- combined_features
  243. df$"GBMvsASTRO" <- c(gbm_vs_astro_methy[methy_sel, "diffexpressed"],
  244. gbm_vs_astro_mrna[mrna_sel, "diffexpressed"])
  245. df$"GBMvsOLIGO" <- c(gbm_vs_oligo_methy[methy_sel, "diffexpressed"],
  246. gbm_vs_oligo_mrna[mrna_sel, "diffexpressed"])
  247. df$"ASTROvsOLIGO" <- c(astro_vs_oligo_methy[methy_sel, "diffexpressed"],
  248. astro_vs_oligo_mrna[mrna_sel, "diffexpressed"])
  249. df$"LGG" <- round(c(lgg_methy[methy_sel, "P_Value"],
  250. lgg_mrna[mrna_sel, "P_Value"]),3)
  251. df$"GBM" <- round(c(gbm_methy[methy_sel, "P_Value"],
  252. gbm_mrna[mrna_sel, "P_Value"]),3)
  253. return(df)
  254. }
  255. df_f1 <- build_df(methy_sel_f1, mrna_sel_f1)
  256. df_f2 <- build_df(character(0), mrna_sel_f2)
  257. df_f3 <- build_df(methy_sel_f3, mrna_sel_f3)
  258. write.csv(df_f1,"summary-f1.csv", row.names = TRUE)
  259. write.csv(df_f2,"summary-f2.csv", row.names = TRUE)
  260. write.csv(df_f3,"summary-f3.csv", row.names = TRUE)
  261. ## Correlation of CpG and mRNA
  262. plot_cor_cpgs_mrna <- local({
  263. conc_matrix <- cbind(omics.list$Methylation, omics.list$mRNA)
  264. conc_matrix <- conc_matrix[,c(methy_sel_f1, mrna_sel_f1, methy_sel_f3, mrna_sel_f3)]
  265. correlation_matrix <- cor(conc_matrix, method = "pearson", use = "na.or.complete")
  266. rownames(correlation_matrix) <- c(methy_sel_f1,
  267. info.mrna[rownames(info.mrna) %in% mrna_sel_f1, "gene_name"],
  268. methy_sel_f3,
  269. info.mrna[rownames(info.mrna) %in%mrna_sel_f3, "gene_name"])
  270. col_fun <- colorRamp2(c(-1, 0, 1), c("#268989", "white", "#E43F3F"))
  271. ht <- Heatmap(
  272. correlation_matrix,
  273. name = "Pearson Correlation",
  274. col = col_fun,
  275. cluster_rows = FALSE,
  276. cluster_columns = FALSE,
  277. show_row_names = TRUE,
  278. show_column_names = FALSE,
  279. row_names_gp = gpar(fontsize = 20),
  280. heatmap_legend_param = list(
  281. title = NULL,
  282. title_gp = gpar(fontsize = 0),
  283. labels_gp = gpar(fontsize = 20),
  284. legend_height = unit(75, "cm")
  285. )
  286. )
  287. pdf("mofa-results/heatmap-cpgs-mrna.pdf", width = 30, height = 30)
  288. draw(ht)
  289. dev.off()
  290. })
  291. ## Cpg-Gene regulation
  292. #in particular, gene ISM1 with the 8 probes selected
  293. cpgs_f3_ism1 <- intersect(methy_sel_f3, rownames(info.methy)[info.methy$gene=="ISM1"])
  294. id_ism1 <- rownames(info.mrna)[info.mrna$gene_name=="ISM1"]
  295. expr_ism1 <- mrna[, id_ism1, drop = FALSE]
  296. lgg_patients <- rownames(clinical)[clinical$Type == "LGG" & !is.na(clinical$Type)]
  297. gbm_patients <- rownames(clinical)[clinical$Type == "GBM" & !is.na(clinical$Type)]
  298. # correlations of each cpg with the gene ISM1
  299. cors <- local({
  300. cors <- c()
  301. for (cpg in cpgs_f3_ism1){
  302. val <- cor(expr_ism1[lgg_patients, ], dna[lgg_patients, cpg], method = "pearson", use = "complete.obs")
  303. cors <- append(cors, val)
  304. }
  305. cors
  306. })
  307. cors
  308. # correlations of each cpg with the genes selected by factor 3 (choose idx)
  309. cors_matrix <- local({
  310. cors_matrix <- matrix(data = NA,
  311. nrow = length(cpgs_f3_ism1),
  312. ncol = length(mrna_sel_f3),
  313. dimnames = list(cpgs_f3_ism1, mrna_sel_f3))
  314. for (idx_cpg in 1: length(cpgs_f3_ism1)){
  315. for (idx_gene in 1: length(mrna_sel_f3)){
  316. gene_name <- info.mrna[rownames(info.mrna) == mrna_sel_f3[idx_gene], "gene_name"]
  317. val <- cor(mrna[lgg_patients, mrna_sel_f3[idx_gene]], dna[lgg_patients, cpgs_f3_ism1[idx_cpg]],
  318. method = "pearson", use = "complete.obs")
  319. cors_matrix[idx_cpg, idx_gene] <- val
  320. }
  321. }
  322. colnames(cors_matrix) <- info.mrna[rownames(info.mrna) %in% mrna_sel_f3, "gene_name"]
  323. rownames(cors_matrix) <- cpgs_f3_ism1
  324. cors_matrix
  325. })
  326. # Plot
  327. cor_plot_gene_cpg <- function(cpg, gene_id, labels, groups_2_test){
  328. idxs <- which(labels %in% groups_2_test)
  329. expr_gene <- mrna[idxs , gene_id, drop = FALSE]
  330. gene_name <- info.mrna[rownames(info.mrna) == gene_id, "gene_name"]
  331. expr_cpg <- dna[idxs, cpg, drop = FALSE]
  332. df_plot <- data.frame(
  333. expr_gene = expr_gene[,1],
  334. expr_cpg = expr_cpg[,1],
  335. groups = labels[idxs]
  336. )
  337. plot <- ggplot(df_plot, aes(x = expr_cpg, y = expr_gene, color = groups)) +
  338. geom_smooth(method = "lm", se = T) +
  339. geom_point() +
  340. scale_color_manual(values = c('#FF7400', '#009999', "black")) +
  341. stat_cor(method = "pearson",
  342. cor.coef.name = "R",
  343. label.x = 1.08) +
  344. labs(
  345. x = cpg,,
  346. y = gene_name,
  347. color = "Subtype"
  348. ) +
  349. my_theme
  350. ggsave(filename = paste0("mofa-results/corr-",cpg, "-", gene_name,".pdf"), plot, width = 8, height = 6)
  351. return (plot)
  352. }
  353. p <- cor_plot_gene_cpg(cpgs_f3_ism1[1], id_ism1,
  354. labels = clinical$Subtype, groups_2_test = c("ASTRO", "OLIGO", "GBM"))
  355. p <- cor_plot_gene_cpg(cpgs_f3_ism1[2], id_ism1,
  356. labels = clinical$Subtype, groups_2_test = c("ASTRO", "OLIGO", "GBM"))
  357. # heatmap of cors_matrix
  358. col_fun <- colorRamp2(c(-1, 0, 1), c("#268989", "white", "#E43F3F"))
  359. cors_matrix <- cbind(cors_matrix, "ISM1" = cors)
  360. ht <- Heatmap(
  361. cors_matrix,
  362. name = "Pearson Correlation",
  363. col = col_fun,
  364. cluster_rows = FALSE,
  365. cluster_columns = FALSE,
  366. show_row_names = TRUE,
  367. show_column_names = T,
  368. row_names_gp = gpar(fontsize = 20),
  369. heatmap_legend_param = list(
  370. title = NULL,
  371. title_gp = gpar(fontsize = 0),
  372. labels_gp = gpar(fontsize = 20),
  373. legend_height = unit(35, "cm")
  374. )
  375. )
  376. pdf("mofa-results/heatmap-mrnaf3-cpgsiNism1.pdf", width = 20, height = 15)
  377. draw(ht)
  378. dev.off()
  379. # SLC2A5 BLNK TMEM119 PLXDC2
  380. id_plxdc2 <- rownames(info.mrna)[info.mrna$gene_name=="PLXDC2"]
  381. id_slc2a5 <- rownames(info.mrna)[info.mrna$gene_name=="SLC2A5"]
  382. id_blnk <- rownames(info.mrna)[info.mrna$gene_name=="BLNK"]
  383. id_tmem119 <- rownames(info.mrna)[info.mrna$gene_name=="TMEM119"]
  384. p <- cor_plot_gene_cpg(cpgs_f3_ism1[1], id_plxdc2,
  385. labels = clinical$Subtype, groups_2_test = c("ASTRO", "OLIGO", "GBM"))
  386. p <- cor_plot_gene_cpg(cpgs_f3_ism1[2], id_plxdc2,
  387. labels = clinical$Subtype, groups_2_test = c("ASTRO", "OLIGO", "GBM"))

mofa-results.R at commit 4c8df63, no license · at the source

Overview

Authors: Catarina Gameiro Carvalho1, Alexandra M. Carvalho2, Susana Vinga3,4
  1. Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal
  2. Instituto de Telecomunicações, Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal
  3. Instituto de Engenharia de Sistemas e Computadores-Investigação e Desenvolvimento (INESC-ID), Instituto Superior Técnico, Universidade de Lisboa, 1000-029 Lisbon, Portugal
  4. IDMEC, Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal
Journal: Genes, volume 17, issue 5, article 540
Dates: received 13 March 2026; accepted 21 April 2026; published online 1 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3390/genes17050540 · PMID 42194997 · PMCID PMC13205169 · OpenAlex W7160132433
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), other condition (population)
Methods: Statistics, Graphs
Keywords: multi-omics integration, prognostic biomarkers, survival analysis, molecular subtyping, latent factor model
MeSH: Brain Neoplasms*, Glioma*, Bayes Theorem, Biomarkers, Tumor, DNA Methylation, Factor Analysis, Statistical, Gene Expression Profiling, Gene Expression Regulation, Neoplastic, Humans, MicroRNAs, Multiomics, Prognosis, Transcriptome (* major topic)
Topic: Glioma Diagnosis and Treatment (Genetics, Medicine), according to OpenAlex
Funding: Fundação para a Ciência e a Tecnologia; EU funds under projects NEXUS, Instituto de Telecomunicações (UID/50008/2025, UID/50021/2025, UID/50022/2025, LISBOA2030-FEDER-00868200—Projeto Nº 15030, 2023.17447.ICDT)
Citations: not cited yet (Europe PMC); 35 references in the paper

Abstract

Background: Gliomas are the most common malignant brain tumors in adults, characterized by a poor prognosis. Although the current World Health Organization (WHO) classification provides clear guidelines for classifying oligodendroglioma, astrocytoma, and glioblastoma patients, significant heterogeneity persists within each class, limiting the effectiveness of current treatment strategies. With the increasing availability of large-scale multi-omics datasets resulting from advancements in sequencing technologies and online repositories that provide them, such as The Cancer Genome Atlas (TCGA), it is now possible to investigate these tumors at multiple molecular levels. Methods: In this work, we apply integrative multi-omics analysis to explore the interplay between genomic (mutations), epigenomic (DNA methylation), and transcriptomic (mRNA and miRNA) layers. Our approach relies on Multi-Omics Factor Analysis (MOFA), a Bayesian latent factor analysis model designed to capture sources of variation across different omics types. Results: Our results highlight distinct molecular profiles across the three glioma types and identify potential relationships between methylation and genetic expression. In particular, we uncover novel candidate biomarkers associated with survival as well as a transcriptional profile associated with neural system development. Conclusions: These findings may contribute to more personalized therapeutic strategies, potentially improving treatment effectiveness and survival outcomes in this disease.

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 4 matches between paragraphs and lines of code.

sysbiomed/MOFA-in-Gliomas

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 4c8df639fd56d05a48dbcd83f949436403910ba1, 14 April 2026
Languages: R (14)
Size: 69 files, 14 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README, 5 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (4 files), ggplot2 (3 files), DESeq2 (2 files), edgeR (2 files), survival (2 files), circlize (1 file), clusterProfiler (1 file), ComplexHeatmap (1 file), ggpubr (1 file), reshape2 (1 file), reticulate (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
15 files

The paper's code and data availability statement is in the Data section.

Tracing map

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

What the map holds:

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

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

Data

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

2.1. Data Availability

The integration in the present study focused on several omics layers, specifically genomics (mutations), as they are key drivers of glioma heterogeneity, along with transcriptomics (mRNA and miRNA) and epigenomics (DNA methylation). The data were obtained from The Cancer Genome Atlas (TCGA) under the project names “TCGA-GBM” and “TCGA-LGG”.

The mutations dataset was downloaded using the RTCGAToolbox (version v2.32.1) [20] package, while the others were obtained using the TCGAbiolinks (version v2.30.4) [21] package. The downloaded data included binary mutation profiles, count-based transcriptomics, and beta values representing the methylation proportion of each probe. These last two datasets were provided in the summarizedExperiment format, which contains not only the expression matrix but also feature metadata, including gene annotations and additional biological information, such as associated chromosomal locations and corresponding gene names. Clinical data, including patient demographics (age, sex) and survival information, were also extracted. Its summary is in Table 1.

The ground-truth glioma labels used were from the study [22], where the TCGA labels were updated according to the most recent WHO guidelines from 2021. The labels assigned were: “Astrocytoma”, “Glioblastoma”, “Oligodendroglioma” or “Unclassified”. Table 2 highlights significant discrepancies between the labels assigned by the WHO and those provided by TCGA for the same patients.

All the code is available at https://github.com/sysbiomed/MOFA-in-Gliomas (accessed on 15 April 2026) to ensure reproducibility and modularity.

Reproduced under the paper's license (CC BY), from the paper cited above.

Data Availability Statement

The R code developed for this analysis is open source and available at https://github.com/sysbiomed/MOFA-in-Gliomas (accessed on 15 April 2026). The original datasets are not included due to their large size, but detailed instructions for downloading them are provided in the repository. The datasets are publicly available from The Cancer Genome Atlas (TCGA) database at https://portal.gdc.cancer.gov. The glioma classification using the WHO-2021 taxonomy guidelines is available at https://github.com/sysbiomed/MONET.

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

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

Cite

This paper

Carvalho, C. G., Carvalho, A. M., & Vinga, S. (2026). Uncovering Latent Structure in Gliomas Using Multi-Omics Factor Analysis. Genes, 17(5), 540. https://doi.org/10.3390/genes17050540

BibTeX

@article{carvalho2026uncovering,
author = {Carvalho, Catarina Gameiro and Carvalho, Alexandra M. and Vinga, Susana},
title = {{Uncovering Latent Structure in Gliomas Using Multi-Omics Factor Analysis}},
journal = {Genes},
year = {2026},
month = may,
volume = {17},
number = {5},
pages = {540},
publisher = {Multidisciplinary Digital Publishing Institute (MDPI)},
issn = {2073-4425},
doi = {10.3390/genes17050540},
url = {https://doi.org/10.3390/genes17050540},
pmid = {42194997},
pmcid = {PMC13205169}
}

RIS

TY - JOUR
AU - Carvalho, Catarina Gameiro
AU - Carvalho, Alexandra M.
AU - Vinga, Susana
TI - Uncovering Latent Structure in Gliomas Using Multi-Omics Factor Analysis
T2 - Genes
J2 - Genes (Basel)
PY - 2026
DA - 2026/05/01
VL - 17
IS - 5
SP - 540
SN - 2073-4425
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/genes17050540
UR - https://doi.org/10.3390/genes17050540
LA - en
ER -

CSL-JSON

{
"id": "10.3390/genes17050540",
"type": "article-journal",
"title": "Uncovering Latent Structure in Gliomas Using Multi-Omics Factor Analysis",
"container-title": "Genes",
"author": [
{
"family": "Carvalho",
"given": "Catarina Gameiro"
},
{
"family": "Carvalho",
"given": "Alexandra M."
},
{
"family": "Vinga",
"given": "Susana"
}
],
"container-title-short": "Genes (Basel)",
"volume": "17",
"issue": "5",
"page": "540",
"DOI": "10.3390/genes17050540",
"PMID": "42194997",
"PMCID": "PMC13205169",
"ISSN": "2073-4425",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://doi.org/10.3390/genes17050540",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
1
]
]
}
}

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.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, edgeR, reticulate, 8 other tools, genetics / omics, other condition
[2] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: survival, edgeR, reticulate, 8 other tools
[3] 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, circlize, 6 other tools, genetics / omics, other condition, 2 references
[4] 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: iScience
In common: survival, edgeR, DESeq2, 7 other tools, other condition
[5] 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: edgeR, reticulate, DESeq2, 7 other tools
[6] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: edgeR, DESeq2, circlize, 6 other tools, genetics / omics, other condition, 1 reference
[7] doi:10.3390/ijms27093997 [code]
Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC.
Journal: International journal of molecular sciences
In common: survival, DESeq2, circlize, 6 other tools, genetics / omics, other condition
[8] doi:10.1038/s41586-026-10512-9 [code]
Astrocyte glucocorticoid receptor signalling restricts neuronal plasticity.
Journal: Nature
In common: edgeR, DESeq2, circlize, 6 other tools, 1 reference
[9] doi:10.1038/s42003-026-10252-6 [code]
RET signaling as a mediator of estrogen receptor positive breast cancer brain metastasis.
Journal: Communications biology
In common: survival, DESeq2, circlize, 6 other tools, other condition
[10] doi:10.1101/gr.281113.125 [code]
Single-nucleus multiomic profiling of the aging mouse substantia nigra reveals conserved gene alterations linked to Parkinson's disease.
Journal: Genome research
In common: edgeR, reticulate, circlize, 6 other tools, genetics / omics

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.