Skip to content

Parameters

The Parameters dock is used for passing special variables that are applied:

  • when first attaching a new individual's data

  • when hitting Refresh (to reload the individual's data anew)

  • when executing a Luna script

Parameters (Luna) versus configurations (Lunascope): the Param tab passes instructions to Luna itself, whereas the Config tab controls Lunascope-specific display behavior.

Parameter Dock 2

Some parameters are needed before data can even be attached. For example, if annotations use a nonstandard YMD date format, add date-format=YMD; otherwise loading may fail. This is equivalent to the options that come before the main Luna script:

luna s.lst 1 date-format=YMD th=2.5 @param.txt -o out.db < script.txt

In this example, date-format is a special variable that controls Luna's behavior, th is a user-defined variable required by script.txt, and @param.txt includes additional parameter values that would be loaded into this dock.

Aliases and remapping

One common use of parameter files is to rename signals (alias) and annotations (remap). If these are defined at load time, the Signals and Annotations docks show the mapped labels rather than the originals.

By default, Luna includes some built-in mappings unless annot-remap=F and/or nsrr-remap=F is set. The Parameters tab can also be used to inspect the currently defined variables and signal/annotation mappings.

Parameter Dock

Loading parameter files

You can pre-load a parameter file from the command line with -p:

lunascope s.lst -p param.txt

This pre-populates the dock with that file.