forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Configuration] Adding configuration fields needed for imaging defaci…
…ng tool (aces#4232) This adds to the imaging_pipeline section of the Config module 2 fields needed for the imaging defacing tool: - reference_scan_type_for_defacing: the reference image that will be used for registration (typically the t1w modality) - modalities_to_deface: multi-line options to list all 3D modalities that need to be defaced (for example t1w, flair, pd, t2w...) This goes with the LORIS-MRI PR: aces/Loris-MRI#366
- Loading branch information
Showing
2 changed files
with
61 additions
and
1 deletion.
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
54 changes: 54 additions & 0 deletions
54
SQL/New_patches/2018-11-30_add_modality_to_deface_configuration.sql
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,54 @@ | ||
INSERT INTO ConfigSettings | ||
( | ||
Name, | ||
Description, | ||
Visible, | ||
AllowMultiple, | ||
DataType, | ||
Parent, | ||
Label, | ||
OrderNumber | ||
) | ||
SELECT | ||
'reference_scan_type_for_defacing', | ||
'Scan type to use as a reference for registration when defacing anatomical images (typically a T1W image)', | ||
1, | ||
0, | ||
'scan_type', | ||
ID, | ||
'Scan type to use as a reference for defacing (typically a T1W image)', | ||
22 | ||
FROM | ||
ConfigSettings | ||
WHERE | ||
Name="imaging_pipeline"; | ||
INSERT INTO ConfigSettings | ||
( | ||
Name, | ||
Description, | ||
Visible, | ||
AllowMultiple, | ||
DataType, | ||
Parent, | ||
Label, | ||
OrderNumber | ||
) | ||
SELECT | ||
'modalities_to_deface', | ||
'Modalities for which defacing should be run and defaced image inserted in the database', | ||
1, | ||
1, | ||
'scan_type', | ||
ID, | ||
'Modalities on which to run the defacing pipeline', | ||
23 | ||
FROM | ||
ConfigSettings | ||
WHERE | ||
Name="imaging_pipeline"; | ||
|
||
INSERT INTO Config (ConfigID, Value) SELECT ID, 't1' FROM ConfigSettings WHERE Name="reference_scan_type_for_defacing"; | ||
INSERT INTO Config (ConfigID, Value) SELECT ID, 'flair' FROM ConfigSettings WHERE Name="modalities_to_deface"; | ||
INSERT INTO Config (ConfigID, Value) SELECT ID, 't1' FROM ConfigSettings WHERE Name="modalities_to_deface"; | ||
INSERT INTO Config (ConfigID, Value) SELECT ID, 't2' FROM ConfigSettings WHERE Name="modalities_to_deface"; | ||
INSERT INTO Config (ConfigID, Value) SELECT ID, 'pd' FROM ConfigSettings WHERE Name="modalities_to_deface"; |