How to use the ncls.src.ncls32.NCLS32 function in ncls

To help you get started, we’ve selected a few ncls 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 biocore-ntnu / ncls / ncls / __init__.py View on Github external
def NCLS(starts, ends, ids):

    if starts.dtype == np.int64:
        return NCLS64(starts, ends, ids)
    elif starts.dtype == np.int32:
        return NCLS32(starts, ends, ids)
    else:
        raise Exception("Starts/Ends not int64 or int32: " + str(starts.dtype))

ncls

A fast interval tree-like implementation in C, wrapped for the Python ecosystem.

BSD-3-Clause
Latest version published 1 year ago

Package Health Score

47 / 100
Full package analysis

Similar packages