API Documentation¶
Detectors¶
MNE software for computing HFOs from iEEG data.
|
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 events dataframe for HFO events. |
|
Create a BIDS-derivative annotations dataframe for HFO events. |
|
Backwards-compatible function to convert events to annotations. |
|
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¶
Utility and helper functions for MNE-HFO.
|
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¶
Some parts of code are recoded from package Anderson Brito da Silva’s pyhfo.
Reference: (https://github.com/britodasilva/pyhfo)
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. |