Capstone: Reproduce a Published RNA-seq Result

No step-by-step tutorial this time. You get a real paper, its public data and a target. Re-analyse it on your own, check which of the authors' top genes hold up, and explain every difference you find, just as you would in a lab.

🔴 Intermediate to advanced ⏱️ ~3 hours 📊 R · DESeq2 · ggplot2 🌐 Runs free in Colab

Before you start

Learning objectives

By the end of this project you will be able to: turn a paper's claim into a concrete, checkable target; re-analyse the paper's public data on your own; compare your results with the published table gene by gene; explain the differences you find instead of hiding them; and write it all up as a short reproduction report for your portfolio.

Why reproduce a paper?

Following a tutorial proves you can copy steps. Reproducing a published result proves you can work on your own: read a methods section, get the real data, make your own analysis choices, and judge whether your answer agrees with the authors. It is exactly what you would do on day one in a lab, and it is one of the strongest projects you can show an employer or a PhD committee.

It also teaches the most important research habit of all: a different pipeline never gives exactly the same numbers. The skill is knowing which differences matter.

1. The claim Table 1, 17 genes 2. The data GEO GSE52778 3. Your analysis DESeq2, paired 4. Compare gene by gene 5. Explain gaps your report Steps 4 and 5 are what make this research, not a tutorial.
The reproduction loop you will follow in this project.

The paper in 60 seconds

Himes BE et al. (2014), PLoS One. Steroids such as dexamethasone are a mainstay asthma treatment, but how they calm inflammation in airway smooth muscle was poorly understood. The authors took airway smooth-muscle cells from 4 donors, split each donor's cells into an untreated and a dexamethasone-treated (1 µM, 18 hours) sample, and sequenced all 8 with RNA-seq.

  • They report 316 differentially expressed genes (Benjamini-Hochberg adjusted p < 0.05).
  • Table 1 lists the 17 strongest genes (q-value < 1E-10). It includes well-known steroid-response genes (DUSP1, KLF15, PER1, TSC22D3, FKBP5) and less-studied ones, including CRISPLD2, which they went on to study in the lab.
  • Figure 1 shows a volcano plot of all genes.

Your target: re-create Table 1 and the volcano plot from the public data, and decide which of the 17 genes hold up.

Their pipeline and yours

StepHimes et al. 2014This project
AlignmentTopHat 2.0.4 to hg19Already done: you start from gene counts
Gene annotationRefSeq (hg19)Ensembl genes
QuantificationCufflinks 2.0.2 (FPKM per transcript)Read counts per gene
StatisticsCuffdiff 2.0.2DESeq2, paired by donor

The counts come from the Bioconductor airway package, which re-counted the same sequencing reads (GEO GSE52778) against Ensembl genes. BioNexus keeps a copy as three small CSV files, plus the paper's Table 1 typed into himes2014-table1.csv, so everything loads in seconds.

▶ Work in Google Colab

The notebook has the data loader ready and an empty cell for each task. Set the runtime to R (Runtime, then Change runtime type, then R). Installing DESeq2 takes about 3 to 5 minutes the first time.

Open the project notebook →

Your mission: five tasks

Try each task yourself first. Open a hint only when you are stuck, and use the checkpoint to confirm you are on track before moving on.

1Load the data and check the design

Load the counts, the sample table and the gene names. Before any statistics, confirm the experiment's structure: how many samples, how many donors, and does every donor have one untreated and one treated sample?

Hint

table(samples$cell, samples$dex) cross-tabulates donor against treatment.

Checkpoint

8 samples; 4 donors (cell lines N052611, N061011, N080611, N61311), each with exactly one untrt and one trt sample. This is a paired design.

2Run a paired differential-expression analysis

Build a DESeq2 dataset whose design accounts for the donor, keep genes with at least 10 reads in at least 4 samples, run DESeq2 and get results at an FDR of 0.05.

Hint

The design is ~ cell + dex: the variable you test goes last. Filter with rowSums(counts(dds) >= 10) >= 4, and ask for results(dds, alpha = 0.05).

Checkpoint

16,139 genes pass the filter, and about 4,081 have an adjusted p-value below 0.05. Yes, that is far more than the paper's 316. Hold that thought for Task 5.

3Compare your results with Table 1

Load himes2014-table1.csv and join it to your results by gene symbol. Call a gene reproduced if your adjusted p-value is below 0.05 and your fold change points in the same direction as the paper's. Then compare the sizes of the fold changes.

Hint

Add a symbol column to your results, then use merge(paper, ours, by = "symbol"). sign() gives the direction of a fold change, and cor() compares the two sets of fold changes.

Two traps in the paper's table

Old gene names. The paper lists C13orf15; that gene has since been renamed RGCC. The CSV gives both names. Gene names change over time, which is one reason analysts work with stable IDs like Ensembl's.

A mislabelled column. The table's header says "Ln[Fold Change]", but the numbers are log2 values: for C7, log2(38.41 / 3.76) = 3.35, while the natural log would be 2.32. Cuffdiff reports log2 fold changes. Checking a header against the raw numbers is a habit worth keeping.

Checkpoint

16 of the 17 genes reproduce, and your fold changes track the paper's closely (correlation about 0.96). One gene does not reproduce. Which one?

4Make a volcano plot with the paper's genes labelled

Plot every gene's log2 fold change against its significance, colour the significant ones, and label the 17 genes from Table 1. Yours should look much like this:

Volcano plot of dexamethasone-treated versus untreated airway cells. Thousands of genes are significant; the 17 genes from the paper's Table 1 are labelled in purple, mostly far up and to the right, with SERPINA3 sitting just at the significance line.
The target figure. Purple points are the paper's Table 1 genes; the dashed line is adjusted p = 0.05.
Hint

Turn the results into a data frame, drop rows where padj is NA, and plot -log10(padj) against log2FoldChange with ggplot2. A second geom_point() and a geom_text() on just the Table 1 genes adds the labels.

5Explain the differences: your reproduction report

This is the part that makes it research. Write a short report (half a page is enough) that answers:

  1. Why do you find about 4,081 significant genes when the paper found 316? List at least two differences between the pipelines that could explain it.
  2. Which gene did not reproduce, and why might that be? Look at its raw counts in every sample before you answer.
  3. One gene reproduced but with a noticeably smaller fold change. Find it and look at its counts donor by donor. What do you notice?
  4. Overall verdict: does the paper's main conclusion (dexamethasone strongly switches on CRISPLD2 and the classic steroid-response genes) hold up?
  5. A methods paragraph (4 to 6 sentences) describing exactly what you did, with tool versions, so someone else could repeat it.
Hint for questions 2 and 3

Look up the gene's Ensembl ID with rownames(genes)[genes$symbol == "SERPINA3"], then print counts[id, ]. Remember the column order alternates untreated, treated for each donor.

Think like a reviewer

Before you call your report finished, ask the questions a reviewer would ask:

  • Only 4 donors: how much would one unusual donor change the result?
  • The cells were grown in a dish. Would the same genes respond in a patient's airway?
  • Is a list of 316 genes, or of 4,081, the "right" answer? What would you need to decide?
  • Which result would you trust enough to spend months on in the lab, and why did the authors pick CRISPLD2?

Model solution

Only open this after you have tried every task. Comparing your own reasoning with it is where most of the learning happens.

Show the model solution code
library(DESeq2)
library(ggplot2)

base <- "https://raw.githubusercontent.com/MennahBassiouny/bionexus/main/"
counts  <- as.matrix(read.csv(paste0(base, "airway-counts.csv"), row.names = 1))
samples <- read.csv(paste0(base, "airway-samples.csv"), row.names = 1)
genes   <- read.csv(paste0(base, "airway-genes.csv"), row.names = 1)
paper   <- read.csv(paste0(base, "himes2014-table1.csv"))
samples$cell <- factor(samples$cell)
samples$dex  <- factor(samples$dex, levels = c("untrt", "trt"))
samples <- samples[colnames(counts), ]

# Task 1: check the design
table(samples$cell, samples$dex)

# Task 2: paired DESeq2 analysis
dds  <- DESeqDataSetFromMatrix(counts, samples, design = ~ cell + dex)
keep <- rowSums(counts(dds) >= 10) >= 4
dds  <- dds[keep, ]
nrow(dds)                                  # 16139
dds  <- DESeq(dds)
res  <- results(dds, alpha = 0.05)
res$symbol <- genes[rownames(res), "symbol"]
sum(res$padj < 0.05, na.rm = TRUE)         # 4081

# Task 3: compare with Table 1
ours <- as.data.frame(res[, c("symbol", "log2FoldChange", "padj")])
cmp  <- merge(paper[, c("symbol", "paper_log2fc")], ours, by = "symbol")
cmp$our_log2fc <- round(cmp$log2FoldChange, 2)
cmp$reproduced <- cmp$padj < 0.05 & sign(cmp$our_log2fc) == sign(cmp$paper_log2fc)
cmp <- cmp[order(cmp$padj), c("symbol", "paper_log2fc", "our_log2fc", "padj", "reproduced")]
print(cmp, row.names = FALSE)
sum(cmp$reproduced)                          # 16
round(cor(cmp$paper_log2fc, cmp$our_log2fc), 2)  # 0.96

# Task 4: volcano plot with the paper's genes labelled
v <- as.data.frame(res)
v <- v[!is.na(v$padj), ]
v$group <- ifelse(v$symbol %in% paper$symbol, "Paper's Table 1",
           ifelse(v$padj < 0.05, "Significant (ours)", "Not significant"))
ggplot(v, aes(log2FoldChange, -log10(padj), colour = group)) +
  geom_point(size = 0.8, alpha = 0.6) +
  geom_point(data = subset(v, group == "Paper's Table 1"), size = 2.2) +
  geom_text(data = subset(v, group == "Paper's Table 1"), aes(label = symbol),
            vjust = -0.8, size = 3, show.legend = FALSE) +
  scale_colour_manual(values = c("Not significant" = "grey70",
                                 "Significant (ours)" = "#5b9cf8",
                                 "Paper's Table 1" = "#a855f7")) +
  geom_hline(yintercept = -log10(0.05), linetype = "dashed") +
  labs(x = "log2 fold change (dex vs untreated)", y = "-log10 adjusted p-value",
       colour = NULL, title = "Reproducing Himes et al. 2014") +
  theme_minimal()

# Task 5: look at the genes that behaved differently
counts[rownames(genes)[genes$symbol == "SERPINA3"], ]
counts[rownames(genes)[genes$symbol == "RGCC"], ]
Show the model answers for Task 5

The comparison table. Fifteen genes land within about 0.2 log2 units of the paper. RGCC reproduces with a smaller fold change (2.84 versus 3.27). SERPINA3 does not reproduce (1.38 versus 3.34, adjusted p = 0.056).

GenePaper log2FCOur log2FCOur padjReproduced?
SPARCL14.704.575.6e-132Yes
DUSP12.992.941.3e-124Yes
SAMHD13.833.763.0e-124Yes
MAOA3.293.353.6e-119Yes
GPX33.763.731.4e-106Yes
PER13.203.191.9e-81Yes
KLF154.584.467.8e-78Yes
KCTD12-2.52-2.531.0e-74Yes
CCDC692.922.914.3e-69Yes
ERRFI12.432.425.2e-60Yes
CRISPLD22.702.631.6e-45Yes
FKBP53.954.047.4e-26Yes
STEAP44.995.205.2e-24Yes
TSC22D33.273.193.2e-19Yes
C73.353.201.8e-12Yes
RGCC3.272.846.5e-05Yes (smaller effect)
SERPINA33.341.380.056No

1. Why 4,081 and not 316? Several real differences add up. The paper used Cuffdiff on FPKM estimates for RefSeq transcripts; we used DESeq2 on read counts for Ensembl genes. Different statistical models give lists of very different sizes from the same reads. Our design is also paired: it compares each donor with itself, which removes donor-to-donor noise and adds power. You can test this: with design = ~ dex (ignoring the donor) the same data give about 2,773 significant genes instead of 4,081. The lesson: the exact length of a gene list depends on the pipeline, so the robust finding is the set of strongest genes, not the count.

2. SERPINA3 did not reproduce. Its counts are low in every sample (between 6 and 54 reads), and in one donor it actually goes down with treatment (17 to 8). With so few reads and an inconsistent donor, DESeq2 is cautious (adjusted p = 0.056). The paper reports a clear tenfold rise in FPKM (13.78 to 139.89), so the two pipelines measured this gene quite differently; from the counts alone we cannot tell which is closer to the truth. The honest conclusion is "not reproduced in this re-analysis", and an independent method such as qPCR would settle it.

3. RGCC's smaller effect. In three donors it rises between about 5 and 18 times with treatment (for example 296 to 3,263 reads), but in donor N61311 it barely moves (176 to 260). One weak responder pulls the average fold change down. The paper itself noted that individual cell lines vary in how strongly they respond to steroids.

4. Verdict. The main conclusion holds: CRISPLD2 and the classic steroid-response genes (DUSP1, KLF15, PER1, TSC22D3, FKBP5) are strongly and consistently switched on, with fold changes very close to the paper's, despite a completely different pipeline. That is a successful reproduction, with one gene flagged.

5. Example methods paragraph. "Gene-level read counts for the eight samples of GEO GSE52778 (four donors, untreated and dexamethasone-treated) were taken from the Bioconductor airway package. Genes with at least 10 reads in at least 4 samples were kept (16,139 genes). Differential expression was tested with DESeq2 (version as reported by packageVersion("DESeq2")) using the design ~ cell + dex to account for the paired donors. Genes with a Benjamini-Hochberg adjusted p-value below 0.05 were called significant. Results were compared with Table 1 of Himes et al. (2014) by gene symbol; a gene counted as reproduced if it was significant with a fold change in the same direction."

Make it a portfolio piece

Put your notebook, your volcano plot and your report in a public GitHub repository. In the README, show your comparison table, state the one gene that did not reproduce and why, and include your methods paragraph. A reviewer learns more about you from an honest "16 of 17 reproduced, and here is why the 17th did not" than from any certificate. See Building a portfolio for how to present it.

Check your understanding

Your re-analysis finds about 4,081 significant genes; the paper reported 316. What is the most reasonable conclusion?
The paper used Cuffdiff on FPKM; we used DESeq2 on counts with a paired design. Both are legitimate, and list length depends on the model. The robust test is whether the top genes agree, and 16 of 17 do.
Why does the design ~ cell + dex find more significant genes here than ~ dex?
Donors differ naturally. Accounting for the donor removes that variation, so the treatment effect stands out more clearly: about 4,081 genes instead of about 2,773.
SERPINA3 is in the paper's top 17 but has an adjusted p-value of 0.056 in your analysis. What should your report say?
Report it honestly. Failing to reproduce is not proof of no effect, and moving the cutoff or hiding the gene would be dishonest. Low counts and an inconsistent donor explain the caution.
The paper's table header says "Ln[Fold Change]", yet for C7 the value 3.35 equals log2(38.41 / 3.76). What does this teach you?
ln(38.41 / 3.76) would be 2.32, not 3.35. Cuffdiff reports log2 fold changes, so the values are log2. Recomputing one value from the raw numbers is a quick way to catch a mislabelled column.
Which part of this project best shows a reviewer or employer that you can work independently?
Anyone can run code. Judging where and why results differ, and saying so honestly, is the skill that marks someone who can do research on their own.

Sources & further reading

  1. Himes BE, Jiang X, Wagner P, et al. RNA-Seq transcriptome profiling identifies CRISPLD2 as a glucocorticoid responsive gene that modulates cytokine function in airway smooth muscle cells. PLoS One 9: e99625, 2014. doi:10.1371/journal.pone.0099625
  2. NCBI GEO. Series GSE52778 (the raw data for this study). ncbi.nlm.nih.gov/geo
  3. Bioconductor. airway: RangedSummarizedExperiment for RNA-Seq in airway smooth muscle cells (data package). bioconductor.org
  4. Love MI, Huber W, Anders S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol 15: 550, 2014. doi:10.1186/s13059-014-0550-8
  5. Trapnell C, Hendrickson DG, Sauvageau M, Goff L, Rinn JL, Pachter L. Differential analysis of gene regulation at transcript resolution with RNA-seq. Nat Biotechnol 31: 46-53, 2013. (Cuffdiff 2, the tool the paper used.) doi:10.1038/nbt.2450
  6. Baker M. 1,500 scientists lift the lid on reproducibility. Nature 533: 452-454, 2016. doi:10.1038/533452a

Last reviewed: October 2026.

You finished the Track 3 capstone

Back to the roadmap →