Skip to content

windowing: weird(?) behavior with the last window #363

Open
@mufernando

Description

@mufernando

In the example below, we have four sites and I ask scikit-allel to output windowed diversity with windows of length 1.

Screen Shot 2021-06-25 at 15 30 33

Note, however, that I only get 3 values in the diversity array, and the last window ends up including sites 3 and 4.

This seems a bit odd to me, so I was trying to understand why scikit-allel handles it like this. Just to spell it out: I find it odd that the windows end up being 1,1], [2,2] and [3,4] instead of [1,1], [2,2], [3,3], [4,4].

cc @petrelharp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions