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

Split channel timepoints slice #107

Closed
Tom-TBT opened this issue Jul 7, 2023 · 2 comments · Fixed by #108
Closed

Split channel timepoints slice #107

Tom-TBT opened this issue Jul 7, 2023 · 2 comments · Fixed by #108
Labels
enhancement New feature or request

Comments

@Tom-TBT
Copy link

Tom-TBT commented Jul 7, 2023

Hello,
I'll open an issue here also to cross reference my post on image.sc:
https://forum.image.sc/t/raw2ometiff-channels-timepoints-slice-output/83205

I would like to be able to split my hyperstacks into individual channels or timepoints or Z-slice. One reason for this is to input multiple channels of Z-stacks to Cellprofiler.

In the first post, I propose to be able to choose the name output, such as Filename_t{timepoint}_p{plane}_ch{channel}, but this is not needed.

Splitting the t/z/c would also mean that the files are also split into individual series (with the --split flag implemented in #80)

@melissalinkert
Copy link
Member

Thanks, @Tom-TBT. I'd very much prefer not to reimplement the full pattern logic noted in https://forum.image.sc/t/raw2ometiff-channels-timepoints-slice-output/83205/6, but using a fixed file name pattern should be relatively straightforward.

Would an option such as --split-planes that always writes a single plane and its subresolutions to something like prefix_s<series index>_z<Z index>_c<channel index>_t<timepoint index>.ome.tif be sufficient? We wouldn't be able to split a plane across multiple files, or split the subresolutions for a plane across multiple files, and still have the output remain a valid pyramid OME-TIFF dataset. Each file would need to contain the full pyramid for one whole plane.

Are there any other cases we need to consider for CellProfiler compatibility (/cc @DavidStirling)?

@Tom-TBT
Copy link
Author

Tom-TBT commented Jul 12, 2023

Hello Melissa, thank you for your answer.
Do I understand it right, the --split-planes option would split each Z, C, T?
This is a satisfying solution for us.
Splitting a plane across multiple planes isn't necessary, and neither splitting the subresolutions across multiple files.

Does implementing the choice of "which dimension to split" fall in the "not as easy as it sounds" category? (and by transitivity makes me fall in the "annoying user" category)
I would appreciate being able to split only the channels (required for CellProfiler), to shorten the list of output files. But that's the only reason I have for it.
The --split-planes option could be extended to choose which dimensions to split (something like --split-planes zt, default --split-planes being the same as --split-planes zct)

Thanks again!

@melissalinkert melissalinkert added the enhancement New feature or request label Jul 25, 2023
@melissalinkert melissalinkert moved this from Inbox to raw2ometiff 0.6.0 in Converters Jul 25, 2023
melissalinkert added a commit to melissalinkert/raw2ometiff-1 that referenced this issue Jul 26, 2023
@melissalinkert melissalinkert moved this from raw2ometiff 0.6.0 to Inbox in Converters Nov 27, 2023
@melissalinkert melissalinkert moved this from Inbox to raw2ometiff 0.7.0 in Converters Dec 7, 2023
@github-project-automation github-project-automation bot moved this from raw2ometiff 0.7.0 to Done in Converters Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants