Skip to content

Tool Studio (v1.9.0+)

Depictio Tool Studio adds a tool to the Tools Catalog from the browser: drop a sample of one of its output files (or a raw file plus a recipe), bind its columns in depictio's own component builder, and the app opens the pull request. Nothing to install: your files are read in the page and only leave it with the pull request.

The Tool Studio start screen: the four steps, Try an example, Import an entry, and the two kinds of output file it covers The Tool Studio start screen: the four steps, Try an example, Import an entry, and the two kinds of output file it covers

An entry is a folder: module.yaml (which tool), one <output>.yaml per output file, the fixture each output binds against, and a recipe when the file is not already a table (half the committed outputs). Try an example loads a committed entry; Import an entry reads a zip, a tool folder or a draft JSON. The hand-written path produces the same folder.

v1.23.0+ The Studio wears depictio's own chrome, keeps an Entry panel beside every step (the files to write, the checks run so far), and covers recipes, several outputs and the CLI's checks.

1. Tool

The Tool step: Bracken imported from its nf-core module, identity on the left, the output on the right, the Entry panel listing the files to write The Tool step: Bracken imported from its nf-core module, identity on the left, the output on the right, the Entry panel listing the files to write

Identity on the left, the output on the right. Next unlocks with six fields: tool id and name, description and homepage (what the catalog card shows), output slug and path glob (or an exact file name). The path glob is how depictio recognises the file in a run.

Import from nf-core, Snakemake or Galaxy

The Output channel picker after importing the centrifuge nf-core module, listing its file outputs The Output channel picker after importing the centrifuge nf-core module, listing its file outputs

Paste a module, wrapper or tool URL and press Import: the app reads its metadata (meta.yml for nf-core) in the browser and fills the identity, homepage and bio.tools link. Picking an Output channel fills the slug, path glob and description.

If the tool is already in the catalog

QIIME 2 recognised: its committed outputs with their renders, Add a visualization here, Add a new output to this tool QIIME 2 recognised: its committed outputs with their renders, Add a visualization here, Add a new output to this tool

Recognition runs as you type (nf-core module path, then id, then name). Add a visualization here appends to that output's renders_as, rebased on main; Add a new output to this tool writes a fresh <output>.yaml and leaves module.yaml alone. A close relative (macs3 next to macs2) is flagged too. Not this tool? Continue as a new tool dismisses the match.

If MultiQC already parses it

The MultiQC advisory for fastqc, with the Entry panel listing what is left to fill in The MultiQC advisory for fastqc, with the Entry panel listing what is left to fill in

depictio already ingests MultiQC, so an entry for one of its 181 modules is often work for metrics that arrive anyway. Advisory only: an entry is still legitimate for an output MultiQC skips.

Optional fields

Classification holds the stage (the tab a composed dashboard puts the tool's components under), EDAM topics and an entry version. More ways to recognise the file holds alternative globs and an exact file name. The file needs reshaping first (recipe) turns the Fixture step into the recipe pipeline.

2. Fixture

The Fixture step with Bracken's species abundance table fetched from MultiQC test-data: inferred column types and the glob it will be committed for The Fixture step with Bracken's species abundance table fetched from MultiQC test-data: inferred column types and the glob it will be committed for

Drop one real sample of the output file, or fetch it from a URL (the host must allow cross-origin requests, as the four linked corpora do; a github.com blob link is rewritten to raw). The file is committed with the entry: CI checks every binding against it. A file that is not a table (a .narrowPeak, no header row) offers Reshape it with a recipe.

Recipes: raw sample, recipe, fixture

v1.23.0+

The recipe pipeline for macs2 peaks: four raw narrowPeak files in stage 1, the recipe with its OUTPUT_SCHEMA columns in stage 2 The recipe pipeline for macs2 peaks: four raw narrowPeak files in stage 1, the recipe with its OUTPUT_SCHEMA columns in stage 2

For an output that needs reshaping, the Fixture step is a three-stage pipeline. ① Raw sample: the tool's own files, any extension; add several to test across samples. They stay in your browser (not exported, shared or saved).

The recipe after Run in the browser, and stage 3 holding its result: 23 rows, 11 typed columns The recipe after Run in the browser, and stage 3 holding its result: 23 rows, 11 typed columns

② Recipe: the Python module depictio runs at ingestion (SOURCES, OUTPUT_SCHEMA, transform()), edited in the page. Run in the browser runs it on the raw samples with Python and polars (the first run downloads them). ③ Fixture: its result, exported as the committed sample.

A column added to OUTPUT_SCHEMA: its badge turns red and stage 3 says the fixture lacks it until the recipe runs again A column added to OUTPUT_SCHEMA: its badge turns red and stage 3 says the fixture lacks it until the recipe runs again

The fixture is checked against OUTPUT_SCHEMA: a declared column it lacks means the fixture is stale. The recipe is exported as <tool>/<slug>.py, referenced by recipe:. A recipe from a link or an imported entry runs only once you press Run this code.

Several outputs

v1.23.0+

The macs2 entry with two outputs, peaks and broad_peaks, in the Outputs bar, and the Entry panel listing module.yaml plus a YAML, fixture and recipe for each The macs2 entry with two outputs, peaks and broad_peaks, in the Outputs bar, and the Entry panel listing module.yaml plus a YAML, fixture and recipe for each

Add output in the bar above every step adds another output of the same tool. Each keeps its own fixture, recipe and renders; the steps edit the highlighted one. Export writes module.yaml once, then one YAML, fixture and recipe per output.

3. Visualizations

The figure builder seeded from the Bracken fixture: Bracken's re-estimated reads against Kraken's assigned reads per species, on log axes The figure builder seeded from the Bracken fixture: Bracken's re-estimated reads against Kraken's assigned reads per species, on log axes

Add visualization opens the dashboard editor's component-type grid, then depictio's own builder seeded from your fixture: same controls, same preview, same UI Mode / Code Mode. Figures are drawn by depictio's figure code in your browser; in Code Mode df is pandas there and Polars on the server, so use df.to_pandas().

A render card, on its For catalog developers tab with the renders_as entry it will write A render card, on its For catalog developers tab with the renders_as entry it will write

Each render becomes a card with two tabs: For dashboard users (preview and use: snippet) and For catalog developers (the exact renders_as entry).

4. Export

The Export step with every check passing, Download zip, Sign in with GitHub & open PR, and the generated files The Export step with every check passing, Download zip, Sign in with GitHub & open PR, and the generated files

  • Download zip: the folder to commit yourself.
  • Sign in with GitHub & open PR: forks depictio/depictio, commits under depictio/catalog/<tool>/ and opens the pull request (public_repo scope, token kept in memory). Without OAuth, Contribute on GitHub walks you through the zip upload.
  • Copy a link to this draft (#draft=, fixture trimmed to 200 rows) and Download draft JSON both round-trip through Import an entry.

The checks at export: a render bound to a column the fixture lacks, with its code, the output it is on, and Fix in Visualizations The checks at export: a render bound to a column the fixture lacks, with its code, the output it is on, and Fix in Visualizations

v1.23.0+ The Entry panel and the Export step run the checks of depictio dev catalog validate: JSON Schemas, identity and URLs, the nf-core and EDAM indices, fixtures, render bindings, recipes. Each finding links to the step that fixes it. Errors block export unless you tick Export anyway; CI's catalog check stays the authoritative one.

The pull request the app opened, on GitHub: a summary, the files and the YAML inline

Driving it from a script

v1.23.0+

window.toolStudio loads (load, loadFiles, loadZip), validates (validateAsync), exports (exportFiles, exportZip) and shares (link) without a click; the agent guide documents it.

What it generates
# module.yaml: id, name, description, homepage, nf_core_url, biotools_url (or null), stage
# results.yaml
id: mytool_results
find: {path_glob: "**/mytool/*.tsv"}
recipe: mytool/results.py  # only when the output needs reshaping
fixture: results.tsv
renders_as:
  - { component: card, column: coverage, aggregation: average, headline: true }
  - { component: advanced_viz, kind: volcano, roles: {feature_id: gene, effect_size: log2fc, significance: pvalue} }

Plus the fixture (byte-identical to the dropped file or the recipe's result) and the recipe module, per output.

What it cannot do yet

  • No preview for the five server-computed advanced-viz kinds (embedding, complex_heatmap, upset_plot, coverage_track, sankey) or a phylogenetic tree (its newick is never given); they still export.
  • filter_expr is not applied in the previews; multi-file outputs, maps and images are not offered.

See also