report - 如何强制通配符进入 --report 标题
问题描述
我正在使用snakemake --report
(v5.9.1) 为管道/结果创建 .html 报告。但是我不能在caption
参数中使用通配符report()
。
这是一个没有使用通配符的简短示例caption
rule all:
input: expand("doit.{role}", role=["founder","offspring"])
rule doit:
output: report(touch("doit.{role}"),caption="doit.rst")
run: print(output[0])
现在,我想要/需要的是founder
and的单独标题offspring
。我试图简单地将{role}
通配符添加到caption
:
output: report(touch("doit.{role}"),caption="doit.{role}.rst")
但这给出了一个错误
FileNotFoundError: [Errno 2] No such file or directory: 'sandBox/doit.{role}.rst'
但仅在通过运行生成 hmtl 文件时snakemake --report
。(运行管道就可以了)。
解析时似乎output
没有评估/替换通配符。caption
我正在使用标题功能来显示简短的结果,并在 .html 报告中对结果进行排序。(与Snakemake 报告相关:如何按管道顺序显示结果)。
任何人都可以为我正在尝试做的事情提出解决方法或更好的模式吗?
解决方案
推荐阅读
- javascript - 需要使 Tab 和 Accordion 插件可访问/屏幕阅读器兼容
- javascript - 初始化后如何更改文本区域的值?
- c++ - 模板中右值的类型推导
- javascript - 使用 web-sys 而不是普通的旧 JavaScript 是否有性能提升?
- flutter - 与原生 iOS 异常不一致的 Flutter 行为
- go - 为什么不能在 Go 中使用 add 运算符进行元组赋值?
- javascript - 使用 node.js 和 JavaScript 从 HTML 简单表单插入 INTO MySQL 表
- http - ESP8266 客户端连接失败
- c# - 根据编译器标志/目标框架安装 nuget 包
- node.js - 试图让一个无头 WordPress 在纱线启动命令上进行热重载