-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
same signature for Chunks() csi and tabix #44
Comments
I think this is reasonable, but I'm reluctant to keep changing API. If we can sort out what changes need to be made then do them all at once, followed by a stability guarantee, then I'm OK with it. The Record type would probably want to be in a common package, but I don't see where. Where would you propose it go? One possibility is to uninternalise internal as index and place it there. |
seems a shame to rename internal just to expose a single interface. But, assuming you dont want to import tabix into csi, I dont see a better alternative. |
I guess it could go in bgzf |
I thought about bgzf and it's not the right level of abstraction. Are there any other API changes you'd like to see? |
Not that I've noticed. |
I try to avoid thinking about CRAM. Looking at the signature of tabix and csi Chunks methods, they cannot be merged. One takes an RID integer and the other takes a string. The csi Chunks method could be altered to take a csi.Record, but I don't really see the benefit in that. Can you explain to me what you want out of this? |
It seems to me that the change should be in tabix. bam and csi take ref, beg, end, while tabix takes an interface that can give these values. Having it take this interface value in hindsight is odd. |
I was thinking if I had
then I could support both tabix and csi with little code change after I had the index read in. I'm fine with a change to tabix instead, I just figured a change to csi would affect less external code. |
having an external library support both csi and tabix would be simpler if they both had the same signature for
Chunks()
would you consider changing CSI to signature ofto match tabix?
The text was updated successfully, but these errors were encountered: