knitr::opts_chunk$set(echo = TRUE)
library(knitr) load("parameter") colnames(parameter) <- c("Patameter", "Value", "Meaning") kable(parameter, format = "markdown")
library(knitr) load("module.result") temp.idx <- which(module.result$p.value < 0.05) if(length(temp.idx) == 0 & nrow(module.result) > 5){ temp.idx <- 1:5 }else{ temp.idx <- temp.idx } overlap <- as.numeric(module.result$`Detected metabolite number`)*100/as.numeric(module.result$`Module size`) module.result$`Detected metabolite number` <- overlap colnames(module.result)[5] <- "Overlap (%)" kable(module.result[temp.idx,c(1,2,3,4,5,13)])
library(knitr) load("dn.result") temp.idx <- which(dn.result$q.value < 0.05) if(length(temp.idx) == 0 & nrow(module.result) > 5){ temp.idx <- 1:5 }else{ temp.idx <- temp.idx } name <- rownames(dn.result) name <- unlist(lapply(strsplit(name, split = ";"), function(x){x[1]})) dn.result$Overlap <- dn.result$Overlap*100/dn.result$Pathway.length dn.result <- data.frame(name, dn.result, stringsAsFactors = FALSE) rownames(dn.result) <- NULL colnames(dn.result) <- c("Pathway name", "p value", "p value(adjusted)", "FDR", "Pathway size", "Overlap (%)") kable(dn.result[temp.idx, -4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.