API Documentation#
MNE software for computing HFOs from iEEG data.
Detectors#
|
Line-length detection algorithm. |
|
Root mean square (RMS) detection algorithm (Staba Detector). |
|
2D HFO hilbert detection used in Kucewicz et al. 2014. |
BIDS-IO functions#
|
Create a BIDS-derivative annotations dataframe for HFO events. |
|
Read annotations.tsv Derivative file. |
|
Write annotations dataframe to disc. |
Post-processing HFO Detections#
|
Given two annotations.tsv DataFrames, match HFO detection overlaps. |
|
Get a dictionary of hfo events that overlap between two sets. |
|
Compute channel HFO rates from annotations DataFrame. |
Merge overlapping events detected. |
Help transform data to be scikit-learn compatible (for SearchCV)#
|
Make X/y for HFO detector compliant with scikit-learn. |
Dummy CV class for SearchCV scikit-learn functions. |
Metrics#
|
Calculate the Root Mean Square (RMS) energy. |
|
Calculate line length. |
|
Compute the Hilbert envelope for a single channel. |
|
Calculate and apply the threshold based on number of standard deviations. |
|
Apply the Hilbert z-score thresholding scheme. |
|
Calculate threshold by Tukey method. |
Simulation#
|
Create a pink noise (1/f) with N points. |
|
Create a brown noise (1/f²) with N points. |
|
Line noise artifact. |
|
Delta function with exponential decay. |
|
Artifact like spike (sharp, not gaussian). |
|
Create a simple gaussian spike. |
|
Create a simulated HFO signal. |