Common tasks¶
One command per task. Every option is in the Command reference. First install the CLI and save your ~/.depictio/CLI.yaml, or run a local server.
Get data in¶
Ingest a pipeline's results¶
Builds a project and its dashboards from a results folder. The template comes from the run's provenance (pipeline name and version); a folder no template fits gets a dashboard composed from the catalog. Add --dry-run to preview what each data collection finds, without writing.
Pick the template yourself¶
--template takes a bundled id (pin a version, or latest) or a template folder. See Templates. SAMPLESHEET_FILE takes a CSV or TSV sheet, or a YAML or JSON list of records, read exactly as the same CSV (v1.22.0+).
Check a template against a run¶
Lists each template variable and what sets it: the run's params, its outputs, or --var; and which rules hold and which conditionals fire for this run. Offline. --fetch-schema checks the rules against the release's nextflow_schema.json, --against 3.27.0 what the next release breaks. See template check (v1.22.0+).
A pipeline with no template¶
Describe the data collections in a project YAML, or let the Project Builder write a template bundle you then pass to ingest --template.
Data on S3 or behind URLs¶
The data stays where it is. manifest from-table also reads a YAML or JSON samplesheet (v1.22.0+). See Remote data and manifests.
Keep it up to date¶
Add a run, or refresh¶
Ingesting a project that exists stops with exit code 2. --attach-run adds the folder as another run; --update-config rescans and rebuilds the tables. Both keep the dashboards as edited in the viewer. Details: Refreshing a project.
Watch a folder¶
Ingests again whenever files change, rewriting only the runs that moved. Install depictio[watch] for file events, or it polls every 5 minutes. To keep it running, use the systemd unit or container.
Let Nextflow ingest its results¶
Once per machine: every pipeline then ingests its --outdir when it completes. See Nextflow trigger. To ship it inside an nf-core pipeline instead, use the Nextflow subworkflow.
Run locally¶
Run a server on this machine¶
Starts a full server without Docker (pip install "depictio[local]") with example dashboards, and opens it. Without a ~/.depictio/CLI.yaml, every command uses it by default. local down stops it. See Python package.
Dashboards as YAML¶
Export, edit, import¶
depictio dashboard export DASHBOARD_ID -o dash.yaml
depictio dashboard validate dash.yaml
depictio dashboard import dash.yaml --overwrite
--overwrite replaces the dashboard with the same title in the project. Keep the YAML in git and import it on any instance. See Dashboard YAML.
Administer¶
Back up and restore¶
depictio backup create --include-s3-data
depictio backup list
depictio backup restore 20240115_143052 --dry-run
Admins only. Drop --dry-run to restore; it asks for confirmation. See Backup and restore.
Move a project to another instance¶
Copies the project from the default server to the one in CLI_remote.yaml, never deleting on the target. Drop --dry-run to run it; --mode metadata when both share S3. See Project migration.
Script it¶
--result-json writes the project and dashboard links; the exit code says what happened. On CI, set DEPICTIO_CLI_TOKEN and DEPICTIO_CLI_API_BASE_URL to keep the token out of the file, or run the container image.