Package mvpa :: Package datasets :: Module niftidataset :: Class NiftiDataset
[hide private]
[frames] | no frames]

Class NiftiDataset

source code


Dataset based on NiftiImage provided by pynifti.

See http://niftilib.sourceforge.net/pynifti/ for more information about pynifti.

Instance Methods [hide private]
 
map2Nifti(self, data=None)
Maps a data vector into the dataspace and wraps it with a NiftiImage.
source code

Inherited from maskeddataset.MaskedDataset: selectFeaturesByMask

Inherited from mappeddataset.MappedDataset: mapForward, mapReverse

Inherited from base.Dataset: __add__, __iadd__, __repr__, __str__, convertFeatureIds2FeatureMask, convertFeatureMask2FeatureIds, getNFeatures, getNSamples, getRandomSamples, idsbychunks, idsbylabels, setSamplesDType, summary

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

    Creators
 
__init__(self, samples=None, mask=None, dsattr=None, **kwargs)
Initialize NiftiDataset.
source code

Inherited from mappeddataset.MappedDataset: selectFeatures

Inherited from base.Dataset: applyMapper, selectSamples

    Mutators

Inherited from base.Dataset: permuteLabels

Class Methods [hide private]

Inherited from base.Dataset (private): _registerAttribute

Class Variables [hide private]
  niftihdr = property(fget= lambda self: self._dsattr ['niftihdr...
Instance Variables [hide private]

Inherited from base.Dataset (private): _data, _dsattr

Properties [hide private]

Inherited from mappeddataset.MappedDataset: mapper

Inherited from base.Dataset: chunks, idhash, labels, nfeatures, nsamples, samples, samplesperchunk, samplesperlabel, uniquechunks, uniquelabels

Inherited from object: __class__

Method Details [hide private]

__init__(self, samples=None, mask=None, dsattr=None, **kwargs)
(Constructor)

source code 
Initialize NiftiDataset.
Parameters:
  • samples - Filename (string) of a NIfTI image or a NiftiImage object
  • mask - Filename (string) of a NIfTI image or a NiftiImage object
Overrides: object.__init__

map2Nifti(self, data=None)

source code 
Maps a data vector into the dataspace and wraps it with a NiftiImage. The header data of this object is used to initialize the new NiftiImage.
Parameters:
  • data (ndarray) - The data to be wrapped into NiftiImage. If None (default), it would wrap samples of the current dataset

Class Variable Details [hide private]

niftihdr

Value:
property(fget= lambda self: self._dsattr ['niftihdr'], doc= 'Access to\
 the NIfTI header dictionary.')