Data Science Curriculum

RStudio and Python for Biology Research

A full beginner curriculum for dry-lab biology projects: clean messy datasets, analyze them in RStudio or Python, and produce reproducible figures for an EBS poster.

What You Will Learn

Learning Outcomes

By the end of this curriculum, students should be able to move from a biological question to a defensible, reproducible analysis.

Analyze Real Data

Import CSV files, inspect variables, handle missing values, summarize groups, and choose appropriate statistical tests.

Use Two Toolchains

Work in RStudio for R-based statistics and in Python notebooks for pandas, NumPy, and SciPy workflows.

Document Decisions

Keep an analysis log that explains cleaning decisions, assumptions, test selection, and limitations.

Make Poster-Ready Figures

Create clear, labeled visualizations and export them with captions that state the result and interpretation.

Before Module 1

Setup and Starter Dataset

Students can choose either track first. The website teaches both workflows directly; the only outside step is opening the tool you want to use for running code.

RStudio Track

R in RStudio

Use RStudio when your project is centered on statistical tests, group summaries, and clean publication-style plots.

Start RStudio Track
Python Track

Python with pandas, NumPy, and SciPy

Use Python when your project needs programmable data cleaning, custom calculations, or notebook-based analysis.

Start Python Track
Core Sequence

Full Curriculum

The sequence below works for an EBS research team, club workshop, or independent student. Each module includes a concept, a hands-on lab, and a checkpoint deliverable.

1

Research Questions and Data Types

Week 1No code required

Turn a biology interest into an analyzable question and identify whether the data are categorical, numeric, time-series, sequence-based, or text/literature-based.

Concept

Variables, observations, population, sample, outcome, predictor, and confounder.

Lab

Rewrite three broad biology topics as testable data questions.

Checkpoint

Submit one research question plus the public dataset you plan to use.

2

Spreadsheets, CSV Files, and Reproducibility

Week 1RStudio or Python

Learn why analysis should happen in code instead of manual spreadsheet edits. Set up a folder structure for data, scripts, outputs, and notes.

Concept

Tidy data, raw versus cleaned files, relative paths, and analysis logs.

Lab

Import a CSV, inspect column names, preview rows, and save a cleaned copy.

Checkpoint

Create a project folder with a README explaining the dataset source.

3

Data Cleaning and Quality Checks

Week 2pandas / R data frames

Identify missing values, duplicated rows, impossible values, inconsistent units, and mixed data types before running statistics.

Concept

Missingness, outliers, data dictionaries, unit standardization, and audit trails.

Lab

Clean a messy biological dataset and record every transformation.

Checkpoint

Submit before/after row counts and a three-sentence cleaning rationale.

4

Descriptive Statistics

Week 3NumPy / summary functions

Summarize distributions with counts, proportions, mean, median, standard deviation, interquartile range, and grouped summaries.

Concept

Central tendency, spread, skew, sample size, and biological interpretation.

Lab

Build a grouped summary table comparing two biological conditions.

Checkpoint

Write one paragraph explaining the most important summary result.

5

Visualization for Biology

Week 4ggplot / matplotlib

Choose figure types that fit the question: bar charts for counts, scatter plots for relationships, box plots for distributions, and line charts for time.

Concept

Axes, labels, units, color, uncertainty, figure captions, and avoiding misleading scales.

Lab

Create three figure drafts from the same dataset and choose the clearest one.

Checkpoint

Export one poster-ready figure with a caption.

6

Statistical Testing with SciPy and RStudio

Week 5SciPy / R tests

Select and run basic tests: chi-square, t-test, Mann-Whitney U, correlation, and simple linear regression.

Concept

Null hypothesis, p-values, effect size, confidence intervals, and assumptions.

Lab

Run two candidate tests and justify which one fits the data better.

Checkpoint

Submit a test-selection note with assumptions and limitations.

7

Public Biological Datasets

Week 6NCBI / CDC / UniProt

Find data from public repositories and evaluate whether the metadata are complete enough for analysis.

Concept

Repository metadata, accession numbers, licensing, citation, and reproducibility.

Lab

Locate one dataset and write a short data provenance statement.

Checkpoint

Add formal dataset citations to your analysis README.

8

Modeling and Prediction

Week 7Optional extension

Use simple models carefully: regression for relationships, classification for categories, and simulation for biological systems.

Concept

Training data, overfitting, validation, prediction versus explanation, and model limits.

Lab

Fit a simple regression model and compare predictions to observed values.

Checkpoint

Explain whether your model supports a biological claim or only describes a pattern.

9

Interpretation, Bias, and Limitations

Week 8Research writing

Connect results back to the biological question without overstating conclusions. Identify sampling bias, measurement limits, and alternative explanations.

Concept

Correlation versus causation, confounding, multiple comparisons, and scope of inference.

Lab

Write a limitations section for a published or sample analysis.

Checkpoint

Submit three limitations and one next experiment or next analysis.

10

Reproducible Research Package

Week 9-10Final assembly

Organize the final project so another student can rerun the analysis and understand the result.

Concept

README files, commented code, output folders, citations, and figure exports.

Lab

Clean your project directory and rerun the notebook or script from start to finish.

Checkpoint

Submit a reproducibility checklist with your abstract and poster draft.

Separate Track Pages

Choose How You Want to Analyze

The two tool tracks are now separate pages so each one can teach from first principles without crowding the course map.

Notebook workflow

Python Track

Learn pandas for tables, NumPy for numeric arrays, and SciPy for statistical tests using an on-page biology dataset and guided exercises.

Open Python Track
RStudio workflow

RStudio Track

Learn R data frames, formulas, grouped summaries, t-tests, and base plotting using the same built-in dataset and answer checks.

Open RStudio Track
Final Product

Capstone Deliverables

The curriculum ends with a small research package that can become the methods/results backbone of an EBS poster.

Deliverable What It Must Include Quality Bar
Research question One sentence naming the biological system, variables, population, and expected analysis. Specific enough that another student could identify the needed dataset.
Clean dataset Raw data source, cleaned file, and a note explaining exclusions or transformations. No hidden manual edits. Cleaning steps are reproducible in code.
Analysis notebook or script Readable RStudio script or Python notebook with imports, cleaning, summaries, tests, and plots. Runs from top to bottom and produces the same result each time.
Figure and caption One main result figure with labeled axes, units, legend if needed, and a caption. The caption states the pattern and avoids overstating causation.
Interpretation paragraph Result, biological meaning, limitation, and one next step. Clear enough for a judge outside the exact subfield to follow.
Readiness Check

Before You Present

Use this checklist before moving from analysis into poster design.

The research question can be answered by the dataset you actually used.
All cleaning decisions are written down and justified.
The chosen statistical test matches the data type and research question.
Figures are readable without needing the full paper draft.
The limitations section names what the analysis cannot prove.