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

Custom groups #112

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

Custom groups #112

wants to merge 31 commits into from

Conversation

AnniekStok
Copy link
Collaborator

No description provided.

@AnniekStok AnniekStok marked this pull request as draft November 25, 2024 16:15
@AnniekStok
Copy link
Collaborator Author

  • Implements a 'sync button' for syncing the tree widget plot with the nodes in the xy field of view of the napari layer points layer.
  • Implements a groups/collections widget for assigning nodes/tracks/lineages to custom groups
  • Implements a (still very basic) filter widget with rules that can be stacked, to filter based on node attributes. Recolors the node boundaries of nodes that match all criteria. Filtered nodes can be assigned to a new group.

To Do:
Nicer filter tools: a histogram with sliders for numerical attributes, and some sort of multiselect menu for categorical attributes.

… track_df (now on tracks_viewer) instead of graph for filtering
…typing) or when the user adjusted the region with the mouse
…art of a group or that are selected using a fill. Since the colormap is still based on trackIDs, this does not yet distinguish between individual nodes and tracks: all nodes of the same track are shown as filled if one of them is selected or part of the active group

self._update_buttons_and_node_count()

def add_nodes(self, nodes: list[Any] | None = None) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Call this function in the other functions (add_tracks, add_lineage) to avoid code duplication and make it easier to maintain and change

from PyQt5.QtCore import QObject


class Collection(QObject):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure why we need this instead of just having a normal list. Perhaps having it be a QObject is necessary?

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.

2 participants