mvpa2.misc.io.base.SampleAttributes

Inheritance diagram of SampleAttributes

class mvpa2.misc.io.base.SampleAttributes(source, literallabels=True, header=None)

Read and write PyMVPA sample attribute definitions from and to text files.

Read PyMVPA sample attributes from disk.

Parameters :

source : str

Filename of an atrribute file

literallabels : bool, optional

Either labels are given as literal strings

header : None or bool or list of str

If None, [‘targets’, ‘chunks’] is assumed. Otherwise the same behavior as of ColumnData

nsamples

Returns the number of samples in the file.

tofile(filename)

Write sample attributes to a text file.

NeuroDebian

NITRC-listed