Write the report

Open reports/synthetic-report.qmd. Create it if missing. Paste the template below and replace every bracketed prompt with your checked values. Figure paths are relative to the report in reports/.

---
title: "Synthetic RNA-seq practice report"
format:
  html:
    toc: true
---

## Question and inputs

Which fictional genes differ between group B and group A?

The input consists of 2,000 invented gene rows and 12 fictional samples,
six per group, with the same six donors measured in both conditions. [Confirm these counts from your files.]

## Methods

I checked the count matrix and metadata, then fitted the supplied DESeq2
model `~ donor + group` with B versus A as the contrast. Genes were kept when they
had at least 10 counts in at least two samples. [Add R and DESeq2 versions
from results/synthetic/run-log.txt and the number of genes tested.]

## Verification

For A01, the count total was [number] and [number] genes had nonzero counts.
I recalculated both from gene-counts.tsv and [state agreement with sample-qc.tsv].

## Results

![Library sizes.](../results/synthetic/figures/library-sizes.png)

[Describe the library sizes using checked numbers and state a limitation.]

![PCA.](../results/synthetic/figures/sample-pca.png)

[Describe the pca using checked numbers and state a limitation.]

![Sample-distance heatmap.](../results/synthetic/figures/sample-distances.png)

[Describe the sample-distance heatmap using checked numbers and state a limitation.]

![MA plot.](../results/synthetic/figures/ma-plot.png)

[Describe the ma plot using checked numbers and state a limitation.]

![Volcano plot.](../results/synthetic/figures/volcano.png)

[Describe the volcano plot using checked numbers and state a limitation.]

![Selected-gene expression.](../results/synthetic/figures/selected-gene.png)

[Compare the selected gene, the prespecified null-effect gene and the variable-response gene. Quote checked model estimates and normalized counts. Distinguish generating parameters from fitted estimates; note that panel scales differ.]


## Interpretation and limits

These data are fictional. The plot is exploratory; the gene table reflects
its chosen model and contrast. No claim about a real biological process or
clinical treatment follows from these results.

## Reproducibility

Inputs: data/synthetic/.
Outputs: results/synthetic/.
[Record your run date, exact command and source version.]

Render from the main project folder:

quarto render reports/synthetic-report.qmd --to html

Open the HTML, check the figure displays and remove unfinished bracketed prompts. Rendering the report uses existing outputs and does not rerun DESeq2.

Final check: every number should trace to an input, output table or run record. Next, repeat the seven steps with the airway case study, where cell line is part of the design.