Skip to content

Modernize Day 1-4 Vignettes#10

Merged
lwaldron merged 6 commits into
mainfrom
modernize-day1-intro
Jul 3, 2026
Merged

Modernize Day 1-4 Vignettes#10
lwaldron merged 6 commits into
mainfrom
modernize-day1-intro

Conversation

@lwaldron

@lwaldron lwaldron commented Jul 3, 2026

Copy link
Copy Markdown
Member

This PR modernizes the vignettes for days 1-4 by moving to ggplot2, SingleCellExperiment, and modern data tables (gtsummary).

Copilot AI review requested due to automatic review settings July 3, 2026 11:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Day 1–4 course vignettes to use more modern R/Bioconductor tooling and plotting idioms (ggplot2-based figures, SingleCellExperiment workflows, and modern regression summaries).

Changes:

  • Replaced multiple base R plots (hist/qqnorm/boxplot/scatter/volcano/p-value hist/MA) with ggplot2-based equivalents and multi-panel layouts.
  • Refactored the Day 2 tissue expression workflow to store expression + metadata in a SingleCellExperiment and use scater plotting helpers.
  • Updated regression-table rendering in Day 3 to use broom/knitr tables and gtsummary regression summaries.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

File Description
vignettes/day1_intro.Rmd Switches several distribution/CI visuals to ggplot2 and adds a new null p-value demonstration + practical SummarizedExperiment example.
vignettes/day2_unsupervised.Rmd Introduces a SingleCellExperiment-centric workflow and modern PCA/MDS/TSNE/UMAP plotting.
vignettes/day3_linearmodels.Rmd Updates coefficient visualization to ggplot2 annotations and modernizes regression table output.
vignettes/day4_batcheffects-vis.Rmd Replaces multiple exploratory plots with ggplot2 and patchwork-based multi-panel layouts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vignettes/day3_linearmodels.Rmd Outdated
Comment thread vignettes/day3_linearmodels.Rmd Outdated
Comment thread vignettes/day2_unsupervised.Rmd
library(UsingR)
library(rafalib)
library(ggplot2)
library(patchwork)
boxplot(exec.pay, ylab="10,000s of dollars", ylim=c(0,400), main = "CEO Compensation")
```{r bp1, echo=FALSE, fig.width=10, fig.height=4, warning=FALSE}
library(ggplot2)
library(patchwork)
)
```{r cor1, echo=FALSE, fig.width=10, fig.height=4, warning=FALSE}
library(ggplot2)
library(patchwork)
hist(nullpvals, ylim = c(0, 1400))
```{r pvalhist2, echo=FALSE, fig.height=3, fig.width=8, warning=FALSE}
library(ggplot2)
library(patchwork)
rafalib::mypar(1, 2)
```{r pvalhist4, fig.height=4, fig.width=8, warning=FALSE}
library(ggplot2)
library(patchwork)
fit.table <- xtable::xtable(fit, label=NULL)
print(fit.table, type="html")
```{r, echo=TRUE, message=FALSE}
gtsummary::tbl_regression(fit)
fit.table <- xtable::xtable(fit, label=NULL)
print(fit.table, type="html")
```{r, echo=TRUE, message=FALSE}
gtsummary::tbl_regression(fit)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@lwaldron lwaldron merged commit f5526e6 into main Jul 3, 2026
0 of 2 checks passed
@lwaldron lwaldron deleted the modernize-day1-intro branch July 3, 2026 11:52
Copilot stopped work on behalf of lwaldron due to an error July 3, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants