-
Notifications
You must be signed in to change notification settings - Fork 594
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
add column for std nomenclature #6043
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6043 +/- ##
==========================================
Coverage ? 44.078%
Complexity ? 20088
==========================================
Files ? 2011
Lines ? 151051
Branches ? 16160
==========================================
Hits ? 66580
Misses ? 79486
Partials ? 4985
|
9aa34a7
to
ad7beff
Compare
fixed unit test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some confusions which most likely is due to my lack of knowledge.
Also, for the failed unit test earlier, do you think a small test on that (newly added "filter") is appropriate?
src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
private static boolean isSynonymous( final CodonVariation variation, final int[] refCodonValues ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit confused (totally possible due to my lack of knowledge of biology): synonymous to what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SNVs in coding regions are either synonymous (they don't change the amino acid incorporated into the protein), missense (the base change changes the AA), or nonsense (the base change creates a stop code that truncates the protein).
I'll add a comment that includes the words "silent mutation".
public CodonVariationGroup( final int[] refCodonValues, final CodonVariation codonVariation ) { | ||
this.refCodonValues = refCodonValues; | ||
altCalls = new StringBuilder(); | ||
switch ( codonVariation.getVariationType() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these count values, I think it is easier to understand if they are assigned value 1 in this ctor, instead of adding 1, unless I'm misunderstanding something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. That would be clearer.
src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java
Show resolved
Hide resolved
public boolean isEmpty() { return subCount + insCount + delCount == 0; } | ||
|
||
// translate the group into standard nomenclature | ||
@Override public String toString() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may I suggest a different name for this method?
tostring()
to me is almost always for debugging.
This method is clearly doing very important tasks.
What about toStandardNomanclature()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review, Steve. I believe your comments have been addressed.
src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
private static boolean isSynonymous( final CodonVariation variation, final int[] refCodonValues ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SNVs in coding regions are either synonymous (they don't change the amino acid incorporated into the protein), missense (the base change changes the AA), or nonsense (the base change creates a stop code that truncates the protein).
I'll add a comment that includes the words "silent mutation".
public CodonVariationGroup( final int[] refCodonValues, final CodonVariation codonVariation ) { | ||
this.refCodonValues = refCodonValues; | ||
altCalls = new StringBuilder(); | ||
switch ( codonVariation.getVariationType() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. That would be clearer.
src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java
Show resolved
Hide resolved
c78d21e
to
9d8b445
Compare
No description provided.