You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.