Skip to content
Mackenzie Noon edited this page Aug 21, 2026 · 1 revision

Browser GUI

commec gui provides a browser interface for screening. It is available in Commec 2.1.0 or later and supports two modes:

  • Kiosk mode opens the interface on the same computer and listens only on localhost.
  • LAN mode serves the interface over HTTPS to other computers on a trusted network or VPN.

Before you start

Activate the conda environment containing Commec and download the screening databases if needed:

conda activate commec-env
commec setup -d /path/to/databases

The examples below use port 8765 because the default HTTPS port, 443, usually requires additional operating-system permission.

Local kiosk mode

Start the GUI and open it in the local browser:

commec gui --kiosk --port 8765 --databases /path/to/databases

Localhost access does not require a GUI password by default because kiosk mode assumes physical access to the computer. Add --require-local-auth if local users must also log in.

LAN mode

LAN access is blocked until a password hash exists. With the Commec conda environment active, locate and run the packaged password helper:

GUI_DIR="$(python -c 'from pathlib import Path; import commec.gui; print(Path(commec.gui.__file__).parent)')"
COMMEC_CONDA_ENV="$CONDA_DEFAULT_ENV" "$GUI_DIR/set-password.sh"

Start the HTTPS server:

commec gui --lan --tls-auto --port 8765 --databases /path/to/databases

Open https://<server-address>:8765/ from another computer and enter the GUI password. The automatically generated certificate is signed by a CA created on the server. Remote browsers will show a certificate warning until the server's rootCA.pem is installed in their trust store. Distribute only rootCA.pem; never copy the CA private key or the server private key to client computers.

Run a screen

  1. Enter a unique run label.
  2. Paste a sequence or select a FASTA, CSV, or spreadsheet file.
  3. Select a screening preset and, when applicable, regulatory jurisdictions.
  4. Start the run and follow its progress in the browser.
  5. Open the result summary, HTML report, or retained output files.

Only one screen runs at a time. If the server or computer stops during a run, the Results panel marks it Interrupted and offers Resume after the GUI starts again.

Security and storage warnings

  • Keep TLS enabled for LAN access. Passwords and submitted sequences must not be sent over plain HTTP.
  • --lan listens on every network interface. Use the host firewall to allow only trusted LAN or VPN clients.
  • Submitted sequences, search intermediates, logs, and reports persist under --runs-dir. The default retention period keeps completed runs indefinitely. Protect the directory and configure retention when inputs are sensitive.
  • Treat the machine as a screening system, not a public web service. Do not expose the GUI port directly to the internet.

The repository's detailed GUI guide covers configuration, TLS, presets, inputs, results, resume, and retention.

Clone this wiki locally