Presentation, the code, and exercises to accompany the MIC training at UniBe, November 3, 2020.
presentation-main.Rpresandhtml- the main presentation with workshop lecture and exercises,examples- code snippets and examples for the presentation,practicals- data, presentation, and code for the practical session.
Please download the latest versions of the following:
The workflow is written in R and takes advantage of RStudio notebooks. The analysis uses the following packages that need to be present in your RStudio installation:
R.utilsfor directly reading comressed filesmagrittrfor pipes (typically loaded by other packages)data.tablefor fast processing of large datasetsreadxlfor reading Excel filesggplot2for plottingimputeTSfor data imputation such as interpolation of NA'sggthemesfor additional color schemes in ggplotplotlyfor interactive plotsRColorBrewerfor extended colour palettespheatmapfor heatmapheatmaplyfor interactive heatmapsscalesfor percentages on y-axis in ggplotsfactoextrafor extracting and visualisation of the results of multivariate data analysesNbClustfor determining the best number of clusterstestthatfor unit testingprofvisfor profilingforeachwith extension of theforloopdoParallelfor parallel computationsoptparsefor command-line parameters
Install these packages by typing the following line in the R command-line interface:
install.packages(c(
"data.table", "tidyverse",
"readxl", "R.utils",
"ggplot2", "plotly",
"pheatmap", "heatmaply",
"dendextend", "RColorBrewer", "scales",
"imputeTS",
"factoextra", "NbClust",
"testthat", "profvis",
"foreach", "doParallel",
"optparse"))
Alternatively, you can install packages using RStudio GUI by going to Tools > Install packages...