Skip to content

Support for rendering DAG with mermaid js #3393

@bayraktar1

Description

@bayraktar1

Is your feature request related to a problem? Please describe.
The current output of --dag and --rulegraph is incompatible with mermaid JS diagram rendering.

Describe the solution you'd like
An option to have the --dag or --rulegraph output in mermaid JS formatting.

This format is widely supported across various platforms, including Jupyter notebooks, note-taking apps like Obsidian and Notion, and platforms such as GitHub and GitLab. See the integration section of Mermaid JS for more details.

Describe alternatives you've considered
Alternatives are to keep using snakemake --forceall --dag | dot -Tpdf > dag.pdf But this lacks the wide integration support of mermaid diagrams.

Additional context
Example of mermaid JS diagramming:

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions