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.

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
Power spectra Power spectral density estimation
Spindles and SO Spindles and slow oscillations
Cross-signal analyses Coherence and other topographical analyses
Cross-frequency coupling Phase-amplitude and spindle/SO coupling
Misc Misc. commands
Experimental Experimental features, under heavy development / for internal use only