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

Adding rod functionality: a specialized grouping of pileup data. #21

Merged
merged 1 commit into from
Dec 9, 2013

Conversation

fnothaft
Copy link
Member

@fnothaft fnothaft commented Dec 7, 2013

Rods group all pileup data at a specific point on the locus — this commit provides a clean container for this data, as well as methods for performing conversion from pileups to rods.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/76/

@fnothaft
Copy link
Member Author

fnothaft commented Dec 7, 2013

I'm changing something in the tests — please don't merge yet.

@fnothaft
Copy link
Member Author

fnothaft commented Dec 8, 2013

OK — this is good to roll now.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/78/

@@ -26,7 +26,7 @@ import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD

object PileupAggregator extends AdamCommandCompanion {
val commandName: String = "aggregate_pileups"
val commandName: String = "aggregatePileups"
Copy link
Member

Choose a reason for hiding this comment

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

Command-line names with capitalization should be avoided. Maybe use "paggregate" or "pagg" to make it easier to type?

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/79/

// all bases must be at the same position
require(pileups.forall(_.getPosition.toLong == position))

lazy val singleSample: Boolean = pileups.map(_.getRecordGroupSample).distinct.length == 1
Copy link
Member

Choose a reason for hiding this comment

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

boolean values/method usually start with "is", e.g. isSingleSample. Having singleSample alone might imply to another developer that it's a way to get a singleSample.

Copy link
Member

Choose a reason for hiding this comment

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

I just noticed you have 'isSingleSample' below. Any reason to not just rename the val and drop the def?

@massie
Copy link
Member

massie commented Dec 9, 2013

Other than the small Boolean nit above, I think this is ready to ship. Thanks, Frank!

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

One or more automated tests failed
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/80/

@fnothaft
Copy link
Member Author

fnothaft commented Dec 9, 2013

The boolean nit is fixed now.

@fnothaft
Copy link
Member Author

fnothaft commented Dec 9, 2013

Jenkins, test this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/81/

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM/82/

fnothaft added a commit that referenced this pull request Dec 9, 2013
Adding rod functionality: a specialized grouping of pileup data.
@fnothaft fnothaft merged commit 1b11ff8 into master Dec 9, 2013
@fnothaft fnothaft deleted the pileup-rods branch December 9, 2013 23:25
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.

3 participants