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

Roi_fluo_from_hdf5 Adding Tranpose Parameter #596

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
""
# This is a temporary measure. Generally, Transpose should be set to True.
# However, when Transpose is set to True, the data coordinates may sometimes be reversed.
# Therefore, it may be switched to False on the screen.
transpose: True
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def roi_fluo_from_hdf5(
all_roi = RoiData(
np.nanmax(cell_img.data, axis=0), output_dir=output_dir, file_name="all_roi"
)
fluorescence = FluoData(np.transpose(fluo.data), file_name="fluorescence")

if params["transpose"]:
fluorescence = FluoData(np.transpose(fluo.data), file_name="fluorescence")
else:
fluorescence = FluoData(fluo.data, file_name="fluorescence")

if iscell is None:
return {"all_roi": all_roi, "fluorescence": fluorescence}
Expand Down