Skip to content

Commit

Permalink
add conda package for tbl2asn (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Feb 23, 2017
1 parent 40b7cd3 commit 47ee2b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/tbl2asn.py
Expand Up @@ -13,6 +13,8 @@
import subprocess
import gzip

TOOL_NAME = "tbl2asn"
TOOL_VERSION = "25.3"
TOOL_URL = 'ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn/{os}.tbl2asn.gz'

log = logging.getLogger(__name__)
Expand All @@ -22,7 +24,9 @@ class Tbl2AsnTool(tools.Tool):

def __init__(self, install_methods=None):
if install_methods is None:
install_methods = [DownloadGzipBinary(TOOL_URL.format(os=get_bintype()), 'tbl2asn')]
install_methods = []
install_methods.append(tools.CondaPackage(TOOL_NAME, version=TOOL_VERSION))
install_methods.append(DownloadGzipBinary(TOOL_URL.format(os=get_bintype()), 'tbl2asn'))
tools.Tool.__init__(self, install_methods=install_methods)

def version(self):
Expand Down

0 comments on commit 47ee2b2

Please sign in to comment.