Source: https://jubileejoyzirebwa.com/projects/rnaseq-service-workflow/
Canonical: https://jubileejoyzirebwa.com/projects/rnaseq-service-workflow/

[Work](https://jubileejoyzirebwa.com/work/)

# Reproducible RNA-seq Service Workflow

I built a compact Nextflow workflow around a paired differential-expression question in the public GSE52778 airway dataset.

| Cell line | Untreated | Treated |
| --- | --- | --- |
| N61311 | SRR1039508 | SRR1039509 |
| N052611 | SRR1039512 | SRR1039513 |
| N080611 | SRR1039516 | SRR1039517 |
| N061011 | SRR1039520 | SRR1039521 |

<https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/data/samples.csv>

GSE52778 sample sheet [Source](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/data/samples.csv)

## What I was asked

This project begins with processed gene counts from the airway package.

Raw FASTQ quality control, alignment and quantification would be a separate upstream service.

## What I did

1. **Validate the service intake**

   The first process checks that the sample sheet contains exactly eight unique samples, four complete untreated/treated pairs, the correct accession and the declared processed-count input type.
2. **Run the paired analysis**

   DESeq2 fits the declared ~ cell + dex design, applies a fixed low-count rule and reports the dexamethasone-treated versus untreated contrast while controlling for the four cell-line pairs.
3. **Check the result contract**

   A separate validator checks result columns, adjusted-p-value filtering, model metadata and the expected positive CRISPLD2 direction so a reversed contrast or incomplete handoff is caught explicitly.
4. **Build the handover**

   The final process assembles result tables, QC plots, metadata, session information, interpretation notes and a provenance manifest containing software versions and SHA-256 hashes.

## What it changed

The project records the dataset accession, Git commit, container references, package versions and file hashes alongside the result tables and plots.

Kind of work

Self-directed bioinformatics service-workflow exercise

Analysis unit

Eight processed-count samples forming four untreated/treated cell-line pairs

Model

~ cell + dex, reporting treated versus untreated

Reproducibility

Nextflow DSL2, pinned Bioconductor container, provenance hashes and CI-tested validators

- [Code](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow)
- [Nextflow workflow](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/main.nf)
- [Handover](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/docs/HANDOVER.md)

## Further artefacts

[gse52778-rnaseq-service-workflow docs/HANDOVER.md](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/docs/HANDOVER.md)

Result tables, QC plots, metadata and a provenance manifest [Handover](https://github.com/JJZirebwa/gse52778-rnaseq-service-workflow/blob/dc040fddcc0f24aaae389e8cd59bd893feda6ef8/docs/HANDOVER.md)

[Work Next piece of work](https://jubileejoyzirebwa.com/work/)
