Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when gating against non-selected channel #93

Open
thejohnhoffer opened this issue Apr 15, 2022 · 1 comment
Open

Issue when gating against non-selected channel #93

thejohnhoffer opened this issue Apr 15, 2022 · 1 comment

Comments

@thejohnhoffer
Copy link
Contributor

Problem

When I try to activate the centroid rendering (OR-mode / pie-chart), I see an error on this line:

CsvGatingOverlay.js:230 Uncaught TypeError: Cannot read properties of undefined (reading 'color')
    at eval (CsvGatingOverlay.js:230:113)
    at Array.forEach (<anonymous>)
    at eval (CsvGatingOverlay.js:224:36)

Here's what I can figure out:

  • There's an object mapping called _this.channel_list.currentChannels.
  • In that mapping, there are no keys that match the gatingChannelIndices[i].index that I have selected

It seems like the simplest fix would be to add the following conditional check:

if (gatingChannelIndices[i].index in  _this.channel_list.currentChannels) {
 /* then draw the arcs */
}

Replication

  • I have loaded the crop-crc01 dataset channel ome-tiff, mask tiff, quantification csv, and cluster csv
  • I have selected one channel (Hoechst0) and one mask (Keratin_570)
  • I click the Centroids (OR-mode) checkbox

Question

However, I'm not sure if there's a logical error. My question would be:
Should _this.channel_list.currentChannels contain all active channels?

I wonder if it is related to this FIXME statement:

Retrieve color (FIXME - need to integrate into viewer manager)
@thejohnhoffer thejohnhoffer changed the title Question regarding FIXME on gating branch Issue when gating against non-selected channel Apr 15, 2022
@thejohnhoffer
Copy link
Contributor Author

Ah, my issue stems from attempting to perform gating on a channel that is not selected.

So I've selected "Keratin" for gating on the right, but I didn't view that channel on the left.

It seems the software assumes that I'll only be gating against visible channels!
That may be a fine assumption, but perhaps an error message would be nice.

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

No branches or pull requests

1 participant