fsl.scripts.imglob¶
This module defines the imglob application, which identifies unique
NIFTI/ANALYZE image files.
-
fsl.scripts.imglob.imglob(paths, output=None)[source]¶ Given a list of file names, identifies and returns the unique NIFTI/ANALYZE image files that exist.
- Parameters
paths – Sequence of paths/prefixes to glob.
output –
One of
'prefix'(the default),'all', or'primary':'prefix': Returns the files without extensions.'all': Returns all files that match (e.g. both.imgand.hdrfiles will be returned).
'primary': Returns only the primary file of eachmatching file group, e.g. only the
.hdrfile would be returned from an.img/.hdrpair.
- Returns
A sequence of resolved path names, in the form specified by the
outputparameter.