chmevalbenchmark chm-eval-kit
Version:20180222
20180222
Identifier: TL_7c0536_c5.9f
Tool
1__author__ = "Johannes Köster"
2__copyright__ = "Copyright 2020, Johannes Köster"
3__email__ = "johannes.koester@uni-due.de"
4__license__ = "MIT"
5
6import os
7from snakemake.shell import shell
8
9log = snakemake.log_fmt_shell(stdout=False, stderr=True)
10url = (
11 "https://github.com/lh3/CHM-eval/releases/"
12 "download/{tag}/CHM-evalkit-{version}.tar"
13).format(version=snakemake.params.version, tag=snakemake.params.tag)
14
15os.makedirs(snakemake.output[0])
16shell(
17 "(curl -L {url} | tar --strip-components 1 -C {snakemake.output[0]} -xf - &&"
18 "(cd {snakemake.output[0]}; chmod +x htsbox run-eval k8)) {log}"
19)
20