INNER CODE UNIT · Python
get_tool_by_name
broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:44
def get_tool_by_name(name):
if name not in installed_tools:
raise NotImplementedError
return installed_tools[name]
def skip_install_test(condition=None):
'''Decorate the Tool class to skip the installation test.'''
def decorator(klass):
if callable(condition) and not condition():
return klass
klass._skiptest = True
return klass
return decorator