我尝试使用snakemake的实用程序下载一些数据(snakemake 5.2.1):
rule down_data2:
input:
HTTP.remote("https://sourceforge.net/projects/fusioncatcher/files/data/human_v90.tar.gz.ac", keep_local=True,allow_redirects=True),
output:
"
"human_v90.tar.gz.ac",
run:
outputName = os.path.basename(input[0])
shell("mv {input} {outputName}")
我在mv comand上有问题。似乎它们保存在另一个目录中。
答案 0 :(得分:1)
URL shouldn't include protocol https
。
import os
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
HTTP = HTTPRemoteProvider()
rule down_data2:
input:
HTTP.remote("https://sourceforge.net/projects/fusioncatcher/files/data/human_v90.tar.gz.ac", keep_local=True,allow_redirects=True),
output:
"human_v90.tar.gz.ac"
run:
outputName = os.path.basename(input[0])
shell("mv {input} {outputName}")