【发布时间】:2016-06-29 13:04:21
【问题描述】:
如果需要,文件每 4 小时更新一次新信息 - 即是否已针对该特定文件处理任何新信息(文件对应于人)。
我正在运行此命令将我的 .stp 文件(每 4 小时更新一次)转换为 .xml 文件。
rule convert_waveform_stp:
input: '/data01/stpfiles/{file}.Stp'
output: '/data01/workspace/bm_data/xmlfiles/{file}.xml'
shell:
'''
mono /data01/workspace/bm_software/convert.exe {input} -o {output}
'''
我的脚本在 Snakemake(基于 python)中,但我正在通过 shell 命令运行 convert.exe。
我在已经使用 convert.exe 处理过的文件上出现错误。它们被convert.exe 保存为写保护,并且没有选项可以在可执行文件本身中绕过它。
错误信息:
ProtectedOutputException in line 14 of /home/Snakefile:
Write-protected output files for rule convert_waveform_stp:
/data01/workspace/bm_data/xmlfiles/PID_1234567.xml
我仍然希望它们受到写保护,但也希望能够根据需要对其进行更新。
我可以在我的 shell 命令中添加一些东西来覆盖写保护文件吗?
【问题讨论】:
-
你明白写保护是什么意思吗?
-
是的。我知道这并不是最好的设置。关于如何解决这个问题的任何建议?
-
去掉写保护以后再放回去。
-
如何在我的 shell 命令中删除它?谢谢!
标签: python linux bash snakemake