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

Converted VariantCallingMetrics to using mergableMetricsBase #552

Merged
merged 3 commits into from
Feb 5, 2017

Conversation

yfarjoun
Copy link
Contributor

@yfarjoun yfarjoun commented Jun 1, 2016

  • converting VariantCallingMetircs to mergable metrics
  • added tests
  • extended MergableMetricsBase so that it can deal with private and protected members of the superclass
  • cleaned up alignment/typos in FilterVcf and MergeBamAlignment (unrelated)

@nh13 you has said that you'd like to see this framework used for something other than IndependentReplicates...so, here's your chance! 😄

@ktibbett ktibbett assigned nh13 and tfenne and unassigned nh13 Jun 28, 2016
@ktibbett
Copy link
Contributor

@tfenne , @nh13 thinks that you are the one who asked to review this....

*/
public MergeableMetricBase merge(final Collection<? extends MergeableMetricBase> many) {
many.parallelStream().forEach(this::merge);
calculateDerivedFields();
Copy link
Collaborator

Choose a reason for hiding this comment

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

but the merge below does not call calculateDerivedFields! please remove.

@nh13
Copy link
Collaborator

nh13 commented Aug 17, 2016

@yfarjoun rebase onto master and I can revisit. The only comment that requires discussion is the one inside the merging of a collection (calculateDerivedFields).

@nh13 nh13 assigned yfarjoun and unassigned tfenne Aug 17, 2016
@yfarjoun yfarjoun force-pushed the yf_MakeVariantCallingMetircsUseMergableMetrics branch from f04be0b to 183e6e7 Compare November 21, 2016 01:25
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 71.119% when pulling 183e6e7 on yf_MakeVariantCallingMetircsUseMergableMetrics into f8a93c9 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 71.035% when pulling d9faa39 on yf_MakeVariantCallingMetircsUseMergableMetrics into f8a93c9 on master.

@yfarjoun
Copy link
Contributor Author

yfarjoun commented Jan 8, 2017

@nh13 do you have a few minutes to review this old PR?

Copy link
Collaborator

@nh13 nh13 left a comment

Choose a reason for hiding this comment

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

Just a few comments, merge when happy.

private static List<Field> getAllFields(Class clazz){
List<Field> fields = new ArrayList<>();
fields.addAll(Arrays.asList(clazz.getDeclaredFields()));
Class superClass = clazz.getSuperclass();
Copy link
Collaborator

Choose a reason for hiding this comment

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

finals?

long numHets, numHomVar;

public static String getFileExtension() {
return "variant_calling_detail_metrics";
}

public static void foldInto(final VariantCallingDetailMetrics target,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be ok to delete instead of deprecate right?

- added tests
- extended MergableMetricsBase so that it can deal with private and protected members of the superclass

- cleaned up alignment/typos in FilterVcf and MergeBamAlignment (unrelated)
@yfarjoun yfarjoun force-pushed the yf_MakeVariantCallingMetircsUseMergableMetrics branch from d9faa39 to 92ba5ec Compare February 5, 2017 02:57
@yfarjoun
Copy link
Contributor Author

yfarjoun commented Feb 5, 2017

This fell through the cracks. Did the changes requested, will merge after tests pass.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 73.48% when pulling 92ba5ec on yf_MakeVariantCallingMetircsUseMergableMetrics into 81b54d4 on master.

@yfarjoun
Copy link
Contributor Author

yfarjoun commented Feb 5, 2017

This fell through the cracks. Did the changes requested, will merge after tests pass.

@yfarjoun yfarjoun merged commit f25b997 into master Feb 5, 2017
@yfarjoun yfarjoun deleted the yf_MakeVariantCallingMetircsUseMergableMetrics branch February 5, 2017 04:18
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.

5 participants