Filter project entries by metadata like in the "Select project images" dialog#2058
Closed
zindy wants to merge 3 commits intoqupath:mainfrom
Closed
Filter project entries by metadata like in the "Select project images" dialog#2058zindy wants to merge 3 commits intoqupath:mainfrom
zindy wants to merge 3 commits intoqupath:mainfrom
Conversation
Bit of a mix of space indentation and tab indentation.
Member
|
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
And then use the following string in "Search entry in project":
.tif|well=a01|plate=001. This will display the following project tree: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