INNER CODE UNIT · Python

all_tool_classes

broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:40

def all_tool_classes():
    return iter_leaf_subclasses(Tool)


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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…