From 07ebc872c90769091a7aa41400487ab1573472ab Mon Sep 17 00:00:00 2001 From: Sofia <93152160+SI18@users.noreply.github.com> Date: Sun, 28 Nov 2021 18:54:12 -0500 Subject: [PATCH] Code Review Install additional packages - install.packages("knitr"), install.packages("devtools"), BiocManager::install("limma"), BiocManager::install("GEOquery"), BiocManager::install("ComplexHeatmap"), The rest of the code runs. Based on this code, it is hard to understand what is the result and what the original question was. I also do not clearly understand the logic behind arranging the code in this order. --- vignettes/TET2.Rmd | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/vignettes/TET2.Rmd b/vignettes/TET2.Rmd index a79f410..2423f9f 100644 --- a/vignettes/TET2.Rmd +++ b/vignettes/TET2.Rmd @@ -11,14 +11,19 @@ vignette: > \usepackage[utf8]{inputenc} --- + ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(collapse = TRUE, comment = "#>") -library(devtools) -load_all("./") +library(devtools) #install the package first - install.packages("devtools") +load_all("./") ``` +# load_all function does not work without the 'limma' package as well as GEOquery. Install packages before proceeding: +BiocManager::install("limma") +BiocManager::install("GEOquery") +Then proceed with the chunk above -# Installation +# Installation - install the packages first (including knitr and devtools) Install the WorldsSimplestCodeReview package, if you haven't. @@ -26,7 +31,7 @@ Install the WorldsSimplestCodeReview package, if you haven't. #install.packages("remotes") #install.packages("BiocManager") #BiocManager::install("VanAndelInstitute/WorldsSimplestCodeReview") -library(knitr) +library(knitr) "install the package first - install.packages("knitr") ``` To extract just the R code, you can use knitr::knit(input, tangle=TRUE): @@ -82,7 +87,8 @@ dim(DNAme) ``` -### Some contrasts +### Some contrasts - #install the package ComplexHeatmap before proceeding: +BiocManager::install("ComplexHeatmap") Is it the case that TET2, IDH1, and IDH2 mutations are exclusive? @@ -96,6 +102,7 @@ Heatmap(mutations, col=c("lightgray","darkred"), name="mutant", column_km=4, ``` + Do we see genome-wide hypermethylation from TET2 mutations? ```{r, TET2_vs_IDH}