BayES BayES

1.2 Running BayES

Once successfully installed, BayES can be used in two modes: (i) interactive mode using its GUI facilities, and (ii) batch mode by calling BayES from the command line and providing a script file for execution. Instructions on using BayES in each of these modes are presented separately in the following two sections. See also the video tutorials on BayES’ website.

1.2.1 Running BayES in interactive mode

BayES can be initiated in interactive mode by (i) clicking on the BayES icon on the system’s ‘start’ menu or on the Launchpad (under macOS), (ii) double-clicking on the BayES icon on the system’s desktop (iii) typing BayES and hitting the return key on the system’s console window, or (iv) double-clicking on the BayES link file in the installation directory, as it was provided during installation. Note that the first three options may be unavailable, depending on the options selected during installation. However, the fourth option will always be available.

When BayES starts in interactive mode the main window will appear. This window contains:

An additional window, the BayES script editor, which does not appear automatically when BayES starts, can be shown from the main menu: View Script Editor. This window can be used to type code in BayES’ scripting language and submit instructions in bulk.

Once the user submits instructions, either via the GUI or the script editor window, these instructions are interpreted and the appropriate actions executed. During this time most GUI functions will not be accessible. Upon completion of execution control returns to the user, who can continue with submitting further instructions.

The first time that BayES starts in interactive mode the working directory is set to the installation directory, as provided during installation. This directory will be used as the starting point for importing data and saving output (datasets, matrices, plots, etc.) and looking for user-defined functions. Depending on the options chosen by the user (from Help Preferences under Microsoft® Windows® and Linux systems and from Preferences under macOS systems in the main menu), this directory may change when BayES is subsequently invoked in interactive mode.

1.2.2 Running BayES from the command shell

If BayES is made globally available from the command line3 then BayES can also be run in batch mode. This is achieved by submitting a command of the following form on the system’s command console (cmd under Microsoft® Windows® or bash under Linux and macOS):

BayES <input file> [<output file>]

where:

Once a command of this form is submitted to the system’s command console, BayES will fire-up without displaying its GUI and it will start executing the commands contained in <input file>. If an <output file> is provided, output from the BayES console is directed to this file; otherwise output is printed on the system’s console window. Note that BayES does not distinguish between normal and error output and everything is printed on the normal channel. Upon completion of the execution of the statements contained in <input file> or upon encountering an error, BayES terminates and control is passed back to the system’s command console.

3This can be achieved by checking the relevant checkbox during installation.

Share this content:
Facebook Twitter LinkedIn Email
© 2016–20 Grigorios Emvalomatis