☰ Menu

      Bioinformatics: Command Line/R Prerequisites 2020

Home
Introduction
Intro to the Workshop and Core
Schedule
Resources
Zoom help
Slack help
Software and Links
Cheat Sheets
Intro CLI
Logging in
Introduction to the Command Line part 1
Introduction to the Command Line part 2
The cluster and modules
Introduction to Python
Python Part1, Background
Python Part2, Data Types
Python Part2, Solutions
Python Part3, Flow Control
Python Part3, Solutions
Python Part4, Working with Files
Python Part4, Solutions
Advanced CLI
Advanced Command Line
Advanced Challenge Solutions
A Simple Bioinformatics Workflow
Software Installation
Using make and cmake
Using Conda
Getting set up with AWS
AWS Event Engine
Starting and Stopping your AWS Instance
Introduction to R
Introduction to R
Introduction to tidyverse
Organizing, manipulating, and visualizing data in the tidyverse
Advanced R
Linear models in R
ETC
Closing thoughts
Github page
Biocore website

What is Tidyverse?


The tidyverse packages are developed and maintained by RStudio Inc.

Many publications including:


Why was tidyverse invented?

The tidyverse was invented in response to a sense of frustration with the difficulty of performing data analysis using various combinations of existing R packages, which may require managing inconsistent syntax and naming schemes. The tidyverse packages focus on making the initial steps of data analysis, particularly organizing and manipulating data, easier.

Learn more about the frustrations and philosophy behind the origin of the tidyverse.

The tidyverse packages are very popular, but not everyone agrees that tidyverse is a great idea. Some of these concerns have been outlined in the TidyverseSkeptic document, these include:

While users don’t have to choose between tidyverse and base R, many people have picked a camp. You can find out how and why people pick sides:


Why are we learning tidyverse?

Although there are many alternatives, we’ll be spending time on learning tidyverse packages in this workshop because data science and tidyverse are increasingly intertwined.

By familiarizing yourself with the tidyverse, you “future proof” yourself. If the next generation of R users are mostly tidyverse users, knowing tidyverse is a marketable skill, and performing analyses using tidyverse packages may improve the availability of code examples and help for the types of projects that interest you.


Getting started

In the R console run the following commands to ensure that you have packages installed:

if (!any(rownames(installed.packages()) == "knitr")){
  install.packages("knitr")
}

if (!any(rownames(installed.packages()) == "tidyverse")){
  install.packages("tidyverse")
}

library(knitr)
library(tidyverse)

Download the template Markdown workshop document and open it

In the R console run the following command:

download.file("https://raw.githubusercontent.com/ucdavis-bioinformatics-training/2020-Bioinformatics_Prerequisites_Workshop/master/Intro_to_R/Intro2R/Intro_to_tidyverse_and_ggplot2.Rmd", "Intro_to_tidyverse_and_ggplot2.Rmd")