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.dbindex 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bgc_viewer-0.1.27.tar.gz.
File metadata
- Download URL: bgc_viewer-0.1.27.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b5c1fe4965150d72dc9e46cf5635180f5f78ab178edcac362c2902622767578
|
|
| MD5 |
efd99b49a707a16fe6cd09fc107e92ad
|
|
| BLAKE2b-256 |
4dc9fb32f1eb7197df686a575cbef6d68ab5aa80163d46774b53315988ae05e4
|
Provenance
The following attestation bundles were made for bgc_viewer-0.1.27.tar.gz:
Publisher:
release.yml on medema-group/bgc-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bgc_viewer-0.1.27.tar.gz -
Subject digest:
4b5c1fe4965150d72dc9e46cf5635180f5f78ab178edcac362c2902622767578 - Sigstore transparency entry: 709962821
- Sigstore integration time:
-
Permalink:
medema-group/bgc-viewer@08f78c7ffbdc93f4ed9fbdb30c941ea3517f1fa4 -
Branch / Tag:
refs/tags/v0.1.27 - Owner: https://github.com/medema-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08f78c7ffbdc93f4ed9fbdb30c941ea3517f1fa4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bgc_viewer-0.1.27-py3-none-any.whl.
File metadata
- Download URL: bgc_viewer-0.1.27-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d25ee9b6d3358249f375cc04b07e2dffa501866930617fd27ff4f933283b3484
|
|
| MD5 |
806b54c79f5ef409200d6dd49b950d9f
|
|
| BLAKE2b-256 |
841850cca8fc91941ec47b28f493078c27445306378e223b2c62557d595a88db
|
Provenance
The following attestation bundles were made for bgc_viewer-0.1.27-py3-none-any.whl:
Publisher:
release.yml on medema-group/bgc-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bgc_viewer-0.1.27-py3-none-any.whl -
Subject digest:
d25ee9b6d3358249f375cc04b07e2dffa501866930617fd27ff4f933283b3484 - Sigstore transparency entry: 709962828
- Sigstore integration time:
-
Permalink:
medema-group/bgc-viewer@08f78c7ffbdc93f4ed9fbdb30c941ea3517f1fa4 -
Branch / Tag:
refs/tags/v0.1.27 - Owner: https://github.com/medema-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08f78c7ffbdc93f4ed9fbdb30c941ea3517f1fa4 -
Trigger Event:
push
-
Statement type: