コード例 #1
0
ファイル: alignment.py プロジェクト: bioreps/ABruijn
def check_binaries():
    if not which(MINIMAP_BIN):
        raise AlignmentException("Minimap2 is not installed")
    if not which(GRAPHMAP_BIN):
        raise AlignmentException("GraphMap is not installed")
    if not which("sort"):
        raise AlignmentException("UNIX sort utility is not available")
コード例 #2
0
ファイル: polish.py プロジェクト: biolinyu/ABruijn
def check_binaries():
    if not which(POLISH_BIN):
        raise PolishException("polishing binary was not found. "
                              "Did you run 'make'?")
    try:
        devnull = open(os.devnull, "w")
        subprocess.check_call([POLISH_BIN, "-h"], stderr=devnull)
    except subprocess.CalledProcessError as e:
        raise PolishException(
            "Some error inside native {0} module: {1}".format(POLISH_BIN, e))
コード例 #3
0
ファイル: assemble.py プロジェクト: druvus/ABruijn
def check_binaries():
    if not which(ASSEMBLE_BIN):
        raise AssembleException("Assemble binary was not found. "
                                "Did you run 'make'?")
    try:
        devnull = open(os.devnull, "w")
        subprocess.check_call([ASSEMBLE_BIN, "-h"], stderr=devnull)
    except subprocess.CalledProcessError as e:
        raise AssembleException(
            "Some error inside native {0} module: {1}".format(ASSEMBLE_BIN, e))
コード例 #4
0
ファイル: assemble.py プロジェクト: bioreps/ABruijn
def check_binaries():
    if not which(ASSEMBLE_BIN):
        raise AssembleException("Assemble binary was not found. "
                                "Did you run 'make'?")
    try:
        devnull = open(os.devnull, "w")
        subprocess.check_call([ASSEMBLE_BIN, "-h"], stderr=devnull)
    except (subprocess.CalledProcessError, OSError) as e:
        if e.returncode == -9:
            logger.error("Looks like the system ran out of memory")
        raise AssembleException(str(e))
コード例 #5
0
ファイル: alignment.py プロジェクト: druvus/ABruijn
def check_binaries():
    if not which(BLASR_BIN):
        raise AlignmentException("BLASR is not installed")
コード例 #6
0
ファイル: alignment.py プロジェクト: SDquest/ABruijn
def check_binaries():
    if not which(BLASR_BIN):
        raise AlignmentException("BLASR is not installed")
    if not which("sort"):
        raise AlignmentException("UNIX sort utility is not available")