Metadata-Version: 2.4
Name: snakemake-report-plugin-nanopub
Version: 0.5.1
Summary: Reporter plugin for Snakemake using nanopub-py to create workflow metadata nanopubs
Project-URL: Repository, https://github.com/snakemake/snakemake-report-plugin-nanopub
Project-URL: Documentation, https://snakemake.github.io/snakemake-plugin-catalog/plugins/report/nanopub.html
Author-email: Christian Meesters <meesters@csc.uni-frankfurt.de>
License: MIT
License-File: LICENSE
Keywords: nanopublication,plugin,reporter,snakemake
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: <4,>=3.11
Requires-Dist: nanopub>=2.2.0
Requires-Dist: pyyaml<7,>=6.0.3
Requires-Dist: snakemake-interface-common<2,>=1.23.0
Requires-Dist: snakemake-interface-report-plugins<3,>=1.1.0
Description-Content-Type: text/markdown

[![Snakemake](https://img.shields.io/badge/snakemake-≥9.1.3-brightgreen.svg)](https://snakemake.github.io)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)

**Please note**: This plugin is work in progress and NOT ready to use.

**Its intention**:

- users will be enabled to automatically create a [nanopub](https://nanopub.net/) using a workflow's metadata
- this nanopub can subsequently be referenced in publications and thereby covering __all__ metadata necessary to scrutinize an analysis (all too often crucial data are missing from publications)

## CLI: plot nanopub knowledge graph

After installation, run:

```bash
plot-nanopub-knowledge-graph \
	--dataset-nanopub-id <dataset_nanopub_url> \
	--workflow-nanopub-id <workflow_nanopub_url> \
	--workflow-configuration-id <workflow_configuration_nanopub_url> \
	--report-nanopub-id <report_nanopub_url> \
	-o graph.png
```

This generates a Graphviz plot with four rounded boxes (`Dataset`, `Workflow`, `Workflow Configuration`, `Workflow Report`) and arrows labeled `used by`, `used this configuration`, `produces`, and `based upon`.

Optional settings:

- `--line-color "dark brick red"` (default) for node border and arrow color
- `--format svg|png|pdf` to override output format
- `--verbose` to print debug logs for nanopub description extraction
- `--text-width 60` to control line wrapping width in box text

When the output format resolves to `svg` (via `--format svg` or an `.svg` output
filename), Graphviz is invoked with `svg:cairo` so text is embedded as vector
outlines. This avoids downstream font substitution/reflow issues during JOSS
LuaLaTeX typesetting.

Default output format is `png`.
