Skip to content

Filter project entries by metadata like in the "Select project images" dialog#2058

Closed
zindy wants to merge 3 commits intoqupath:mainfrom
zindy:project-browser-metadata-filter
Closed

Filter project entries by metadata like in the "Select project images" dialog#2058
zindy wants to merge 3 commits intoqupath:mainfrom
zindy:project-browser-metadata-filter

Conversation

@zindy
Copy link
Contributor

@zindy zindy commented Jan 3, 2026

Hello,

This PR adds to the "Search entry in project" search box the metadata filtering capability previously added in #1143, and explained in this forum post.

It can be combined with the existing "Sort by" capability to narrow down the displayed entries to a useful set.

An example project and test image set (2MB zip with images cropped from the https://bbbc.broadinstitute.org/BBBC017/ dataset) is provided here: https://github.com/zindy/qupath-extension-fireparser/blob/main/sample_data/fireparser_test_data.zip

You could for example, sort by Treatment:

image

And then use the following string in "Search entry in project": .tif|well=a01|plate=001. This will display the following project tree:

image

One thing I wasn't expecting with #1143 is that the metadata keys and values must be input as lowercase.

Practicality: I fully understand ProjectBrowser.java is a huge file, and maybe adding random features to it may not be the best idea in the world. I'll let you be the judge!

Also for full disclosure, I used Gemini 3 to help fix some bugs along the way.

Kind regards,
Egor

@petebankhead
Copy link
Member

petebankhead commented Jan 19, 2026

Thanks for this! I'll close the PR as I've tried to implement the main idea in #2071 while also cleaning up a bit of the existing code (and fixing the lowercase issue).

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