Skip to content

Command Reference

These pages describe the Luna command language, which can be used either via the terminal-based lunaC tool or the R extension library lunaR. Under each section, we tabulate the relevant commands, along with their input parameters and output variables. We give examples using a mixture of lunaC and lunaR. Also see lunaC's help function.

Domain/Section Description
Summaries Basic summary commands
Annotations Adding and displaying annotations
Expressions Evaluating more advanced annotation-based expressions
Epochs Epoching signals and epoch-level annotations
Masks Masking epochs based on annotations and other criteria
Manipulations Manipulating signal data
Outputs Commands to output signals in different formats
FIR filters FIR filter design and application
Artifacts Artifacts detection/correction routines
Hypnograms Characterizations of hypnograms
SUDS Sleep staging & evaluation
Power spectra Power spectral density estimation
Spindles and SO Spindles and slow oscillations
Coupling/connectivity Phase/amplitude coupling, coherence and other multi-signal analyses
Interval-based Time/event-locked signal averaging, peak detection
Spatial/topographical Channel locations, spatial filtering and interpolation
ICA Independent components analysis
MS EEG microstate analysis
Clustering Time-series clustering
Association Association analysis (linear models)
Experimental Experimental features, under heavy development / for internal use only