Luna is a freely available, open-source C/C++ software package designed to manipulate and analyze polysomnographic recordings (stored as EDF). A companion tool Scope is designed for viewing EDF files and their associated annotations. Luna was initially designed (and has been used) to work with the large number of polysomnograms at the NSRR, with a focus on sleep EEG.

Although Luna is primarily designed to support our own ongoing research projects, here we make it available for others to use. This project is under heavy development. Naturally, we welcome any feedback and will consider requests for additional or different functionality where appropriate.

Contents (hide)

  1.   1.  Current foci/limitations
  2.   2.  Core features
  3.   3.  Get started

1.  Current foci/limitations

  • Luna is primarily a command-line/script-based application, rather than an interactive/GUI one. It is likely to be most useful in the context of applying the same basic manipulations and analyses to multiple datasets. Other excellent tools? may be better suited to interactive and exploratory investigation of a single recording.
  • Currently, most analyses in Luna are essentially single-channel, or for pairs of channels. This reflects the fact that Luna evolved to support analyses of typical polysomnography recordings, rather than full multivariate analyses of high-density EEG data.

2.  Core features

  • Read, manipulate and write EDF and EDF+ signals
  • Filter, resample and re-reference signals
  • Generate a variety of (per-epoch) summary statistics
  • Statistical artifact detection for EEG channels
  • Annotate and mask/filter epochs
  • Estimate key features of sleep macro-architecture
  • Spectral analyses
  • Spindle detection
  • Coherence and cross-frequency coupling

We expect that in the future new features will be added and documented here as the foci of our own work evolves.

3.  Get started

After downloading the code, the best place to start is the tutorial. After that, read through each of the pages listed in the left panel. The Reference page contains a full list of currently-supported commands.