Skip to content

Commit c78d21e

Browse files
committed
a little more doc
1 parent c1e2249 commit c78d21e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/broadinstitute/hellbender/tools/AnalyzeSaturationMutagenesis.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,11 @@ public CodonVariationGroup( final int[] refCodonValues, final CodonVariation cod
10181018
// returns false if the presented variation cannot be added to the group
10191019
public boolean addVariation( final CodonVariation codonVariation ) {
10201020
final int codonId = codonVariation.getCodonId();
1021+
// if we're skipping a codon, start a new group (except for frameshift groups)
10211022
if ( codonId > endingCodon + 1 && !isFrameShift ) return false;
10221023
switch ( codonVariation.getVariationType() ) {
10231024
case FRAMESHIFT:
1024-
return false;
1025+
return false; // start new group for the frameshift
10251026
case INSERTION:
10261027
insCount += 1;
10271028
altCalls.append(codonTranslation.charAt(codonVariation.getCodonValue()));
@@ -1037,6 +1038,7 @@ public boolean addVariation( final CodonVariation codonVariation ) {
10371038
if ( !isEmpty() ) altCalls.append(aa);
10381039
break;
10391040
}
1041+
// synonymous codon -- start new group
10401042
return false;
10411043
}
10421044
if ( isFrameShift && isEmpty() ) startingCodon = codonId;

0 commit comments

Comments
 (0)