Skip to main content

A streamlit component for a hybrid genome browser

Project description

Streamlit-HGB

PyPI version Python Versions

A streamlit component for a hybrid genome browser

  • virtualenv
$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit
$ pip install pyyaml    # install pyyaml
  • frontend
$ cd hgb/frontend
$ npm install    # Initialize the project and install npm dependencies
$ npm run start  # Start the Webpack dev server
  • backend
export STREAMLIT_HOST=$(hostname -i)
export HGB_BIN=/*location_to_hgb_binary*/

streamlit run hgb/__init__.py 

Example of config.yaml

hg38:
  range: 
    - chr1:1-1000001
  default:
    - "/path/to/bamfile1.bam"
  samples: 
    - "/path/to/bamfile1.bam"
    - "/path/to/bamfile2.bam"
  • Range: a default range to visualize
  • Default: a default set of BAM file to be loaded
  • Samples: a list of BAM file

All input bam files must be indexed by samtools index or compatibles.

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

streamlit_hgb-0.0.2.tar.gz (790.9 kB view details)

Uploaded Source

Built Distribution

streamlit_hgb-0.0.2-py3-none-any.whl (801.6 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_hgb-0.0.2.tar.gz.

File metadata

  • Download URL: streamlit_hgb-0.0.2.tar.gz
  • Upload date:
  • Size: 790.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.5

File hashes

Hashes for streamlit_hgb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b15ae1ef4497b6f7883e11f44f3d9ff46c2669e9e51637109750d81937a96d5
MD5 8ae00ffb124415c8314c8930d04de2fd
BLAKE2b-256 1cc91ab72876cea3e916895cf4dfef93f9c296d9dbc38dd8b4548bf5e5542ad3

See more details on using hashes here.

File details

Details for the file streamlit_hgb-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: streamlit_hgb-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 801.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.5

File hashes

Hashes for streamlit_hgb-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e354a128e30fff725f189f8635ed886442f65c7b405b6aa41e2374ec13f09857
MD5 44d8e3411e01eb14d2e8aa8184fd7d03
BLAKE2b-256 5b5a7a2e62267e5597f16c29cabca2894d6868a27cc61b4d7d09b6e7b7baed2c

See more details on using hashes here.

Supported by

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