Usage
To use Datavzrd, run the following command in your terminal:
$ datavzrd [FLAGS] [OPTIONS] <CONFIG> --output <output>
Example:
$ datavzrd path/to/my-config.yaml --output my-report
Command Line Arguments
Subcommands
Datavzrd also supports additional functionality through subcommands. Below are the available subcommands:
Publish
The publish subcommand allows you to publish a generated report to GitHub Pages. This requires the user to have gh installed and authenticated.
$ datavzrd publish --repo-name <repo_name> --report-path <report_path> [--org <organization>]
Command Line Arguments for publish:
Example:
$ datavzrd publish --repo-name my-awesome-report --report-path ./output --org my-awesome-org --entry index.html
This command publishes the report located in ./output to the my-awesome-report repository of the organisation my-awesome-org on GitHub Pages, with index.html as the entry point. The repository will be created under https://my-awesome-org.github.io/my-awesome-report/ and can be accessed after GitHub pages is activated by the user. After successful publishing the user is provided with simple instructions on how to activate GitHub pages.
Note
When publishing a Snakemake report, make sure it was generated with
snakemake --report report.zip and properly unzipped afterwards. Do not use
snakemake report report.html. For details, see the Snakemake reporting documentation.
Suggest
The suggest subcommand generates a configuration file based on the provided tabular input files. The suggested configuration is written to stdout. When an LLM endpoint is passed via --llm-url, the configuration is drafted by that model instead of the built-in heuristic and validated against datavzrd before it is written.
$ datavzrd suggest --files <file_paths> --separators <separators> [--name <report_name>]
Command Line Arguments for suggest:
Example:
$ datavzrd suggest -f data1.csv -s , -f data2.tsv -s $'\t'
To let an LLM draft the configuration, point --llm-url at an OpenAI-compatible endpoint and pass a model and a prompt:
$ datavzrd suggest -f data.csv -s , --llm-url http://localhost:11434/v1 --llm-model qwen2.5:1.5b --prompt "Hide id columns, pin the sample name, viridis heatmap for p-values"
If the endpoint requires a token, set DATAVZRD_LLM_TOKEN in your environment or pass it with --llm-token.
Schema
The schema subcommand prints the JSON schema of the configuration file to stdout. It enables autocompletion and inline validation in editors that support JSON schema for YAML.
$ datavzrd schema
Example:
$ datavzrd schema > datavzrd.schema.json