logLIRA is a novel stimulus artifacts rejection algorithm designed specifically for electrophysiological recordings. This algorithm employs a piece-wise linear interpolation with logarithmically distributed interpolation points to effectively estimate the stimulus artifacts templates and decouple the stimulus artifacts and the underlying neural activity.
Thanks to its embedded mitigation of secondary artifacts step, logLIRA is especially useful in the recording and analysis of short-latency evoked activity.
To successfully install and run logLIRA, you need:
- MATLAB (R2017a or higher)
- Uniform Manifold Approximation and Projection (UMAP) add-on installed in MATLAB
To use logLIRA in your electrophysiological data analysis pipeline, simply clone this repository and incorporate the algorithm into your codebase via the following steps:
- Clone this git repository with the following command:
git clone https://github.com/barbaLab/logLIRA.git - Open MATLAB and run the
install.mscript. If prompted, allow MATLAB to update its path.
% Load electrophysiological data and sampling frequency
load('.../data.mat', 'data', 'sampleRate');
% Load the electrical stimuli onsets
load('.../stimuli.mat', 'stimIdxs');
% Apply logLIRA artifact rejection
output = logLIRA(data, stimIdxs, sampleRate);
% Proceed with your analysis steps
...For more details about
logLIRAusage, read the documentation via thehelpcommand directly from MATLAB or check out thelogLIRA.mfile.