dataflow-java icon indicating copy to clipboard operation
dataflow-java copied to clipboard

Move makeSAMRecord (from googlegenomics/gatk-tools-java) to ReadConverter

Open davidadamsphd opened this issue 10 years ago • 5 comments

ReadConverter.makeRead takes a SamRecord and produces a model read. I think the reverse process should also live in this file (or at least near this file in this repo).

I'll do the PR if there is agreement on this change. (This change is a request from the GATK team at the Broad)

davidadamsphd avatar Jun 24 '15 20:06 davidadamsphd

@davidadamsphd If this is reusable code for both dataflow-java and gatk-tools-java, consider placing it in utils-java instead. I'm not familiar with the details though. @iliat What do you think?

deflaux avatar Jun 25 '15 22:06 deflaux

There also seems to be some duplication between utils-java and ReadConverter as well. Below is basically the same code duplicated in both places:

ReadConverter.java from dataflow-java

ReadUtils.java in utils-java

It might help to have them in one place as Nicole suggested.

Have a great weekend everyone! Paul

pgrosu avatar Jun 27 '15 16:06 pgrosu

ping @iliat. @pgrosu, I'm happy to also move those too. @deflaux, what do you think?

davidadamsphd avatar Jun 30 '15 23:06 davidadamsphd

sounds great! Its always joyful to delete obsolete or redundant code :-)

deflaux avatar Jul 01 '15 00:07 deflaux

@davidadamsphd Less is more ;)

Thanks, ~p

pgrosu avatar Jul 01 '15 12:07 pgrosu