↓ Skip to main content

4. Analysis modes

otter create --mode selects the scenario. On the canonical track the references carry the species: a release records its own organism and assembly, so you name a release rather than a species.

--modeScenarioReference roles
RRBSrrbs, or bs-pdx with graft+host--reference-primary, or --reference-graft + --reference-host
WGBSwgbs (no PDX variant)--reference-primary
RNASEQrnaseq, or rna-pdx with graft+host--reference-primary, or --reference-graft + --reference-host

BSSEQ is rejected: it does not distinguish RRBS from WGBS, so name one of them.

Each example below assumes you ran otter init <dir> first, which pins the workflow assets the canonical track requires.

RRBS
#

Reduced Representation Bisulfite Sequencing uses restriction-aware preparation and methylation quantification:

otter create \
  --output my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode RRBS \
  --reference-root "$OTTER_REFERENCE_ROOT" \
  --reference-primary hg38@GRCh38.p14

Typical outputs include trimmed FASTQ, aligned BAM/BAI, Bismark coverage, methylation matrices/HDF5, and QC reports.

WGBS
#

Whole-Genome Bisulfite Sequencing shares the bisulfite workflow interface with a different input scale and coverage expectation:

otter create \
  --output my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode WGBS \
  --reference-root "$OTTER_REFERENCE_ROOT" \
  --reference-primary hg38@GRCh38.p14

WGBS has no PDX scenario, so --reference-graft/--reference-host are refused with that reason rather than silently ignored.

WGBS is documented as a supported workflow shape, but full production-scale qualification remains a separate evidence boundary.

RNA-seq
#

RNA-seq uses STAR-compatible alignment, HTSeq-compatible counting, seq2mat matrix conversion, and optional matsrun/rMATS splicing. It needs an annotation, which is part of the release:

otter create \
  --output my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode RNASEQ \
  --reference-root "$OTTER_REFERENCE_ROOT" \
  --reference-primary hg38@GRCh38.p14

The main data path is:

FASTQ → fastqcx/Trim Galore → STAR → counts → seq2mat → matsrun/rMATS → qctb

PDX
#

Graft and host are two roles, so PDX is named by declaring both rather than by naming two species:

otter create \
  --output my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode RRBS \
  --reference-root "$OTTER_REFERENCE_ROOT" \
  --reference-graft hg38@GRCh38.p14 \
  --reference-host mm10@GRCm38.p6

Both roles are required together; supplying only one is refused. The same pattern applies to --mode RNASEQ for RNA-PDX. Declaring the roles is what selects the PDX scenario — there is no separate switch to set.

The project records the roles rather than a single primary:

references:
  species:
    - role: graft
      selection: hg38@GRCh38.p14
    - role: host
      selection: mm10@GRCm38.p6

The PDX path adds:

dual-reference evidence → xenofilx → pairbam/bamdriver → downstream analysis

There are no species flags: the graft and host species come from the selected releases’ own organism metadata. A create that names no reference role fails with scenario "rrbs" requires --reference-primary as id@release.

Component mapping
#

StageMain component
Raw FASTQ QCfastqcx
Graft/host classificationxenofilx
Paired BAM filteringpairbam, bamdriver
Expression matrixseq2mat
Splicingmatsrun, external rMATS
Methylation/HDF5methx, external Methrix/R
QC aggregationqctb

Back to the manual · Next: advanced usage