Skip to content

MinKNOW configuration

What this page covers

Configure MinKNOW so it streams aligned BAMs that ROBIN can consume: basecalling (with methylation if required), same reference as ROBIN, read-count–based BAM rollover, and clear sample IDs.
Then start ROBIN on the folder MinKNOW writes BAMs into — Quickstart.


Optional: programmatic MinKNOW integration

ROBIN can connect to MinKNOW over the API to show live sequencer status and auto-watch BAM output directories. This requires the optional Python client:

pip install 'robin[minknow]'

The minknow_api package minor version must match MinKNOW Core on your instrument (check Host Settings → About). Examples:

MinKNOW Core Install
6.8.x pip install 'minknow_api>=6.8.0,<6.9.0'
6.10.x pip install 'minknow_api>=6.10.0,<6.11.0'

CLI: robin minknow status --host <sequencer>. GUI: Sequencer (MinKNOW) card on the workflow and live-data pages. See MinKNOW integration plan for auth, auto-watch, and env vars (MINKNOW_HOST, MINKNOW_AUTO_WATCH, etc.).


What ROBIN needs

Area Requirement
Basecalling Real-time; enable 5mC / 5hmC modified-base calling in CpG contexts only where your ROBIN build needs methylation. Do not use all-context calling.
Alignment Same reference you pass to robin workflow --reference.
BAM output Read-count rollover — not time-only hourly chunks. Keep each file under the supported read count; ~20k–50k reads per file is a common range.
Sample ID Unique per library; match generated IDs if you use the Sample ID helper.

Basecalling

Use high-accuracy (HAC) basecalling with 5mC / 5hmC modified-base calling in CpG contexts only where ROBIN requires methylation. Do not select an all-context 5mC / 5hmC model. Do not disable CpG methylation calling for off-target reads if your pipeline uses those signals.

Example config name (verify against your MinKNOW / kit release):

  • dna_r10.4.1_e8.2_400bps_5khz_modbases_5hmc_5mc_cg_hac_prom.cfg

Adaptive sampling

ROBIN supports two adaptive sampling backends, selected in [minknow.preset]:

Backend TOML Behaviour
MinKNOW native (default) adaptive_sampling_backend = "minknow" + read_until_filter Configures Read Until when starting the protocol
readfish adaptive_sampling_backend = "readfish" + read_until_filter Starts MinKNOW without native Read Until; launches readfish targets after protocol start
Off adaptive_sampling_backend = "none" No adaptive sampling

For readfish, add a [readfish] table (see examples/minknow.readfish.example.toml). Install with pip install 'robin[readfish]'. readfish needs Dorado server access and panel/reference paths on the sequencer or GPU host.

When readfish is started via robin minknow start, ROBIN registers the sample for live target updates. Each time a new master_NNN.bed is generated (CNV/fusion/master-bed pipeline), ROBIN writes {readfish_toml}_live with the updated targets path; readfish reloads this automatically during the run. Disable with live_updates_enabled = false under [readfish]. Live updates during analysis are also gated on CNV resolution: by default they apply only when sample bin_width is strictly below 1 Mb (live_toml_max_bin_width_bp under [readfish]).

If you use adaptive sampling (either backend):

  • Use the BED for your ROBIN / panel build (e.g. panel BED from resources — confirm path for your install).
  • Use the same reference as ROBIN and MinKNOW alignment.
  • Mode is typically enrich per your assay design (read_until_filter = "enrich").

Simulated playback (full-stack testing)

For end-to-end testing without a live flow cell, use MinKNOW simulated playback with a bulk FAST5 file.

  1. Add a simulated device (once per MinKNOW install):
python -m minknow_api.examples.manage_simulated_devices --add MS00000

Or use MinKNOW’s add_simulated_minion script from the MinKNOW install bin/ directory.

  1. Download or copy a bulk FAST5 onto the MinKNOW host (often 20–35 GB). Public examples are linked from Readfish getting started.

  2. Set in workflow / preset TOML ([minknow.preset]) — see examples/workflow.simulation.toml for a full combined workflow + MinKNOW simulation file:

simulation_bulk_file = "/full/path/on/minknow/host/recording.fast5"

Aliases: simulation_path, simulation. CLI override: --simulation-bulk-file.

  1. Start ROBIN workflow with auto-watch, then start the run from View Samples or:
robin minknow start --preset my_settings.toml \
  --position MS00000 --sample-id YOUR_SAMPLE_ID

Use the simulated position name from step 1. Shorten experiment_duration_hours for quick tests.

The bulk file path must exist on the MinKNOW host. When ROBIN and MinKNOW run on the same machine, --check-paths can verify it locally.


Alignment

Produce aligned BAMs against the same FASTA files as robin workflow --reference.


BAM output

  • Prefer read-count rollover, not time-only chunks.
  • Keep each BAM within the supported read limit (see README).
  • You may disable POD5 and FASTQ if only BAM is needed.

Sample and experiment IDs

  • Sample ID — unique per library; ROBIN uses it for output folders and tracking.
  • Sample ID generator — if you use ROBIN’s MD5-based ID, enter that value as the MinKNOW sample ID so outputs line up automatically.
  • Experiment ID — optional grouping of runs.
  • Run duration — set per your clinical or research protocol (e.g. 24 h for many CNS assays).

Suggested workflow

  1. Apply the settings above in MinKNOW.
  2. Start the run.
  3. Start robin workflow … pointing at the directory MinKNOW writes BAMs into.
  4. Monitor in the CLI / NiceGUI (Using ROBIN).

Troubleshooting

Symptom What to check
minknow_api errors Install robin[minknow] and a minknow_api version whose minor version matches MinKNOW Core (see Optional: programmatic MinKNOW integration above).
Huge BAMs / missed files Reduce reads per file; avoid time-only rollover.
Reference mismatch Alignment reference must match --reference.

Next steps