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

Refactor/mark buckets #2015

Closed

Conversation

jondeaton
Copy link

@jondeaton jondeaton commented Jul 13, 2018

The leftPositionAndLibrary function in markBuckets was a bit hard to understand. This PR refactors it so that it is easier to understand and also so that it uses Option(None) instead of null. Also minor documentation fix.

@@ -96,14 +94,20 @@ private[rdd] object MarkDuplicates extends Serializable with Logging {
recordGroups: RecordGroupDictionary): RDD[SingleReadBucket] = {
checkRecordGroups(recordGroups)

// Gets the library of a SingleReadBucket
def getLibrary(singleReadBucket: SingleReadBucket): Option[String] = {
Copy link
Author

Choose a reason for hiding this comment

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

It might also be better to make library a method of SingleReadBucket to replace this getLibrary function.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@heuermh
Copy link
Member

heuermh commented Jul 13, 2018

Jenkins, test this please

@heuermh
Copy link
Member

heuermh commented Jul 13, 2018

Jenkins, add to whitelist

@coveralls
Copy link

coveralls commented Jul 13, 2018

Coverage Status

Coverage increased (+0.04%) to 78.977% when pulling 357bdea on jondeaton:refactor/markBuckets into 8e8007e on bigdatagenomics:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 78.977% when pulling 357bdea on jondeaton:refactor/markBuckets into 8e8007e on bigdatagenomics:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 78.977% when pulling 357bdea on jondeaton:refactor/markBuckets into 8e8007e on bigdatagenomics:master.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/2785/
Test PASSed.

@heuermh
Copy link
Member

heuermh commented Jan 6, 2020

Closing as WontFix. Feel free to create a new PR after rebasing against git head.

@heuermh heuermh closed this Jan 6, 2020
@heuermh heuermh added this to the 0.31.0 milestone Jan 6, 2020
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.

4 participants