How to use the pomoxis.pyscrap.pyscrap.basecall_file function in pomoxis

To help you get started, we’ve selected a few pomoxis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nanoporetech / pomoxis / pomoxis / apps / epi3me.py View on Github external
def basecall_file(fname, event_detect=True):
    """Peform a basecall from a file.

    :param fname: .fast5 file to basecall.
    :param event_detect: perform event detection (else use
        pre-existing events in file.

    :returns: tuple (score, basecall).
    """
    score, basecall = 0, ''
    try:
        results = pyscrap.basecall_file(fname, event_detect=event_detect)
        if results is not None:
            score, basecall = results
    except:
        pass
    return score, basecall