Visualization & Dashboards
Last updated
Was this helpful?
Last updated
Was this helpful?
Quilt packages are not only reproducible units of data and metadata, but units of reporting. You can use the following features to include interactive visualizations and light applications inside of packages.
Importantly, relative references to data are resolved relative to the parent package. This means that all of your reports are backed by immutable, versioned data, providing a common frame of reference that is lacking in BI applications that read from fast-moving databases and file systems.
In addition to rendering a wide variety of images, binary files, and text files, the Quilt catalog supports the following libraries for visualization and exploration:
(Developer preview)
The above systems provide you with hundreds of charts out of the box.
quilt_summarize.json
quilt_summarize.json
is a configuration file that renders one or more dashboard elements in both Bucket view and Packages view. The contents of quilt_summarize.json
are a JSON array of files that you wish to preview in the catalog. Each file may be represented as a string or, if you wish to provide more configuration, as an object.
The simplest summary is a list of relative paths to files that you wish to preview:
By default, each list element renders in its own row.
For multi-column layouts, you can provide an array instead of a string for a given row:
Each element of an array in quilt_summarize.json
can either be a path string or an object with one or more of the following properties:
path
- file path relative to quilt_summarize.json
title
- title rendered instead of file path
description
- description in markdown format
expand
- Display the file (true
) or display a preview in an expandable box (false
, default)
width
- column width either in pixels or ratio (default is ratio 1
)
types
- a list of render types (at present only singleton lists are supported):
["echarts"]
to render JSON as an EChart
["perspective"]
to render tabular data (csv, xlsx etc.) with Perspective
["igv"]
to render JSON with Integrative Genomics Viewer
["voila"]
to render a Jupyter notebook as an interactive Voila dashboard
["text"]
to render anything as text with syntax highlighting
If you need to control the height of an element (useful for Voila dashboards), use the following extended syntax:
At present height
is the only supported style
element.
Limitations:
Objects linked via
quilt_summarize.json
are always the latest version, even when browsing an older package version.Object titles and image thumbnails link to the file view, even in the package view.
If your Amazon S3 bucket contains images, by default the Quilt Catalog displays a preview of those images before any quilt_summarize.json
-referenced files.
In the Bucket tab, the Catalog displays thumbnail image previews in a similarly paginated grid but only from the current directory viewed.
In the Packages tab, when a specific package has been opened the Catalog displays thumbnail image previews in a similarly paginated grid but only those image files in the selected package.
In order to display a Vega or Vega-Lite visualization, simply reference a JSON file with a library-compatible schema in a JSON file as follows in your quilt_summarize.json
file:
Here's a simple example:
As with Vega, you can provide either a relative path or URL to the dataset file.
Relative paths are resolved relative to your echarts.json file and relative to the parent package.
This feature is a Developer preview, details are subject to change.
In brief, a Voila dashboard version of your notebook will display all of the output cells and none of the input cells from the underlying notebook. This enables you to create interactive, Jupyter-driven apps for your Quilt catalog users.
When you have a Voila dashboard inside of a Quilt package, you may wish to reference files in the current package revision. The Quilt catalog sets the following environment variables and passes them to the Voila kernel:
QUILT_PKG_BUCKET
QUILT_PKG_NAME
QUILT_PKG_TOP_HASH
You can access these variables in Python and browse the package:
By default, Quilt Voila containers provide the following modules:
For speed, Quilt loads the first few rows stored in S3. Click Load More to fetch up to about 6MB of zipped data. To see the entire file contents for large files, download the file (lower left).
Click Filter and Plot to open the side drawer. Drag and drop columns from the sidebar to Group By, Split By, Order By, and Where to pivot, filter, and more.
Select from a variety for visualizations by clicking the upper left menu that initially displays "Datgrid".
Click Toggle Theme to use a fixed-width font (useful for comparing strings).
Use the controls along the bottom to reset, download, copy, resize the grid, and more.
To open the drawer by default, set the config.settings
property in quilt_summarize.json
as follows:
You can save the state of the datagrid, as shown below. To restore a saved datagrid use the config
property of quilt_summarize.json
:
All filters and columns will be restored:
You may specify relative paths to package files or absolute S3 URLs as data sources, and the Quilt catalog will resolve them. HTTP URLs will remain unchanged.
["html"]
to render HTML in iframes. See also
In the Overview tab, the Catalog parses the entire Amazon S3 bucket contents and displays thumbnail image previews in a paginated grid (25 per page by default) of all .
To hide this block, use the gallery
field in your file.
The Quilt catalog uses to render and visualizations. See for specific library versions and compatibility.
For both Vega and Vega Lite you may specify relative paths to package files as data sources and the Quilt catalog correctly resolves them. Vega treats any data source as JSON by default. If you wish to use a different format than JSON, please . For example:
The easiest way to create Vega-lite visualizations for Quilt packages is with .
To create plots that directly embed a dataset with more than 5000 rows (a large dataset), you will encounter a MaxRowsError
. You can get around this error in
To render an , you provide a JSON file (a dictionary that specifies the ECharts ) and you set the "types"
property to [ "echarts" ]
.
The following example is a .
At present, ECharts in Quilt does not support custom JavaScript. You are therefore limited to JSON types (numbers, strings, objects, arrays, etc.). Functions like are not available.
Enterprise deployments of Quilt support interactive Jupyter notebooks with .
The Voila libraries execute a remote Jupyter Kernel and stream the results to the browser with tornado. Jupyter kernels run on a single EC2 instance (t3.small
by default) in Linux containers that have network access but do not have access to persistent storage. The catalog users's AWS credentials are passed to Jupyter kernel as .
Quilt renders tabular data formats into a Datagrid, including the following file extensions: .csv, .xls, .xlsx, .jsonl, .parquet, and .tsv.
Several customers have reported that Perspective Datagrids fail to automatically render in the Quilt web catalog. We have isolated this problem to clashes with third party browser extensions in both Mozilla Firefox and Google Chrome. At least one extension, , has been reported and the error reproduced.
If you encounter a rendering error, please first try a different browser (Firefox, Safari, Edge) on the same machine. If the error persists, next disable all third-party extensions, turning each one back on, one-by-one, until the problem extension is identified. Please then notify with the extension name and version.
To render genome tracks, you can select "View as IGV" in the catalog, or you can invoke in quilt_summarize, as shown below:
In the above example, igv-options-file.json
is an .
Note: Please be mindful of rendering large sequences You can limit the downloaded file size of the sequence by using the (-1
is for downloading the whole file, which could potentially be several gigabytes in size - this may impact rendering speed and interactive performance).
Note that tracks are .