Skip to content

Fork of the class/class materials I ran at Temple's Fel's Institute to teach basic statistical analysis

Notifications You must be signed in to change notification settings

kelseykeith/fels_bioinformatics_meetup

 
 

Repository files navigation

Getting Started

Download R

Click on the link to go to R's homepage. https://www.r-project.org/

R project home

To download R:

  1. Click the download R link under Getting Started.
  2. Select your CRAN mirror. Click one of the links at the top under 0-Cloud.
  3. Click on the link that says "Download R for [Your Operating System]"
  4. What to Pick
    • For Mac, select the latest release
    • For Windows, select base
    • For Linux, select your distribution and follow the instructions in the README.html file.
  5. R should be downloaded to your computer and you should follow the normal steps to install

Download RStudio

Click on the link to go to R's homepage. https://www.rstudio.com/

RStudio homepage

To download RStudio:

  1. Click the Download link underneath the RStudio cartoon.
  2. Click the DOWNLOAD button for the FREE RStudio Desktop.
  3. Select your operating system from the list.
  4. The file should download to your computer and then you can install it like any other program.

Install Packages

To install the main packages that will be required for meetups, open RStudio and copy and paste the code below into the Console.

install.packages(c('tidyverse', 'viridis', 'conflicted'))

If that doesn't work, copy and paste this code.

packages <- c('dplyr', 'forcats', 'ggplot2', 'purrr', 'readr', 'stringr', 'tibble', 'tidyr', 'viridis', 'conflicted')
install.packages(packages)

Install TeX

TeX is a computer language/program for typesetting, particulary for math and other technical typesetting. RStudio needs it installed on your computer in order to create PDFs from your R markdown documents. To install, follow the instructions for your operating system below.

Mac:

  1. To install MacTeX, go here http://www.tug.org/mactex/
  2. Click on MacTeX Download
  3. Click on MacTeX.pkg
  4. Install like any other program

Note: If you have RStudio open, you'll need to restart before you can knit a PDF.

Windows:

  1. To install MiKTeX, go here https://miktex.org/download
  2. Click Download
  3. Execute the .exe files like normal
  4. During installation select the options below. Otherwise install as you normally do.
    • Install MiKTeX for anyone who uses the computer.
    • Install missing packages on-the-fly: Yes

Note: If you have RStudio open, you'll need to restart before you can knit a PDF.

Linux:

In terminal sudo apt-get install texlive-full

Note: If you have RStudio open, you'll need to restart before you can knit a PDF.

Resources

Reference material used while creating material for meetups:

  1. R for Data Science by Hadley Wickham
  2. Advanced R by Hadley Wickham
  3. Temple's BIO5312, Biostatistics Fall 2017 by Stephanie Spielman

Content

Week 1 (Sep 7)

Introduction to the class and Rmarkdown

  • Introduction to meetups
  • Getting started with R and RStudio
  • Rmarkdown

Materials

References


Week 2 (Sep 14)

Subsetting and filtering

  • Examining tables
  • Subsetting
  • Filtering and Selecting

Materials


Week 3 (Sep 21)

Plotting with ggplot

  • Background on ggplot and review data types
  • ggplot demonstration

Materials

References


No meetup the week of Sep 28 because of thesis defense


Week 4 (Oct 5)

Data manipulation with dplyr

  • dplyr functions
  • piping

Materials

References


Week 5 (Oct 12)

Data Wrangling with tidyr

  • the tidyverse
  • tidy data
  • data wrangling
    • tidyr functions
    • binds and joins
    • dealing with NAs

Materials

  • slides
  • data wrangling demo Rmd, html
  • tidyr/data wrangling demo with in class additions Rmd
  • data wrangling practice and answers in Rmd and in html and in-class answers in Rmd

References


Week 6 (Oct 19)

Basic Statistics in R

  • descriptive and summary statistics
  • hypothesis testing
    • t test
    • chi squared
  • tidying the test
  • correcting for multiple testing

Materials


Week 7 (Oct 26)

Import/Export Data and Review

  • read/write data
  • combine skills from all weeks

Materials

References


Week 8 (Nov 2)

Linear Modeling and tidying models with broom

  • Review correlation and linear regression
  • Linear modeling functions
  • broom

Materials

References


Week 9 (Nov 9)

Clustering

  • Review linear modeling and broom
  • clustering
    • kmeans
    • PCA
    • tSNE

Materials


Week 10 (Nov 16 Nov 30)

Plotting grab bag

  • Review clustering
  • miscellaneous plots
    • cowplot
    • volcano plot
    • MA plot

Materials

References


Week 11 (Dec 7)

Hierarchical Clustering

  • How does hierarchical clustering (broadly) work?
  • Calculate clustering
  • Plot clustering

Materials

References


Week 12 (Dec 14)

Heatmaps

  • Making heatmaps with pheatmap()
    • appearance
    • clustering
  • geom_tile()

Materials

References


NO meetups Dec 21, Dec 28, or Jan 4. Happy break!


2019.01.09 Meetups indefinitely suspended





Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


About

Fork of the class/class materials I ran at Temple's Fel's Institute to teach basic statistical analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%