open2c / pairtools

Extract 3D contacts (.pairs) from sequencing alignments
MIT License
104 stars 32 forks source link

Extension dtypes (e.g. pd.Int64) break .eval() and .query() #143

Closed Phlya closed 2 years ago

Phlya commented 2 years ago

See https://github.com/pandas-dev/pandas/issues/29618

This breaks scaling due to https://github.com/open2c/pairtools/blob/bc0b74bcaa521cac232ff8a4f759234f94f92caa/pairtools/lib/scaling.py#L119 since regions (as an aside, should be renamed to view) have pd.Int when created using the typical bioframe pattern!

Phlya commented 2 years ago

The easy solution is to just swap out .query() for simple indexing...