{"library":"ncls","title":"Nested Containment Lists (NCLS)","description":"A fast interval tree-like implementation in C, wrapped for the Python ecosystem. It provides data structures for nested interval containment queries (e.g., finding all intervals containing a point or overlapping a range). Version 0.0.70 is current; releases are infrequent and versioned 0.0.x.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install ncls"],"cli":null},"imports":["from ncls import NCLS"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from ncls import NCLS\nimport numpy as np\n\nstarts = np.array([10, 20, 30])\nends = np.array([15, 25, 35])\nids = np.array([1, 2, 3])\n\nncls = NCLS(starts, ends, ids)\n\n# Find intervals overlapping [12, 22]\noverlap_indices = ncls.find_overlap(12, 22)\nprint(overlap_indices)","lang":"python","description":"Create an NCLS object from numpy arrays and query overlap with a range.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}