This code provides options for the report.
library(knitr) # Knitr default options opts_chunk$set(dpi=150, tidy=TRUE, fig.align='center', echo=TRUE)
This code loads all functions and data needed to run elastic net.
# Set random seed set.seed(1) library(rcellminer) library(rcellminerData) library(rcellminerElasticNet) library(impute) molDB <- getMolDataMatrices() drugActData <- exprs(getAct(rcellminerData::drugData))
These are the parameters used for the elastic net run, including:
# Drug NSC drug <- "<%= nsc %>" # Included datasets includeDatasets <- <%= includeDatasets %> # Excluded features and cell lines excludeCellLines <- <%= excludeCellLines %> #excludeFeatures <- c("expSLFN11") excludeFeatures <- NULL ## Restrict gene set # load(file.path(.lmp, "gene_set_pathway_analysis", "data", "ddr_genelist.Rdata")) # restrictedGeneSet <- rownames(ddr.list) restrictedGeneSet <- NULL # Show debugging data? verbose <- TRUE # THRESHOLDS # Features must have absolute correlation greater than corThreshold to be # included in elastic net. corThreshold <- <%= corThreshold %> # Elastic net results will be augmented to include information about input features # that are correlated with selected predictors above predictorCorFeatureThreshold. predCorFeatureThreshold <- <%= predCorFeatureThreshold %> minNumResponsiveLines <- <%= minNumResponsiveLines %> responseThreshold <- <%= responseThreshold %> minNumMutations <- <%= minNumMutations %> # Results parameters maxPlotPredictors <- <%= maxPlotPredictors %> filePrefix <- "<%= filePrefix %>" outputDir <- "<%= outputDir %>" outputFilePath <- "enResults.csv"
y <- drugActData["94600",] x <- molDB[["exp"]]["expSLFN11",] plot(x, y, main="<%= nsc %>")
cat("Timestamp: ", format(Sys.time(), "%m%d%yT%H%M%S"), "\n") sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.