supereeg.
Brain
(data=None, locs=None, sessions=None, sample_rate=None, meta=None, date_created=None, label=None, kurtosis=None, kurtosis_threshold=10, minimum_voxel_size=3, maximum_voxel_size=20, filter='kurtosis')[source]¶Brain data object for the supereeg package
A brain data object contains a single iEEG subject. To create one, at minimum you need data (samples x electrodes), location coordinates in MNI space and the sample rate of the data. Additionally, you can include a session id. If included, all analyses will be performed within session and then aggregated across sessions. You can also include a meta dict, which can contain any other information that might be useful (subject id, recording params, etc).
Parameters: |
|
---|---|
Returns: |
|
Attributes: |
|
Methods
apply_filter ([inplace]) |
Return a filtered copy |
get_data () |
Gets data from brain object |
get_locs () |
Gets locations from brain object |
get_slice ([sample_inds, loc_inds, inplace]) |
Indexes brain object data |
get_zscore_data () |
Gets zscored data from brain object |
info () |
Print info about the brain object |
next () |
Return next sample from Brain object (wrapper for self.__next__) |
plot_data ([filepath, time_min, time_max, ...]) |
Normalizes and plots data from brain object |
plot_locs ([pdfpath]) |
Plots electrode locations from brain object |
resample ([resample_rate]) |
Resamples data |
save (fname[, compression]) |
Save method for the brain object |
to_nii ([filepath, template, vox_size, ...]) |
Save brain object as a nifti file. |
update_filter_inds | |
update_info |
__init__
(data=None, locs=None, sessions=None, sample_rate=None, meta=None, date_created=None, label=None, kurtosis=None, kurtosis_threshold=10, minimum_voxel_size=3, maximum_voxel_size=20, filter='kurtosis')[source]¶Methods
__init__ ([data, locs, sessions, ...]) |
|
apply_filter ([inplace]) |
Return a filtered copy |
get_data () |
Gets data from brain object |
get_locs () |
Gets locations from brain object |
get_slice ([sample_inds, loc_inds, inplace]) |
Indexes brain object data |
get_zscore_data () |
Gets zscored data from brain object |
info () |
Print info about the brain object |
next () |
Return next sample from Brain object (wrapper for self.__next__) |
plot_data ([filepath, time_min, time_max, ...]) |
Normalizes and plots data from brain object |
plot_locs ([pdfpath]) |
Plots electrode locations from brain object |
resample ([resample_rate]) |
Resamples data |
save (fname[, compression]) |
Save method for the brain object |
to_nii ([filepath, template, vox_size, ...]) |
Save brain object as a nifti file. |
update_filter_inds () |
|
update_info () |