Skip to main content

A viewer to explore and visualize Biosynthetic Gene Cluster data

Project description

BGC Viewer

A viewer for biosynthetic gene cluster (BGC) data.

Installation & run

Using Python 3.11 or higher, install and run the BGC Viewer as follows:

pip install bgc-viewer
bgc-viewer

This will start the BGC Viewer server, to which you can connect with your web browser.

Configuration

Environment variables can be set to change the configuration of the viewer. A convenient way to change them is to put a file called .env in the directory from which you are running the application.

Basic Configuration

BGCV_HOST=localhost       # Server host (default: localhost)
BGCV_PORT=5005            # Server port (default: 5005)
BGCV_DEBUG_MODE=False     # Enable dev/debug mode (default: False)

Public Mode (Multi-user Deployment)

BGCV_PUBLIC_MODE=True                         # Enable public mode
BGCV_DATABASE_PATH=/path/to/attributes.db     # Path to index database file (required)
BGCV_SECRET_KEY=your-secret-key               # Secret key for session signing (required)
REDIS_URL=redis://localhost:6379              # Redis URL for session storage (recommended)
HTTPS_ENABLED=True                            # Enable secure cookies for HTTPS
BGCV_ALLOWED_ORIGINS=https://yourdomain.com   # Allowed CORS origins

In public mode:

  • The database path points to an attributes.db index file
  • The actual data location (data_root) is read from the database metadata
  • Multiple users can access the application simultaneously with session support
  • File system browsing and preprocessing endpoints are disabled

For more configuration options, see .env.example.

Development

See the repository main README for development details.

uv run python -m bgc_viewer.app

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bgc_viewer-0.1.20.tar.gz (152.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bgc_viewer-0.1.20-py3-none-any.whl (157.4 kB view details)

Uploaded Python 3

File details

Details for the file bgc_viewer-0.1.20.tar.gz.

File metadata

  • Download URL: bgc_viewer-0.1.20.tar.gz
  • Upload date:
  • Size: 152.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bgc_viewer-0.1.20.tar.gz
Algorithm Hash digest
SHA256 6b4dcb0e4193f793b6e5d016e9895c3858cbd35204e5f5ac6d96d3b9c7fde602
MD5 7b0f71d0850ae76d4b892d6775e065b7
BLAKE2b-256 44d4d10a267bc823ff6400d8d8b2ed768da1d8d72681736f5bb67cf99b2c3857

See more details on using hashes here.

Provenance

The following attestation bundles were made for bgc_viewer-0.1.20.tar.gz:

Publisher: release.yml on medema-group/bgc-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bgc_viewer-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: bgc_viewer-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 157.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bgc_viewer-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9a5967f7168d01d26026521554a76354682c156b7ab10f7ff197af6eda90e2
MD5 c15c5945f5e9029738344a97454d8b26
BLAKE2b-256 cb64b094ed7a59ea1e4b6a5f35f7f4b38e73b099b6c098b54e3fa578f83c4d14

See more details on using hashes here.

Provenance

The following attestation bundles were made for bgc_viewer-0.1.20-py3-none-any.whl:

Publisher: release.yml on medema-group/bgc-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page