Skip to contents

Welcome to the Blaser Lab Computational Data Analysis Course

This course is designed to help you improve your data management and analysis skills. The skills you will learn can be used for everything from straightforward measurements of biological data to high-dimensional data like scRNA-seq.

Did you ever see a figure you made last year but can’t remember how you made it? Do you need to write a Data Sharing Plan for an NIH grant but don’t know where to begin? Understanding the principles we cover here will help you and others reproduce and extend your work.

This is a refresh of the 2023 Workshop. It is no longer being offered as a webinar. These materials are free to use. If you would like to collaborate and have a student who would benefit from this training, you can email bradley.blaser@osumc.edu.

Goals

The goals is for you to become comfortable with the R statistical computing language and associated computational technology:

  • Rstudio for interacting with R
  • git for version control
  • github to share your work
  • R package development to keep your code and data separate and organized

Core Objectives

Once you have completed this course you should be able to:

  • properly format data for efficient computation
  • generate a table of descriptive statistics for data from a typical biological experiment
  • perform statistical testing as appropriate
  • generate publication-quality plots using ggplot
  • generate an R data package holding processed data
  • understand the difference between raw data, processed data, and analysis code
  • use basic version control functions to track and document changes to your analysis
  • publish your code so reviewers can understand how you arrived at your results

Optional Modules

I have developed several software modules which will be of interest to most. They aid in the programmatic handling of data we often encounter in biology. After completing the core modules you should be comfortable with the following:

  • scRNA-seq data processing and analysis
  • ranged genomic data (ChIPseq etc.): Trace
  • making heatmaps: SummarizedHeatmap
  • programmatic generation of genbank files: Ape
  • blinding images for unbiased quantification

Prerequisites

The course assumes no prior knowledge of R. It is designed for biologists with an interest in analyzing high-dimensional and/or computationally-intensive data. The only prerequisites are a basic understanding of biological experimental design (controls, biological replicates, technical replicates, etc.) and a computer.

Before the first class you should make sure your computer is ready to go. There are several computing options to choose from.

  • You can use your personal computer. Most/all of the software we use in the course is available for Mac and PC and will run directly on your machine. If you own the computer, just install the programs below. If it is a lab computer, have your IT admin install the programs.
  • You may have access to a lab server or cloud service running Rstudio server. This will probably be linux-based and will run everything we will be using in the course.
  • You can use an existing academic account at the Ohio Supercomputing center or your institution’s equivalent. The cost for what we will be doing will be tiny and this has the advantage of being a computing environment you may already be familiar with and have used/will use for your work.

R studio cloud (now Posit cloud) is not a great option for your academic research. It is subscription-based and the rates are exorbitant compared to what you will pay at a supercomputing center at your academic institution.

The best computing option for this class will be what you wish to use for your own research projects.

If you wish to work on your local computer, here are links to the programs we will be using:

Windows and Mac users: see this note on installing Rtools and Xcode.

You should also register for a free github account. Choose a name that you would be OK with putting in a publication.

Curriculum structure

This workshop starts from the basics and moves through somewhat advanced topics. Exercises are presented at the end of each lesson. Try to complete these before moving onto the next lesson.

A note about AI coding tools

AI coding tools are a powerful way to extend your skills. I use them often. But be aware that you must absolutely know how to ask focused questions and then be able to incorporate the result into your code. As of 2026, in my experience, if you ask “too big” of a question from something like ChatGPT, you will get extremely verobse, virtually unreadable code in return. This may or may not run without errors and even if it does run, it may generate results you don’t want. If you don’t know what you are looking for then this is bad. So, ask questions that are small enough that you can understand and learn from every line that the AI produces. These small tasks are usually easier for the AI to get right as well.

Curriculum Overview

This course covers a relatively wide range of topics which may be intimidating for new R users. The first three lectures will present some basics in using R. The last three will be more advanced.

Even intermediate-level users with some pre-existing experience using R will likely learn some helpful information in the early lectures.

Core Lesson 1: Setting up your computing environment

  • Core Lesson 1 R script
  • Content
    • R and Rstudio
    • blaseRtemplates
    • Projects
    • Packages
    • Basic Git for the single user

Core Lesson 2: Basics of working with data in R

  • Core Lesson 2 R script
  • Content
    • Review GIT
    • File system basics
    • Data Format
    • Input and Data Types
    • Variable Assignment
    • Data Structures
    • Subsetting Data
    • Data Operations
    • Dplyr

Core Lesson 3: More advanced concepts in R

Core Lesson 4: Building and using data packages

  • Core Lesson 4 R script
  • Content
    • Saving R Objects
    • Setting up the Package
    • Adding Data
    • Adding Code
    • Including Raw Data
    • Documentation
    • Finishing Up
    • Loading the Data Package

Optional Module 1: scRNA-seq tutorial

  • 10X Datasets
  • Content
    • Data Management
    • Preprocessing Data in the Cloud
    • Loading Data into the cellDataSet
    • QC
    • Merging
    • Dimension Reduction
    • Batch Correction
    • Clustering
    • Gene Modules
    • Label Transfer
    • UMAP Plots
    • Gene Bubbles
    • Differential Gene Expression
    • Differential representation

Optional Module 2: Ranged Genomic Data tutorial

  • Content
    • The Trace Container
    • Plotting Component Tracks
      • Trace data
      • Gene model
      • Peaks
      • Links
      • Axis
    • Putting the Plot Together

Optional Module 3: Heatmap tutorial

  • Content
    • Constructig a SummarizedHeatmap
    • Plotting
      • Main body
      • Dendrograms
      • Row and Column Annotations
      • Highlights
    • More customization and Variations

Optional Module 4: APE tutorial

  • Content
    • Ape Class
    • I/O
    • Annotating TF binding sites with FIMO

Course Evaluation