-
Notifications
You must be signed in to change notification settings - Fork 308
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
Make AlignmentRecordConverter public so that it can be used from other projects #1157
Make AlignmentRecordConverter public so that it can be used from other projects #1157
Conversation
Test PASSed. |
Hi @tomwhite! Thanks for sending along the patch! It'd be my preference to keep the |
I believe early on the formats schema and autogenerated classes were meant as a point of collaboration but now I see them more as an internal implementation detail. Thus I'm in agreement that public APIs for conversion at the level of |
Also, I think it's more useful to have the conversion utility at the record level, rather than the RDD level, since then it can be used outside Spark. Also, there are some issues to do with how headers are transmitted that can be handled differently by the downstream client. |
I would strongly disagree here; I still very much so see the schemas as an interchange format.
TBH, this was just an oversight. Both of them were meant to be moved to private when I went through and cleaned up this package a bit ago.
I think these are two reasonable points. I am OK with merging this PR to resolve them. That being said, what I might want to do to follow up is to:
I'm going to leave this open for another 24hrs, and unless there is a -1 I will merge and create a ticket for my two bullet points. |
@fnothaft please do create a follow up issue as you describe above.
If that were the case, it would be preferable to me to have the conversion stuff written in Java instead of Scala and be a library external to ADAM. It appears though that there are different ideas of what our bdg-formats are for. :) |
Thanks @fnothaft! I agree with your suggested cleanups. |
AlignmentRecordConverter used to be a public class, but was made private in 9764b2c. Unfortunately, this causes a problem for GATK, which uses AlignmentRecordConverter to read ADAM formatted files. This PR reinstates public visibility. There are other converters in the same package that are private that could be changed back, but I haven't done that in this PR.