Skip to content

Respect the omero channels active flag and don't render it when false #137

@lanesawyer

Description

@lanesawyer

Describe the bug
There is an active flag in the omero channels metadata that indicates whether it should be shown by default. We currently assume all channels will be shown, and that assumption no longer holds true for all datasets that we are interested in showing.

To Reproduce
Steps to reproduce the behavior:

  1. Render https://d3hik2dwvr9wk1.cloudfront.net/A549/organelle_box_crop_v1.zarr/ACTB/MeOH/003002 (depends on bugs OME-Zarr Example viewer crashes if axis name is upper case #134 and OME-Zarr viewer doesn't work with hex code colors that don't start with # #135 being fixed to see)
  2. See that it doesn't match the rendering of the OME-Zarr viewer found here: https://organelle-box-portal-git-main-czbiohub.vercel.app/gene/2025_03_31_A549_ACTB?condition=MeOH
  3. Turn on the Phase3D channel in the app linked above
  4. See that it now looks like our Example app's default display

Expected behavior
Expected to not render channels that the metadata disables by default

Screenshots
Looks like this:
Image

Should look like this:
Image

Additional context
We'll want to add ways to toggle those channels on and off in a future update as well, but we should at least start with respecting the defaults

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions