Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onsuccess report #104

Open
gipert opened this issue Feb 21, 2025 · 1 comment
Open

onsuccess report #104

gipert opened this issue Feb 21, 2025 · 1 comment

Comments

@gipert
Copy link
Member

gipert commented Feb 21, 2025

To be added. Pasting here old code

    from snakemake.report import auto_report
    rep_dir = f"{log_path(config)}/report-{datetime.strftime(datetime.utcnow(), '%Y%m%dT%H%M%SZ')}"
    Path(rep_dir).mkdir(parents=True, exist_ok=True)
    # auto_report(workflow.persistence.dag, f"{rep_dir}/report.html")
    auto_report(workflow.persistence.dag, report_plugin, report_settings)

    with open(os.path.join(rep_dir, "dag.txt"), "w") as f:
        f.writelines(str(workflow.persistence.dag))
        # shell(f"cat {rep_dir}/dag.txt | dot -Tpdf > {rep_dir}/dag.pdf")

    with open(f"{rep_dir}/rg.txt", "w") as f:
        f.writelines(str(workflow.persistence.dag.rule_dot()))
        # shell(f"cat {rep_dir}/rg.txt | dot -Tpdf > {rep_dir}/rg.pdf")
@ggmarshall
Copy link
Collaborator

This just outputs the full dag and rule graph in dot format, want to add a pdf generation with a summary this is generated by the --report option in snakemake, but it needs a file input and we also might want to add extras e.g. warnings/errors encountered in processing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants