Skip to content
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

[ADAM-340] Adding the TrackedLayout trait and implementation. #341

Merged

Conversation

tdanford
Copy link
Contributor

OrderedTrackLayout is an implementation of TrackedLayout, which takes a sequence of Reference-mappable values and lays them out into tracks in a naive, order-dependent way.

ref1.overlaps(ref2)
}

def recordSorter(rec1: ADAMRecord, rec2: ADAMRecord): Boolean = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object is otherwise generic; it seems like it'd be preferable to make this method generic such that any object that can emit a reference position can be sorted.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this method doesn't handle unaligned reads. I've opened a PR (broadinstitute#19) with a failing test.

@tdanford
Copy link
Contributor Author

@fnothaft I think I've fixed your failing test, addressed your comment (above), and added some extra comments. Let me know what you think.

OrderedTrackLayout is an implementation of TrackedLayout, which takes a sequence of Reference-mappable values and lays them out into tracks in a naive, order-dependent way.
@fnothaft
Copy link
Member

Looks good here! I presume this is rebased on master?

@tdanford
Copy link
Contributor Author

Yessir, it is.

fnothaft added a commit that referenced this pull request Jul 30, 2014
[ADAM-340] Adding the TrackedLayout trait and implementation.
@fnothaft fnothaft merged commit fbb2de4 into bigdatagenomics:master Jul 30, 2014
@fnothaft
Copy link
Member

Merged! Thanks @tdanford!

@tdanford tdanford deleted the tdanford/tracked-layout branch July 31, 2014 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants