为 Snakemake DAG 中的每条规则指定颜色
我正在运行snakemake -n -c1 -dag |点-TSVG> dag.svg
获取DAG文件。 我想知道我是否可以以某种方式为每个节点设置配色方案。例如,在下图中,规则samtools_fixmate
与samtools_sort
和samtools_markduplicates
的颜色不同。您可以在snakemake文件中以某种方式指定节点应该是什么颜色?
我将安顿下来的解决方案。
I'm running snakemake -n -c1 --dag | dot -Tsvg > dag.svg
to get the DAG file.
I was wondering if I could somehow set the color scheme for every node. For example, in the picture below, rule samtools_fixmate
is of different color from samtools_sort
and of samtools_markduplicates
. Can you somehow specify within snakemake file what color the nodes should be?
I'll settle even for out-of-snakefile solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与此答案类似,您可以将 dag 导出到点文件中:
然后可以根据需要编辑点文件。
Similar to this answer, you can export the dag into a dot file:
The dot file can then be edited as necessary.