-
Notifications
You must be signed in to change notification settings - Fork 2
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
"Group By" to display multiple values as a hierarchy #434
Comments
This is a really good point and potentially an example of a feature we have been considering adding which is to display those top level folder elements somehow alongside the nested folders. It sounds like from my perspective that would solve your request except that you mention "This would actually be much more powerful than a regular folder hierarchy as you could pick and choose the folders in any order.". I'm not sure I understand what you mean by picking and choosing the order?
I don't think I have a great suggestion on how to accomplish this at the moment beyond what you have tried which is to create those dummy values. We do have a feature underway right now that will allow you to open all folders at once which would solve the "All the images at the top here are in the data folder but to see them I need to expand 2 other "-" folders." in part. |
Re: "choosing the order"... In my first screenshot above, instead of opening the Or, if I have some images in a directory path like:
and some others in
If I could "choose the order" to browse, I could Group-By
And this works even with the images being at different depths in the hierarchy. |
We didn't want people to think of this as a file system browser, because it's not. We also didn't want to encourage "lazy" annotation naming. But in some cases, a folder hierarchy from the filesystem actually is capturing interesting metadata that people would be entering. We've talked about the possibility of tagging special annotations to be parsed as slash-delimited annotation values.
|
I agree that BFF is definitely NOT a file system browser. For me, the file-system is just the source of "Tags" on each image.
|
Sean will know more about the current plans and correct me if I'm saying anything wrong... My comment about things getting weird is just the idea of mixing in user-defined annotations with the filesystem-derived hierarchy annotations... it's also pretty powerful. I was imagining that under the hood in the code they are all treated the same way, just as annotation names that have values (empty or not) for every file(row). So the implementation doesn't have to care what they mean. Regarding empty values, I was imagining that this would do what you want: |
I tried it with a tiny example csv and got the result that you saw, Will. I wonder if we could make an option to have grouped items that don't have the subgroup annotations still able to appear. So if you have grouped by Folder1/Folder2/Folder3, and you have a file that has F1 and F3 but not F2, the file would not show up. (This would not happen in a directory structure but for arbitrary annotations it can). But if the file has F1 and neither F2 nor F3, it could show up under the Folder1=F1 grouping? |
@toloudis Thanks, yes, I think that would be a nice fix (just so you don't "loose" images that are missing a value for the Group". However, I think for my usage I'll be sticking with the single column of comma-delimited "Tags" (as in my first screenshot above) as then you can find all the images that have E.g. csv:
Hierarchy:
|
I'd like to provide a way for users to browse their zarr images on a local machine, and to see the images in a hierarchy that looks like their existing folder structure.
Work in progress at ome/ome-zarr-py#436
I have added a 'Folder' column to the CSV, that contains the directories that the images were in.
E.g. "path,to,my,data".
I was hoping there might be a way to use the
Group By
feature to browse the folders as a hierarchy?This would actually be much more powerful than a regular folder hierarchy as you could pick and choose the folders in any order.
The current behaviour only gives me a single level of hierarchy - I can't group the images under
data
into groups for the other folders likeidr
,idr0062
,2023
etc.One other approach I tried was to use multiple table columns
Folder1, Folder2, Folder3
which would be fine if all the images existed at the same depth in the hierarchy. But with images that are in the top Folder (Folder1) I need to create dummy "-" values for the other Folders:All the images at the top here are in the
data
folder but to see them I need to expand 2 other "-" folders. Also this restricts the order that I can create my hierarchy.I wonder if there's any other way I might be able to achieve this?
The text was updated successfully, but these errors were encountered: