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

Color by attribute #148

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

Color by attribute #148

wants to merge 19 commits into from

Conversation

TeunHuijben
Copy link
Collaborator

@TeunHuijben TeunHuijben commented Nov 6, 2024

I closed #147, and started a new one on this topic:

This PR will implement the option to color the cells based on some attribute. The attribute could be any column added to the tracks.csv, or calculated features from the coordinates (think of velocity, direction, etc.)

Implemented:

  • dropdown window
  • coloring based on coordinates (x-position for example)

Todo's:

  • embed extra columns from tracks.csv into Zarr
  • update dropdown window options based on fields in .zattrs
  • load extra Zarr fields when attributes are chosen in the dropdown
  • use a proper colormap
  • use the CZI-SDS inputDropDown (not mui/material)
  • add legend/colormap indicator
  • let the conversion script detect categorical/continuous features
  • add colormaps and move them to a general location (together with trackMaterial)
  • config option to choose colormaps
  • add toggle to enable/disable coloring cell by attribute
  • config option to deactivate default attributes
  • config option to deactivate intracktive features (like coloring by attribute, etc.)
  • make test for conversion script with attributes
  • colorBy state saved when copying URL
  • give convert the option to add specific columns, now it is all or nothing

Fixes needed:

  • inputText for dataURL no longer turns red when URL is false
  • bug (?): selected cells are colored purple. When scrolling very fast, the purple colors appear randomly throughout the embryo (this was already a problem before...)

Example of coloring based on z-coordinate:

Screenshot from 2024-11-21 16-41-35

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
intracktive ✅ Ready (Inspect) Visit Preview Nov 22, 2024 11:17pm

@TeunHuijben TeunHuijben added the enhancement New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant