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(*args, **kwargs)[source]
Bases:
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:The TR time of the raw data from which this
MelodicImagewas generated.Returns the time course for the specified (0-indexed) component.
Returns the power spectrum for the time course of the specified (0-indexed) component.
Returns the number of components in this
MelodicImage.Returns the melodic output directory in which this image is contained.
Returns the top level analysis, if the melodic analysis for this
MelodicImageis contained within another analysis.Returns 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.
- property 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.
- __annotations__ = {}
- __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.