Scientific overview

Methods and assumptions

A Salmon–DESeq2 workflow with minimum sample-count requirements and recorded reference provenance.

Analysis flow

  1. fastp
    Preprocesses reads and records JSON and HTML quality-control summaries.
  2. Salmon
    Quantifies transcripts from reads using the selected Salmon index.
  3. tximport
    Maps transcripts to genes and writes gene-level counts and TPM matrices.
  4. DESeq2
    Models gene-level counts when the minimum sample-count requirements are met.

Snakemake connects these steps and supports resumable execution. Before execution, Harako-RNAseq saves the normalized sample table, resolved configuration, analysis plan, tool versions, and reference provenance within the run directory.

Counts and TPM have different roles

Gene counts

tximport summarizes transcript estimates to gene-level counts. Full-length RNA-seq uses original tximport counts with the effective-length correction passed through DESeqDataSetFromTximport. 3′-tag RNA-seq uses original counts without length correction. The protocol is selected explicitly, and TPM is never DESeq2 model input.

Gene-level TPM

TPM is provided as a gene-level abundance measure. Harako-RNAseq does not use TPM as input to DESeq2.

Interpretation

Counts and TPM do not establish biological independence, adequate statistical power, or causal relationships. These questions must be assessed for each study.

Requirements for differential expression analysis

Under analysis policy version 1, Harako-RNAseq runs DESeq2 differential expression analysis only when the normalized sample table contains at least two conditions with at least two valid samples per condition. This is the minimum threshold enforced by the software, not a power calculation or evidence of biological independence or experimental-design validity.

When these requirements are met, Harako-RNAseq uses the configured condition contrasts. DESeq2 results and inferential plots are generated in differential mode; enrichment is optional and runs only when its additional requirements are met.

QC-only mode does not calculate or report p-values or adjusted p-values. It retains read preprocessing, Salmon quantification, gene-level counts, gene-level TPM as an abundance measure, the HTML report, and QC outputs that can be computed from the available data. DESeq2-normalized counts, PCA, and sample-distance plots are included only when normalization succeeds. Inferential contrasts are inactive; differential expression plots and enrichment are not produced.

Reference provenance

Built-in presets are checksum-pinned Ensembl bundles. v0.3.0-beta.2 includes human GRCh38 / Ensembl 113, mouse GRCm39 / Ensembl 113, the backward-compatible mouse GRCm38 / Ensembl 102 preset, and rat mRatBN7.2 / Ensembl 113. Each bundle combines transcript FASTA, genome FASTA, and GTF assets whose SHA-256 checksums are recorded in the repository manifest.

The saved run record includes the selected preset, canonical identifier, release metadata, source URLs, and checksums. Custom reference files are supported, but the researcher must verify assembly and annotation compatibility.

Scientific limitations

  • The default condition-based design does not automatically model batch, pairing, repeated measures, or other covariates.
  • Small designs can yield unstable estimates even when they meet the minimum sample-count requirements.
  • Harako cannot infer biological independence from filenames, labels, or replicate suffixes.
  • If DESeq2 median-ratio normalization is not possible for a degenerate count matrix, the run stops with an error.
  • A matching checksum confirms reference file identity but does not show that an assembly or annotation is biologically appropriate for a study.
  • The public beta is not clinically validated and does not replace expert statistical or biological review.

Read the full scientific methods and limitations documentation in the GitHub repository.