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

A tool to configure a sub-selection of feature analyzers. #261

Merged
merged 8 commits into from
May 15, 2023

Conversation

tinevez
Copy link
Member

@tinevez tinevez commented May 10, 2023

There is now a new 'plugin' that launches a configuration panel for the TrackMate feature analyzers.

It can be launched with the menu item: Edit > Options > Configure TrackMate feature analyzers.... and show this dialog:

Screenshot 2023-05-10 at 17 05 43

It allows selecting or deselecting feature analyzers.
Upon pressing the Save to user defaults button, a JSON file is created:

❯ pwd
/Users/tinevez/.trackmate
❯ cat featureselection.json
{
  "allAnalyzers": {
    "spots": {
      "Manual spot color": true,
      "Spot 2D shape descriptors": true,
      "Spot 3D shape descriptors": true,
      "Spot contrast and SNR": false,
      "Spot fit 2D ellipse": true,
      "Spot fit 3D ellipsoid": true,
      "Spot intensity": true
    },
    "edges": {
      "Directional change": true,
      "Edge location": true,
      "Edge speed": true,
      "Edge target": true,
      "Manual edge color": true
    },
    "tracks": {
      "Branching analyzer": true,
      "Track duration": true,
      "Track index": true,
      "Track location": true,
      "Track motility analysis": true,
      "Track quality": true,
      "Track speed": true
    }
  }
}%                         

This selection will be used next time the user launches the TrackMate GUI.
This allows skipping the computation of analyzers that the users do not need. This will become useful in particular for 3D analysis with segmentation, where iterating through all the pixels of all meshes might be very long.

However it brings a risk: because TrackMate does not manage dependencies, the user might remove an analyzer that is needed by another one (example: spot SNR requires spot intensity). This risk is not mitigated yet.

tinevez and others added 8 commits May 9, 2023 22:33
Later we will make the GUI sessions use the saved selection, so that
users can choose what they want to compute or not.
Might be handy for some features that are long to compute.
Contrast and SNR I am looking at you. And actually you are deselected
by default now.
Because morphology analyzers (2D or 3D) are added only after detection
step (they are added at this moment, because we need to know whether
the detector can return the spot shape).
@tinevez tinevez changed the base branch from v8 to spot-interface May 11, 2023 11:53
@tinevez tinevez changed the base branch from spot-interface to v8 May 15, 2023 15:33
@tinevez tinevez merged commit 8789eb8 into v8 May 15, 2023
@tinevez tinevez deleted the analyzer-selector branch May 15, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant