Skip to content

Methods that take a position have unexpected behaviour for large positions #52

@abowden1989

Description

@abowden1989

Methods that take a position (pos) as an argument exhibit unexpected behaviour if the position is too large to be supported by the variantkey format (i.e. if the position does not fit in the available 28 bits). In this case, the position can end up being bitshifted into the bits reserved for the encoding of the chromosome.

The methods in question are encode_variantkey and variantkey_range.

For example, if encode_variantkey is called with chrom=2 and pos=2^28, then a variantkey on chromosome 3 will be returned as 1 bit from the position has been bitshifted into the least significant bit encoding the chromosome, which was previously a 0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions