blachlylab / dhtslib

D bindings and OOP wrappers for htslib
MIT License
7 stars 1 forks source link

Rework coordinate shortcuts #81

Closed charlesgregory closed 3 years ago

charlesgregory commented 3 years ago

Need to have shortcuts for types that are separate from the shortcuts for getting a coordinate type from integer coordinates. i.e

ZBHO coords;
coords =  toZBHO(0, 1);

OneBasedClosed coords2;
coords2 =  toOneBasedClosed(0, 1);

Bigger question is what to do about ChromCoordinates. Maybe this:

ChromZBHO coords;
coords =  toChromZBHO(0, 1);

Thoughts @jblachly ?

jblachly commented 3 years ago

I don't understand -- what do the to* functions assume is the implicit coordinate scheme of the integer inputs?

charlesgregory commented 3 years ago

Yes though the naming is arbitrary it could be ZBHOfromInt or something else.