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 |
get_slice
(sample_inds=None, loc_inds=None, inplace=False)[source]¶Indexes brain object data
Parameters: |
|
---|
info
()[source]¶Print info about the brain object
Prints the number of electrodes, recording time, number of recording sessions, date created, and any optional meta data.
plot_data
(filepath=None, time_min=None, time_max=None, title=None, electrode=None)[source]¶Normalizes and plots data from brain object
Parameters: |
|
---|
plot_locs
(pdfpath=None)[source]¶Plots electrode locations from brain object
Parameters: |
|
---|
resample
(resample_rate=None)[source]¶Resamples data
Parameters: |
|
---|
save
(fname, compression='blosc')[source]¶Save method for the brain object
The data will be saved as a ‘bo’ file, which is a dictionary containing the elements of a brain object saved in the hd5 format using deepdish.
Parameters: |
|
---|
to_nii
(filepath=None, template='gray', vox_size=None, sample_rate=None)[source]¶Save brain object as a nifti file.
Parameters: |
|
---|---|
Returns: |
|