INNER CODE UNIT · Python

index_col_1

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

    index_col_1 = index_col + suffixes[0]
    index_col_2 = index_col + suffixes[1]
    if return_index or keep_order:
        df.index.name = index_col

    # Get columns for pairing
    ck, sk, ek = _get_default_colnames() if cols is None else cols

    # Sort intervals by genomic coordinates
    df = df.sort_values([ck, sk, ek]).reset_index(drop=False)

    if min_sep >= max_sep:
        raise ValueError("min_sep must be less than max_sep")
    if min_sep < 0:
        raise ValueError("min_sep must be >=0")

    if min_intervening is None:
        min_intervening = 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…