INNER CODE UNIT · Python

pair_by_distance

open2c/bioframe · src/bioframe/extras.py:389

def pair_by_distance(
    df,
    min_sep,
    max_sep,
    min_intervening=None,
    max_intervening=None,
    relative_to="midpoints",
    cols=None,
    return_index=False,
    keep_order=False,
    suffixes=("_1", "_2"),
):
    """
    From a dataframe of genomic intervals, find all unique pairs of intervals
    that are between ``min_sep`` and ``max_sep`` bp separated from each other.

    Parameters
    ----------

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…