fsl.data.melodicimage¶
This module provides the MelodicImage class, an Image
sub-class which encapsulates data from a MELODIC analysis.
-
class
fsl.data.melodicimage.MelodicImage(path, *args, **kwargs)[source]¶ Bases:
fsl.data.image.ImageThe
MelodicImageclass is anImagewhich encapsulates the results of a FSL MELODIC analysis. AMelodicImagecorresponds to the spatial component map file, generally calledmelodic_IC.nii.gz.The
MelodicImageclass provides a few MELODIC-specific attributes and methods:trThe TR time of the raw data from which this MelodicImagewas generated.getComponentTimeSeriesReturns the time course for the specified (0-indexed) component. getComponentPowerSpectrumReturns the power spectrum for the time course of the specified (0-indexed) component. numComponentsReturns the number of components in this MelodicImage.getMelodicDirReturns the melodic output directory in which this image is contained. getTopLevelAnalysisDirReturns the top level analysis, if the melodic analysis for this MelodicImageis contained within another analysis.getDataFileReturns the file name of the data image from which this MelodicImagewas generated, if possible.The
trtime of theMelodicImagemay not be known when it is created. If it is updated at a later time, theMelodicImagewill notify any listeners which are registerd on the'tr'topic (see theNotifierinterface).-
__init__(path, *args, **kwargs)[source]¶ Create a
MelodicImage.Parameters: path – A path specifying the melodic_ICimage file, or the.icadirectory.All other arguments are passed through to the
Image.__init__()method.
-
tr¶ The TR time of the raw data from which this
MelodicImagewas generated. If it is possible to do so, this is automatically initialised from the data file (see thegetDataFile()method).
-
getComponentTimeSeries(component)[source]¶ Returns the time course for the specified (0-indexed) component.
-
getComponentPowerSpectrum(component)[source]¶ Returns the power spectrum for the time course of the specified (0-indexed) component.
-
getReportFile()[source]¶ Returns the path to the MELODIC report - see
melodicanalysis.getReportFile().
-
getTopLevelAnalysisDir()[source]¶ Returns the top level analysis, if the melodic analysis for this
MelodicImageis contained within another analysis. Otherwise, returnsNone. See themelodicanalysis.getTopLevelAnalysisDir()function.
-
__module__= 'fsl.data.melodicimage'¶
-
getDataFile()[source]¶ Returns the file name of the data image from which this
MelodicImagewas generated, if possible. See themelodicanalysis.getDataFile()function.
-
getMeanFile()[source]¶ Returns the file name of the mean data image associated with this
MelodicImage. See themelodicanalysis.getMeanFile()function.
-