Skip to main content

A Dashboard for exploring features in OME-Zarr datasets.

Project description

fractal-feature-explorer

License PyPI Python Version CI

This is the repository that contains the Fractal feature explorer dashboard. Find more information about Fractal in general and the other repositories at the Fractal home page.

Run the dashboard locally

Examples:

  1. Via uvx:
pipx run --spec fractal-feature-explorer explorer
  1. Via pipx:
uvx --from fractal-feature-explorer explorer
  1. Via pixi:
git clone https://github.com/fractal-analytics-platform/fractal-feature-explorer.git
cd fractal-feature-explorer
pixi run explorer
  1. Via venv+pip:
git clone https://github.com/fractal-analytics-platform/fractal-feature-explorer.git
cd fractal-feature-explorer
python3 -m venv venv
source ./venv/bin/activate
python3 -m pip install -e .
explorer

Run the dashboard on a remote server

The most common option is to create a virtual environment and install via pip, and then run via uvicorn

python3 -m venv venv

source venv/bin/activate

pip install fractal-feature-explorer

export FRACTAL_FEATURE_EXPLORER_CONFIG="config.toml"

uvicorn \
    fractal_feature_explorer.app:app\
    --no-server-header \
    --host 0.0.0.0 \
    --port 8501 \

Configuration-file examples:

Develoment

# Clone this repository
git clone https://github.com/fractal-analytics-platform/fractal-feature-explorer.git
# Install the project via pixi
pixi install
# Run the app
export FRACTAL_FEATURE_EXPLORER_CONFIG=./example-config-files/development-config.toml
pixi run uvicorn fractal_feature_explorer.app:app --host 0.0.0.0 --port 8501

Note that this development-config.toml simulates a production deployment and thus it requires Fractal services running locally on a given set of ports (fractal-server on port 8000, fractal-web on port 5173, fractal-data on port 3000).

If you do not need all of this, run via

export FRACTAL_FEATURE_EXPLORER_CONFIG=./example-config-files/local-config.toml
pixi run uvicorn fractal_feature_explorer.app:app --host 0.0.0.0 --port 8501

Change log

See CHANGELOG.md for details on changes and updates.

URL query parameters

  • setup_mode: either Plates or Images. This will determine the setup page of the dashboard.
  • zarr_url: the URL of the zarr file to load.
  • token: the fractal token to use for authentication (optional).

example URL: http://localhost:8501/?zarr_url=/Users/locerr/data/20200812-23well&?zarr_url=/Users/locerr/data/20200811-23well

Test data

Main limitations

  • Image preview is not available for 3D images.
  • Single images not supported, only plates.

Contributing

Releasing a new version on PyPI:

  1. Create a new local tag with the format vX.Y.Z, where X.Y.Z is the new version number.

    git tag v0.1.8 -m "v0.1.8"
    
  2. Push the tag to the remote repository.

    git push --tags
    

License and contributors

The Fractal project is developed by the BioVisionCenter at the University of Zurich, who contracts eXact lab s.r.l. for software engineering and development support.

Unless otherwise specified, Fractal components are released under the BSD 3-Clause License, and copyright is with the BioVisionCenter at the University of Zurich.

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

fractal_feature_explorer-0.1.18.tar.gz (155.9 kB view details)

Uploaded Source

Built Distribution

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

fractal_feature_explorer-0.1.18-py3-none-any.whl (89.2 kB view details)

Uploaded Python 3

File details

Details for the file fractal_feature_explorer-0.1.18.tar.gz.

File metadata

File hashes

Hashes for fractal_feature_explorer-0.1.18.tar.gz
Algorithm Hash digest
SHA256 a8cfd12922887f382d5cb97f2676bc73f279558d62e0e82bf487f1909088c020
MD5 e5325a93ed47fcf46977f3c804a7ba8f
BLAKE2b-256 b99a854f289f277f6a4c4851a24e789ceaebc9de31b5619f3e7c88463224e50e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_feature_explorer-0.1.18.tar.gz:

Publisher: ci.yml on fractal-analytics-platform/fractal-feature-explorer

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

File details

Details for the file fractal_feature_explorer-0.1.18-py3-none-any.whl.

File metadata

File hashes

Hashes for fractal_feature_explorer-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 e088eeeb0acdde2c6f6085366e88c7b553d8ea493b12b4c8ef6c347ec8c4462a
MD5 4ac82784cd280aad42c442c83569019e
BLAKE2b-256 cd9b7c88edbc0bc2f7d63d8042bb7bacf9a499682dba4cefa0a1fe1e573d86eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_feature_explorer-0.1.18-py3-none-any.whl:

Publisher: ci.yml on fractal-analytics-platform/fractal-feature-explorer

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