mvpa2.misc.bv.base.BrainVoyagerRTC

Inheritance diagram of BrainVoyagerRTC
class mvpa2.misc.bv.base.BrainVoyagerRTC(source)

IO helper to read BrainVoyager RTC files.

This is a textfile format that is used to specify stimulation protocols for data analysis in BrainVoyager. It looks like

FileVersion: 2 Type: DesignMatrix NrOfPredictors: 4 NrOfDataPoints: 147

“fm_l_60dB” “fm_r_60dB” “fm_l_80dB” “fm_r_80dB” 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

Data is always read as float and header is actually ignored

Attributes

ncolumns Returns the number of columns.
nrows Returns the number of rows.

Methods

clear()
copy()
fromkeys(S[,v]) v defaults to None.
get(k[,d])
has_key(k)
items()
iteritems()
iterkeys()
itervalues()
keys()
pop(k[,d]) If key is not found, d is returned if given, otherwise KeyError is raised
popitem() 2-tuple; but raise KeyError if D is empty.
select_samples(selection) Return new ColumnData with selected samples
setdefault(k[,d])
toarray() Returns the data as an array
tofile(filename[, header, header_order, sep]) Write column data to a text file.
update([E, ]**F) If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values()
viewitems()
viewkeys()
viewvalues()

Read and write BrainVoyager RTC files.

Parameters:

source : str

Filename of an RTC file

Attributes

ncolumns Returns the number of columns.
nrows Returns the number of rows.

Methods

clear()
copy()
fromkeys(S[,v]) v defaults to None.
get(k[,d])
has_key(k)
items()
iteritems()
iterkeys()
itervalues()
keys()
pop(k[,d]) If key is not found, d is returned if given, otherwise KeyError is raised
popitem() 2-tuple; but raise KeyError if D is empty.
select_samples(selection) Return new ColumnData with selected samples
setdefault(k[,d])
toarray() Returns the data as an array
tofile(filename[, header, header_order, sep]) Write column data to a text file.
update([E, ]**F) If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values()
viewitems()
viewkeys()
viewvalues()
toarray()

Returns the data as an array