我在用snakemake创建报告时出错(5.30.1)。管道运行良好,错误由--report参数引发:
运行管道时使用的命令行:
snakemake -s /mnt/beegfs/pipelines/rna-count-salmon/Snakefile --profile /mnt/beegfs/pipelines/rna-count-salmon/.igr/profile/slurm --cache salmon_index tr2gene在创建报表时使用的命令行:
snakemake -s /mnt/beegfs/pipelines/rna-count-salmon/Snakefile --profile /mnt/beegfs/pipelines/rna-count-salmon/.igr/profile/slurm --report Quantification_Report.html --cache salmon_index tr2gene我只有在报告时才有错误
Traceback (most recent call last):
File "/mnt/beegfs/userdata/t_dayris/anaconda3/envs/rna-count-salmon/lib/python3.8/site-packages/snakemake/__init__.py", line 687, in snakemake
success = workflow.execute(
File "/mnt/beegfs/userdata/t_dayris/anaconda3/envs/rna-count-salmon/lib/python3.8/site-packages/snakemake/workflow.py", line 820, in execute
auto_report(dag, report, stylesheet=report_stylesheet)
File "/mnt/beegfs/userdata/t_dayris/anaconda3/envs/rna-count-salmon/lib/python3.8/site-packages/snakemake/report/__init__.py", line 722, in auto_report
rec.starttime = min(rec.starttime, meta["starttime"])
TypeError: '<' not supported between instances of 'NoneType' and 'int'如果我在snakemake管道的存储库中运行管道,则不会引发错误。我在过去使用过这个概要文件(没有任何错误),并且用snakemake版本5.27.0和以前的版本创建了没有任何错误的报告。
如果我删除工作目录中的.snakemake存储库,那么错误就解决了。如果有人能指出我做错了什么,或者给我建议帮助我调查错误,那就太好了。
提前感谢
编辑:禁用--cache选项没有修复问题,cf。德米特里·库兹米诺夫评述
Edit2:我100%肯定,错误来自存储库.snakemake/metadata。我现在正试图找出这个文件中的问题。
发布于 2020-12-16 08:42:28
错误现在已经知道并修复了:https://github.com/snakemake/snakemake/pull/805
https://stackoverflow.com/questions/65216515
复制相似问题