INNER CODE UNIT · Python

num_windows

cbg-ethz/V-pipe · workflow/scripts/alignmentIntervals.py:118

            num_windows = floor((end_ - (start_ + win_len - 1)) / win_shift) + 1
            offset = 2 * win_shift

            start = max(0, start - offset - 1)
            # In order to identify the region which is covered by at least
            # two windows, add to the end of the first window the
            # increment multiply by the number of windows - 2 (i.e.,
            # discarding last window). In this case assuming half-open
            # interval [start, end)
            end = min(reference_len, start_ + win_len + (num_windows - 2) * win_shift)

        return reference_name, start, end

    aux = region.split(",")
    reference_name = []
    interval = []
    for s in aux:
        ref_, start_, end_ = parse_region_aux(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…