Skip to content

x1555 client - [PR] Atera Run - #1303

Merged
khelwood merged 57 commits into
develfrom
x1555-atera-run
Nov 17, 2026
Merged

khelwood merged 57 commits into
develfrom
x1555-atera-run

Conversation

@yoldas

@yoldas yoldas commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Story: #1302

Changes proposed in this pull request

Adds a new Atera Run page at /lab/atera_run, under Lab Work > Atera. It is modelled on Xenium Analyser and records the run with core's recordAnalyser (core PR sanger/stan-core#700, x1555).

  • Menu: a new Atera group in Lab Work, after the Xenium group, with Atera Run in it (desktop and mobile).
  • Scanning: up to 4 slides. Each needs Probe hybridisation Atera recorded; while a slide without it is scanned, Save stays disabled and the page names the slide to remove. The page warns when a run has 1 or 3 slides, because the lab runs 2 or 4.
  • Run details: time, equipment, run worktype, SGP number, run name (1 to 32 letters, digits, -, _ or spaces) and repeat run.
  • Each slide: SGP number, Cassette Position 1 to 4 (required, and different for each slide in the run), regions and the region definer. Slides are drawn the opposite way round to Xenium, with A1 and the barcode at the top.
  • Region names (as Katy asked on the issue): the Atera only accepts letters and numbers. [minor change asked again: https://github.com/x1555 client—As TS (Katy) I want to record a new operation called Atera Run, to record the machine setup information for Atera runs #1302#issuecomment-6819563179]
    • Default names are Region1<barcode>, Region2<barcode> and so on, in slot order, with anything but letters and numbers left out of the barcode (STAN-0611 gives Region1STAN0611).
    • Typed names must be letters and numbers only.
    • The region barcode pop-up only shows for a name the Atera accepts.
    • One rule, ateraRegionNamePattern in RegionDefiner.tsx, drives all three, so it is easy to relax if the Atera starts accepting - and _.
  • Shared with Xenium Analyser: the parts both pages use are in components/xeniumAnalyser/. Each page passes its own slide layout and region naming (slideLayout, renameRegions). Xenium's layout and region names are unchanged. Xenium changes in these ways:
    • Fix: it showed the wrong labware's details when labware without probe hybridisation was scanned first.
    • Fix: it opened one region definer modal per labware.
    • Region name errors now show when you leave the field. They never showed before, because the regions table's own blur handler replaced Formik's; Save was just disabled with no message.
    • A region name with a space at the start or end is now rejected on the page ("Region of interest should not start or end with a space"). Core already rejected it on save.
    • No region barcode pop-up for a name with a space at either end. Before, it showed the trimmed name.
  • sdk.ts: regenerated from core PR add Xenium kit costings to the probe hybridisation xenium operation #700 (x1555), which adds the cassette position as index. It also has AnalyserScanData.workNumberAteraStudyIds, which core doesn't have yet. The client doesn't query it, so this works with core as it is.

Testing

Still to do

Merge order

After client PRs #1286 (x1552) and #1301 (x1554), which also change the Lab Work menu.

Deployment

Atera Run needs this data in the database before it can be used. Core PR sanger/stan-core#700 (x1555) doesn't add it. The Config page can only add to comment and equipment categories that already have an entry, so the first entry in each new category has to be added with SQL:

  • Operation type Atera run, in place
  • Comments in category Atera run work type: Atera WTA 4 slides, Atera WTA 2 slides, Atera Select 2 slides, Atera Select 4 slides
  • At least one Atera machine in equipment category atera, named by the lab. More machines can then be added on the Config page.

It also uses the operation type Probe hybridisation Atera from x1552, and the existing misc comment repeat that Xenium Analyser already uses.

References

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

…eRegions out of the Xenium Analyser page so Atera Run can share them
yoldas added 28 commits October 28, 2026 04:16
… panel, with Xenium passing in its cassette position
…bware without probe hybridisation was scanned first
…re makes the cassette position optional and adds Atera study ids to the scan data
… function that takes the probe hybridisation operation to check
…bridisation Atera and showing an Atera summary table
…y table and the 4 labware limit on Atera Run
…regions, the region definer and the region barcode
…, pasting instead of typing and splitting the slowest test
…Run slide, different for each slide in the run
@yoldas
yoldas marked this pull request as ready for review November 12, 2026 01:29
@yoldas
yoldas requested review from khelwood and sabrine33 November 12, 2026 10:29

@sabrine33 sabrine33 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! just few minor comments . Thanks

Comment thread src/pages/AteraRun.tsx Resolved
Comment thread src/pages/AteraRun.tsx Resolved
Comment thread cypress/e2e/pages/ateraRun.cy.ts Resolved
…ame, with letters and numbers only, as on Xenium Analyser
…ernal name, and grouped sections Region1<barcode>
…sitions and region name pattern, rename to reIndexAndRenameXeniumRegions, and drop an unneeded SGP number trim
…es, and on Atera Run when the run name changes
…hows the validation message, our check prevents a bad region barcode
…ge as x1552, so removing a slide can't save the run
… tests, so they don't time out on a busy CI runner
@yoldas
yoldas requested a review from sabrine33 November 13, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x1555 client—As TS (Katy) I want to record a new operation called Atera Run, to record the machine setup information for Atera runs

3 participants