-
Notifications
You must be signed in to change notification settings - Fork 39
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
Image dimension stacking #495
Image dimension stacking #495
Conversation
Apply Sweep Rules to your PR?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this PR does not fulfill the requirements for the plugin. I have left comments as necessary. Let's discuss during/after a standup meeting.
1. multi-channel `groupBy=c`\ | ||
For example `filePattern=x01_y01_p01_c{c:d+}.ome.tif` | ||
2. multi-zplanes `groupBy=z`\ | ||
For example `filePattern=tubhiswt_C1-z{z:d+}.ome.tif` | ||
3. multi-timepoints `groupBy=t`\ | ||
For example `filePattern=img00001_t{t:d+}_ch0.ome.tif` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add examples for when we have multiple variables and dimensions that are being stacked at once.
[[tool.poetry.source]] | ||
name = "test" | ||
url = "https://test.pypi.org/simple/" | ||
default = false | ||
secondary = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
raise ValueError(msg) | ||
|
||
if preview: | ||
generate_preview(out_dir=out_dir, file_pattern=file_pattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugin should return
after generating the preview.
if group_by == "c": | ||
bw.C = dim_size | ||
if group_by == "t": | ||
bw.T = dim_size | ||
if group_by == "z": | ||
bw.Z = dim_size | ||
bw.ps_z = z_distance(input_files[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check should be for whether c
, z
or t
are variables in the input filepattern, and not whether they are in (or equal to) the group_by
input. Stacking should be done on all axes together.
input_files = [] | ||
|
||
fps = fp.FilePattern(inp_dir, file_pattern) | ||
out_name = fps.output_name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output should be in a per-group basis.
bw=bw, | ||
) | ||
threads.append(thread) | ||
pm.join_threads() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function will block and will not return until all jobs are finished. The following tqdm
progress bar is useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments from the PR with CZI Extraction plugin for this file.
868fa08
to
e9547e2
Compare
* new plugin * refactored code and added pytests * adding plugin json and correcting documentation * fixed documentation * fixed documentation * fixed documentation * fixed documentation * fixed documentation * updating docker base container * added multiple pattern support * added docstring * fix plugin name and test fixture * test cli * fixing multipattern test * fix slow test * fix slow test
This plugin will allows stacking of multidimensions (channel, timepoints, z-planes) and will be replacing functionalities of two existing plugin