GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zerotonin/RigConductor: One wizard from 'press record' to results on USB: Motif rig recording, arena cutting, SLEAP pose tracking on an HPC cluster, behaviour scoring and export.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
deploy/ddb-link
deploy/ddb-link
 
 
docs
docs
 
 
scripts
scripts
 
 
src/rigconductor
src/rigconductor
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

rigconductor

Tests Lint Docs Release Python License: MIT Ruff GUI: PyQt6 Pose: SLEAP 1.6 Uses ThermoKourt Manual

One wizard from "press record" to "results on the USB disk", for a loopbio Motif rig. Two organism profiles:

Profile Animals Backend
drosophila_triad 10 circular arenas, 2 males + decapitated female ThermoKourt (arena finder, SLEAP on the cluster, rules/SimBA scoring, SQLite + DrosoDB copy)
tadpole_24well 24-well plate of Xenopus tadpoles tadpose (well split, SLEAP/DLC tracking, assignment to the canonical prototypes)

Stages, each idempotent and resumable: record → cut → register → upload → submit → poll → fetch → score → export.

Install (rig PC)

conda activate heatagg                      # python ≥3.10, PyQt6, thermokourt installed
pip install -e ".[gui,dev]"
rigconductor init-config                    # writes ~/.config/rigconductor/rig.yaml — edit it
rigconductor doctor                         # Motif, camera, disk, cluster, DrosoDB, registry
rigconductor models --refresh               # pull the model registry from the cluster
rigconductor gui

Motif is reached through its REST API on the rig PC (recnode-apikey supplies the key). The cluster is reached by key-based SSH (ssh <alias> must work without a password); off campus that needs the VPN first.

Command line

rigconductor doctor [--profile P] [--no-ssh]
rigconductor motif status | record TITLE SECONDS | stop
rigconductor models [--profile P] [--refresh]
rigconductor disks
rigconductor run SESSION.json [--from STAGE] [--to STAGE] [--disk /dev/sdX1]
rigconductor status SESSION_ID
rigconductor sessions

SESSION.json is what the wizard writes (see rigconductor.session.ConductorSpec). Give recording_dir to analyse an existing recording instead of recording.

Model registry

One YAML per organism on the cluster (path in rig.yaml), cached locally:

- id: flies13_lab_v1
  organism: drosophila
  kind: sleap-topdown
  run: flies13_lab_v1        # models/<run>.centroid + .centered_instance
  env: sleap
  trained: 2026-11-20
  validation: {mAP: 0.82, frames: 150}

The chosen model id is stamped into the results (ThermoKourt annotators, tadpose run metadata).

Export bundle

<disk>/<profile>/<session_id>/ with the database export (optionally blinded: no genotypes, no vial codes), events.csv, window_summary.csv, the arena overlay, session.json and MANIFEST.sha256; every file is re-read and checked before the disk is unmounted.

Development

ruff check . && ruff format --check . && pytest -q

Tests run without Motif, a cluster or a GUI (FakeMotif, a fake profile).

About

One wizard from 'press record' to results on USB: Motif rig recording, arena cutting, SLEAP pose tracking on an HPC cluster, behaviour scoring and export.

zerotonin.github.io/RigConductor/

Topics

aggressionanimal-behaviourdrosophilahpclaboratory-automationopen-sciencepose-estimationpyqt6pythonreproducible-researchsleapslurmvideo-tracking

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.