↓ Skip to main content

User manual

Otter user manual
#

OTTER: Orchestrated Transcriptomic, Tumor-xenograft (PDX/CDX), and Epigenomic Reporting Workflow

This manual is organized around the first successful run rather than the internal package layout.

Choose a path
#

GoalChapter
Install a release or build from source1. Installation
Prepare FASTQ files and sample metadata2. Data preparation
Create and run your first project3. Quick start
Select RRBS, WGBS, RNA-seq, or PDX behavior4. Analysis modes
Use custom references, SLURM resources, recovery, and canonical snapshots5. Advanced usage
Understand the companion tools6. Component reference
Diagnose common failures7. FAQ
Migrate legacy reference genomes8. Reference migration
Look up every public command family9. CLI reference

The current execution model
#

otter → craftmake → enva → operators → bamdriver

Two executors ship. craftmake is the default for otter build and otter config resolve, and it executes canonical immutable otter.run/v1 snapshots. snakemake is the compatibility executor for existing Snakemake-based workflows; select it with --executor snakemake.

Core command flow
#

The default path authors a canonical v1 project, which is what otter run accepts:

otter init my_project
otter create \
  --output my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode RRBS \
  --jobid demo_rrbs \
  --reference-root /shared/references \
  --reference-primary hg19@GRCh37.p13-gencode-v19
otter config validate --config my_project/project.yaml --schema v1
otter config resolve --project my_project/project.yaml --backend local
otter run --config my_project/runs/<run-id>/run.yaml \
  --executor craftmake --phase step1 --backend local --foreground

otter create writes a resolvable project directly: it locks the declared references into references.lock.yaml, and config resolve writes the immutable run.yaml that otter run consumes. A reference selection is always <id>@<release>, for example hg19@GRCh37.p13-gencode-v19.

otter build chains init, create, validate, and resolve into one command and stops before execution:

otter build \
  --project-root my_project \
  --fastq ./fastq \
  --pdata ./samples.csv \
  --mode RRBS \
  --reference-root /shared/references \
  --reference-primary hg19@GRCh37.p13-gencode-v19 \
  --backend local

It defaults to the craftmake executor; --executor snakemake records the Snakemake compatibility executor in the snapshot instead.

Legacy authoring has been removed. A pre-existing legacy project (created by an earlier release, with config/otter.yaml under userspace/<jobid>/) is not accepted by any executor directly. To run it, migrate into a canonical root and execute the resulting snapshot:

otter init migrated
otter config migrate \
  --input old_project/userspace/demo_rrbs/config/otter.yaml \
  --output migrated/project.yaml \
  --reference-root "$OTTER_REFERENCE_ROOT" \
  --reference-primary hg19@GRCh37.p13-gencode-v19
otter config resolve --project migrated/project.yaml \
  --reference-root "$OTTER_REFERENCE_ROOT" --backend local
otter run --config migrated/runs/<run-id>/run.yaml \
  --executor snakemake --dry-run --foreground

See chapter 8 for the migration contract.

Before you begin
#

  • Linux or macOS for local development; Linux with SLURM is the primary production target.
  • Paired FASTQ files and a matching pdata file for create.
  • A reference registry release for the selected scenario, addressed as <id>@<release> (see reference migration).
  • A site profile when the machine is not the default target; generate one with otter site generate (see advanced usage).
  • otter-snakemake for the Snakemake compatibility path.
  • enva and the managed runtime environments when using the release workflow setup.

Back to documentation hub

1. Installation

This chapter covers release installation, source builds, runtime environments, and a first verification for OTTER (Orchestrated Transcriptomic, Tumor-xenograft (PDX/CDX), and Epigenomic Reporting Workflow). Requirements # Linux or macOS on amd64 (x86-64) or arm64 (AArch64/Apple Silicon). Linux with SLURM remains the primary production target. For source builds: recursive Git submodules, Go 1.26.3 or newer for the full toolchain, and stable Rust/Cargo with native C/CMake tools for the Rust CLIs. The umbrella Go module alone declares Go 1.24. Release installation # The OTTER releases built by the four-platform workflow use these names for the Go installer. The other tools have the same platform suffixes.

2. Data preparation

A successful otter create needs a discoverable FASTQ pair for each sample. The pdata file is optional; when you pass --pdata, its sampleid values must match the FASTQ sample names. FASTQ naming # The default pair suffixes are:

3. Quick start

Otter authors canonical v1 projects, marked on disk by project.lock.yaml. Projects created by earlier releases on the legacy compatibility layout (marked by .otter/assets.manifest.json, with config/otter.yaml under userspace/<jobid>/) are still detected: authoring commands refuse them, and migration converts them into canonical projects.

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. --mode Scenario Reference roles RRBS rrbs, or bs-pdx with graft+host --reference-primary, or --reference-graft + --reference-host WGBS wgbs (no PDX variant) --reference-primary RNASEQ rnaseq, 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.

5. Advanced usage

Custom references # On the canonical track, a reference is not a filesystem path — it is a registry release addressed as <id>@<release>. To use your own genome, publish it to the registry once, then select it by name:

6. Component reference

otter handles workflow orchestration; each component repository below implements one part of the domain computation. craftmake # Native workflow compiler and Local/SLURM executor for immutable otter.run/v1 snapshots. It owns DAG compilation, SQLite state, caching, recovery, cancellation, and reports.

7. FAQ

Why is otter not found? # Check the installation directory and PATH: command -v otter printf '%s\n' "$PATH" A source-built binary may still report compatibility-era xdxtools symbols. Check ./otter --help before deploying it.

8. Reference Genome Migration Guide

This chapter describes the supported compatibility procedure for moving an existing reference tree into the immutable Otter Reference Registry ($OTTER_REFERENCE_ROOT). The source layout is deployment-specific: supply its root explicitly with --legacy-inst, rather than relying on a historical installation path or directory convention.

9. CLI reference

This chapter maps the public command tree to its owning contract. Use otter <command> --help as the exact flag source for the installed release. Project and execution commands # Command Purpose Important boundary otter init <project> Pin workflow assets and schemas into a canonical project Refuses existing canonical or legacy project markers. otter create Pair FASTQs, validate pdata/references, and write project intent Canonical-only; PDX requires both graft and host reference roles. otter build Run init → create → validate → resolve Stops before execution; prints the absolute snapshot path. otter config validate Validate v1, legacy, or auto-detected configuration Legacy validation exists only to support migration. otter config migrate Convert an existing legacy otter.yaml into v1 intent Requires reference release identities and a canonical root. otter config resolve Freeze intent, references, site/backend, and resources into run.yaml The snapshot is immutable and authoritative at run time. otter run Plan or execute one resolved phase through Craftmake or Snakemake Raw project.yaml and legacy otter.yaml are rejected. otter status [project] Summarize a project/run state Read-only. otter task list/status/logs/report/stop Monitor and control background Otter tasks task report exports controller/executor evidence; it is not a scientific comparator. Site and asset commands # otter site list otter site generate --id production --backend slurm \ --partition cpu --account genomics \ --reference-root /shared/otter/references otter site validate production site generate probes machine facts but requires explicit cluster policy.