fsl.wrappers.fslio

This module provides wrapper functions for the FSL im* scripts.

These scripts are actually implemented within fslpy, so the wrapper functions invoke the relevant code directly, rather than invoking a separate process.

fsl.wrappers.fslio.imcp(*paths)[source]

Wrapper for the imcp script.

fsl.wrappers.fslio.imglob(*images, extension=False, extensions=False)[source]

Wrapper for the imglob script. Returns the result in a list.

fsl.wrappers.fslio.imln(target, linkbase)[source]

Wrapper for the imln script.

fsl.wrappers.fslio.immv(*paths)[source]

Wrapper for the immv script.

fsl.wrappers.fslio.imrm(*paths)[source]

Wrapper for the imrm script.

fsl.wrappers.fslio.imtest(path)[source]

Wrapper for the imcp script. Returns True if the given path exists, False otherwise.

fsl.wrappers.fslio.remove_ext(*paths)[source]

Wrapper for the remove_ext script.

Returns the specified paths with extensions removed. If one path is provided, a string is returned. Otherwise (multiple paths provided), a list is returned.

fsl.wrappers.fslio.tmpnam(path=None)[source]

Wrapper for the tmpnam script.

fsl.wrappers.fslio.fslchfiletype(fmt, oldfile, newfile=None)[source]

Wrapper for the fslchfiletype script.