jackh726 / bigtools

A high-performance BigWig and BigBed library in Rust
MIT License
70 stars 5 forks source link

Fix behaviour of names argument in bigWigAverageOverBed of pybigtools. #41

Closed ghuls closed 4 months ago

ghuls commented 4 months ago

Fix behaviour of names argument in bigWigAverageOverBed of pybigtools for True and 1+ as values passed to Name::Column() were off by one.

Before for a 4 column BED file, you would get the following error for True or 4:

Exception: Invalid name column option. Number of columns (4) is less than the value specified (5).
jackh726 commented 4 months ago

Thanks! If you can fix formatting, I can merge. Otherwise, I'll fix this weekend.