Skip to content
Snippets Groups Projects
Commit b9819eba authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Melodic group ICA (*.gica) directories are detected

parent 8dee34b8
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ def isMelodicDir(path): ...@@ -60,7 +60,7 @@ def isMelodicDir(path):
"""Returns ``True`` if the given path looks like it is contained within """Returns ``True`` if the given path looks like it is contained within
a MELODIC directory, ``False`` otherwise. A melodic directory: a MELODIC directory, ``False`` otherwise. A melodic directory:
- Must be named ``*.ica``. - Must be named ``*.ica`` or ``*.gica``.
- Must contain a file called ``melodic_IC.nii.gz``. - Must contain a file called ``melodic_IC.nii.gz``.
- Must contain a file called ``melodic_mix``. - Must contain a file called ``melodic_mix``.
- Must contain a file called ``melodic_FTmix``. - Must contain a file called ``melodic_FTmix``.
...@@ -71,7 +71,9 @@ def isMelodicDir(path): ...@@ -71,7 +71,9 @@ def isMelodicDir(path):
if op.isdir(path): dirname = path if op.isdir(path): dirname = path
else: dirname = op.dirname(path) else: dirname = op.dirname(path)
if not dirname.endswith('.ica'): sufs = ['.ica', '.gica']
if not any([dirname.endswith(suf) for suf in sufs]):
return False return False
# Must contain an image file called melodic_IC # Must contain an image file called melodic_IC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment