Skip to content

About

RNA-seq-workflow: FASTQ → salmon → tximeta → DESeq2 → figures

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

rnaseqWorkflow

Gene-level RNA-seq from raw reads to differential expression: salmon quantification, tximeta import, DESeq2 testing, with the upstream pipeline implemented in Snakemake.

Six-panel workflow: root sampling, RNA extraction, RNA quality control, library preparation, sequencing, bioinformatics

Panels 1–5 are the bench steps; panel 6 is the computational pipeline in this repository. Created with BioRender.

Built on the Bioconductor rnaseqGene workflow by Michael Love, Simon Anders, Vladislav Kim and Wolfgang Huber.

Install

# install.packages("remotes")
remotes::install_github("mghotbi/RNA-seq-workflow", build_vignettes = TRUE)
vignette("rnaseq-workflow", package = "rnaseqWorkflow")

Documentation: https://mghotbi.github.io/RNA-seq-workflow/

Contents

The vignette covers sample quality assessment (variance stabilisation, distances, PCA, GLM-PCA, MDS), paired differential expression with dispersion diagnostics and effect-size shrinkage, interpretation plots, gene annotation, hidden batch effects via SVA and RUV, and interaction tests for time-course designs. It also documents the bench steps upstream of the data, with references.

It runs on the eight-sample count matrix packaged with airway, so no data download is required. Set params$source = "quants" to run it against your own salmon output instead.

Exported helpers: build_coldata(), filter_low_counts(), annotate_results(), tidy_results(), plot_volcano().

Upstream pipeline

snakemake -j 4 --use-conda --configfile workflow/config.yaml \
          --snakefile workflow/Snakefile

SRA retrieval, an optionally decoy-aware salmon index, quantification and MultiQC. Runs locally or submits to SLURM unchanged. Roughly 22 GB of FASTQ for the example dataset; the human index needs about 16 GB of RAM to build. Everything is configured in workflow/config.yaml.

Using it on your own experiment

  1. workflow/config.yaml — run accessions or local FASTQ paths, and the reference release for your organism. GENCODE lets tximeta resolve the annotation from the checksum; otherwise pass skipMeta = TRUE with your own tx2gene table.
  2. data/coldata.csv — one row per sample. names and files are required; other columns become available to the design formula.
  3. The design formula. ~ cell + dex tests treatment controlling for donor. Substitute your own nuisance structure, and use ~ group + treatment + group:treatment to test whether an effect differs between groups.
  4. Vignette parameters: fdr, lfc_threshold, and whether to run the batch-effect and time-course sections.

Counts must not be pre-normalised for library size — DESeq2 models raw counts and corrects for depth internally. Set the reference level of the factor of interest explicitly with relevel(); alphabetical ordering can invert the sign of every fold change.

Requirements

R ≥ 4.3, Bioconductor ≥ 3.18. Rscript install/dependencies.R installs everything and reports what is missing. Gviz, RUVSeq and sva need system libraries:

sudo apt-get install libxml2-dev libcurl4-openssl-dev libssl-dev libpng-dev

For the upstream pipeline: conda or mamba. --use-conda provides salmon and sra-tools.

References

The bench sections cite:

Topic Source
Wheat RNA-seq design and sampling Cevher-Keskin et al. 2025, Front. Plant Sci., 10.3389/fpls.2025.1649378
Host–microbe and dual RNA-seq designs Sainz et al. 2024, Genet. Mol. Biol., 10.1590/1678-4685-GMB-2023-0284
Extraction chemistry and DNase options Thermo Fisher, PureLink RNA Mini Kit user guide, MAN0000406 Rev. 14
RNA integrity: RIN, RINe, DV200 Agilent, Automated Electrophoresis Portfolio application compendium, 5994-2142EN
Poly(A) capture and dUTP strandedness NEB, Directional poly(A) mRNA enrichment, NEBNext Ultra II (E7760)
Library options, read length, depth Illumina, Methods for RNA sequencing, M-GL-00034 v2.0
Production pipeline comparison nf-core/rnaseq; Ewels et al. 2020, 10.1038/s41587-020-0439-x

Citation

Cite the methods, not this repository: DESeq2 (Love, Huber & Anders 2014), salmon (Patro et al. 2017), tximeta (Love et al. 2020), and the example data (Himes et al. 2014).

Licence

Code MIT, prose CC BY 4.0. Derived from the Bioconductor rnaseqGene workflow (Artistic-2.0).

About

RNA-seq-workflow: FASTQ → salmon → tximeta → DESeq2 → figures

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages