From f299f2e49f07779d89e57964788468d042bb5634 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Thu, 19 May 2022 09:39:38 -0400 Subject: [PATCH] ENH: Classify vNav setter images as Navigators --- classification_from_label.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classification_from_label.py b/classification_from_label.py index a875097..b341d6c 100644 --- a/classification_from_label.py +++ b/classification_from_label.py @@ -309,6 +309,12 @@ def is_megre(label): ] return regex_search_label(regexes, label) +# Volumetric navigator +def is_vnav(label): + regexes = [ + re.compile('_vnav_setter', re.IGNORECASE) + ] + return regex_search_label(regexes, label) # Utility: Check a list of regexes for truthyness @@ -346,6 +352,8 @@ def infer_classification(label): elif is_functional(label): classification['Intent'] = ['Functional'] classification['Measurement'] = ['T2*'] + elif is_vnav(label): + classification['Features'] = ['3D', 'EPI', 'Navigator'] elif is_anatomy_t2(label): classification['Intent'] = ['Structural'] classification['Measurement'] = ['T2']