-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from AICONSlab/dev
Release 2.4.0
- Loading branch information
Showing
28 changed files
with
3,247 additions
and
171 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ACE GUI | ||
|
||
## Add tab | ||
|
||
- Create `miracl_workflow_ace_gui_clusterwise_tab.py` | ||
- Import from `QWidget` and `QFormLayout` from `PyQt5.QtWidgets`, `WidgetUtils` from `miracl_workflow_ace_gui_widgets_utils` and `miracl_workflow_ace_parser` from `miracl.flow` | ||
- Create `ClusterwiseTab` class including the clusterwise layout and the help dictionary created from the parser | ||
- Add the clusterwise widgets | ||
- Import into `miracl_workflow_ace_gui_clusterwise_tab` into `miracl_workflow_ace_gui_tab_manager.py` | ||
- Create flag associations with `miracl_workflow_ace_gui_flag_creator.py` | ||
- Add clusterwise flags to `miracl_workflow_ace_gui_controller.py` |
112 changes: 112 additions & 0 deletions
112
miracl/flow/ace_gui/miracl_workflow_ace_gui_clarity_registration_tab.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
""" | ||
CLARITY Registration | ||
Description: | ||
View for CLARITY registration. | ||
Copyright: | ||
(c) 2024 AICONs Lab. All rights reserved. | ||
Author: | ||
Jonas Osmann | ||
j.osmann@mail.utoronto.ca | ||
License: | ||
GPL-3.0 | ||
""" | ||
|
||
from PyQt5.QtWidgets import ( | ||
QWidget, | ||
QFormLayout, | ||
) | ||
|
||
from PyQt5.QtCore import Qt | ||
from .miracl_workflow_ace_gui_widget_utils import WidgetUtils as wu | ||
from miracl.flow import miracl_workflow_ace_parser | ||
|
||
|
||
class ClarityRegistrationTab(QWidget): | ||
def __init__(self): | ||
super().__init__() | ||
clarity_registration_layout = QFormLayout() | ||
self.setLayout(clarity_registration_layout) | ||
args_parser = miracl_workflow_ace_parser.ACEWorkflowParser() | ||
help_dict = wu.extract_help_texts(args_parser) | ||
|
||
self.reg_hemi_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Labels hemisphere", | ||
help_dict["rca_hemi"], | ||
["combined", "split"], | ||
"combined", | ||
) | ||
|
||
( | ||
self.reg_allen_lbl_warp_label_input, | ||
self.reg_allen_lbl_warp_path_input, | ||
self.reg_allen_lbl_warp_button_input, | ||
) = wu.create_path_input_widget( | ||
self, | ||
clarity_registration_layout, | ||
"Allen labels to warp:", | ||
help_dict["rca_allen_label"], | ||
"Select file", | ||
select_files=True, | ||
file_filter="All Files (*)", | ||
) | ||
|
||
( | ||
self.reg_cust_allen_atlas_label_input, | ||
self.reg_cust_allen_atlas_path_input, | ||
self.reg_cust_allen_atlas_button_input, | ||
) = wu.create_path_input_widget( | ||
self, | ||
clarity_registration_layout, | ||
"Custom Allen atlas:", | ||
help_dict["rca_allen_atlas"], | ||
"Select file", | ||
select_files=True, | ||
file_filter="All Files (*)", | ||
) | ||
|
||
self.reg_side_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Side:", | ||
help_dict["rca_side"], | ||
["right hemisphere", "left hemisphere"], | ||
"right hemisphere", | ||
) | ||
|
||
self.reg_mosaic_figure_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Create mosaic figure:", | ||
help_dict["rca_no_mosaic_fig"], | ||
["yes", "no"], | ||
"yes", | ||
) | ||
|
||
self.reg_olfactory_bulb_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Olfactory bulb incl.:", | ||
help_dict["rca_olfactory_bulb"], | ||
["not included", "included"], | ||
"not included", | ||
) | ||
|
||
self.reg_util_int_correction_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Utilfn intensity correction:", | ||
help_dict["rca_skip_cor"], | ||
["run", "skip"], | ||
"run", | ||
) | ||
|
||
self.reg_warp_to_allen_input = wu.create_multiple_choice( | ||
clarity_registration_layout, | ||
"Warp CLARITY to Allen:", | ||
help_dict["rca_warp"], | ||
["yes", "no"], | ||
"no", | ||
) |
Oops, something went wrong.