Skip to content

Lab widgets

AutoGroupModal

AutoGroupModal is a lab widgets component exported by @morscherlab/mint-sdk for plugin frontends.

Playground

Live preview generated for AutoGroupModal inside this component page.

This preview is compiled into the VitePress docs build from the published SDK package.

Import

ts
import { AutoGroupModal } from "@morscherlab/mint-sdk/components"

Usage Notes

AutoGroupModal is the recommended UI for sample grouping from pasted names, CSV metadata, or experiment design data. It is driven by useAutoGroup() and now surfaces the parsed grouping as both flat groups and a nested preview tree.

Recent grouping behavior:

  • Trailing injection/run numbers such as _085 or _00B are kept as an Injection # / run-order column instead of being silently stripped.
  • Samples are split by token count after sample-type classification, so ragged names do not align unrelated fields into the same column.
  • The preview can render a three-layer hierarchy: sample class, enabled group-by columns, then sample leaves.
  • QC-like classes can be grouped, overlaid, or excluded without losing the experimental group preview.

The applied result includes groups, experimentalGroups, qcGroups, metadata, excludedSamples, and groupTree. Use groupTree with SampleHierarchyTree when you want to render the same hierarchy outside the modal.

For prop-level detail, open the source file.

Back to component library

MINT is open source. Made by the Morscher Lab.