RNA-seq
RNA-seq measures gene expression across the transcriptome. This section follows the same
route as the analysis itself: background, processing, differential expression, and
pathway analysis. The primary analysis, from FASTQ to a count matrix, is a pipeline job.
Two processing pages describe it without running it, and the
nf-core/rnaseq guide runs it. The pages from QC
through gene expression and pathways start from a finished count matrix, the one the Bioconductor airway package
ships, and carry it through the downstream analysis.
The transcript usage lesson follows a separate pasilla experiment with seven biological samples. It compares transcript proportions within genes, which a gene-level count table cannot reconstruct.
Background
Section titled “Background”What RNA-seq measures, how to design an experiment that can answer the question you ask of it, and the dataset the rest of the section computes on.
| Page | What it does |
|---|---|
| What is RNA-seq | how RNA sequencing measures gene expression across the transcriptome |
| Experimental design | replicates, depth, and library type, settled before sequencing |
| The workflow & the dataset | the RNA-seq workflow end to end, and the airway dataset loaded into R |
Processing
Section titled “Processing”From reads to a count matrix, and the first look at the matrix once it exists.
| Page | What it does |
|---|---|
| nf-core pipelines | what nf-core/rnaseq and nf-core/differentialabundance take as input and return |
| STAR & Salmon | genome alignment with STAR and transcript quantification with Salmon |
| QC & filtering | removing low-count genes and looking at sample structure with PCA |
| Normalization | size factors and the variance-stabilizing transformation in DESeq2 |
Differential expression
Section titled “Differential expression”From the count matrix to the table of changing genes, by three routes.
| Page | What it does |
|---|---|
| DESeq2 & pyDESeq2 | the same analysis in R and in Python, with the numbers compared and the fold changes shrunk |
| edgeR | the quasi-likelihood F-test on the paired design, and when to choose each package |
| limma-voom | the voom transformation and the limma fit on the same paired design |
Transcript usage
Section titled “Transcript usage”| Page | What it does |
|---|---|
| Differential transcript usage | Compare transcript proportions across all seven pasilla samples with adjustment for library layout. |
Pathway analysis
Section titled “Pathway analysis”Whether the changing genes share biological structure, and the figures that show the results.
| Page | What it does |
|---|---|
| Over-representation analysis | testing GO terms with clusterProfiler and gseapy |
| Gene set enrichment analysis | ranking every gene, testing the MSigDB Hallmark sets with fgsea and gseapy, and what the ranking is worth |
| Visualization | volcano, MA, PCA and heatmap figures of the DESeq2 results |
The dataset
Section titled “The dataset”The gene expression and pathway lessons compute on the Bioconductor
airway dataset of Himes et al.
2014, which the workflow & the dataset page loads and
describes.
The transcript usage lesson supplies its separate count archive, annotation
version, sample metadata, and scientific references.
The treatment comparison has four donor cell lines, each measured untreated and treated with dexamethasone. The sample table connects those pairs to the count matrix. Follow that connection from experimental design to the DESeq2 design formula before interpreting a gene list. Eight libraries do not make eight independent donors.
R first
Section titled “R first”The DESeq2, edgeR, and limma workflows are R and Bioconductor, so most pages are R only. Three pages add a Python tab. The DESeq2 & pyDESeq2 page runs pyDESeq2 on the count matrix the R tab exports, and the two enrichment pages run gseapy on the genes and gene sets their R tabs export.
Run an example
Section titled “Run an example”The companion repository is private, so its
RNA-seq setup instructions
and runners require repository access. From the repository root, build the image
with bash guides/rnaseq/containers/rnaseq/build.sh, then run
bash guides/rnaseq/overview/run.sh.
The overview runner
loads the packaged counts and sample metadata and writes its printed results to
guides/rnaseq/overview/outputs/page_output_r.txt. The public airway package above
provides the original teaching data without companion access.
The Chromatin section applies a paired count model to accessible genomic regions. Its promoter and nearest-TSS annotations identify candidate relationships; they do not establish an expression change in a nearby gene.
Scientific references
Section titled “Scientific references”Himes and colleagues, 2014 report the airway smooth-muscle experiment.
Further reading
Section titled “Further reading”The airway preparation vignette identifies the selected libraries and their metadata.