| 1 |
|
package jalview.datamodel; |
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
@author |
| 6 |
|
|
| 7 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (51) |
Complexity: 23 |
Complexity Density: 0.88 |
|
| 8 |
|
public class HMMNode |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
double[] matchEmissions; |
| 12 |
|
|
| 13 |
|
|
| 14 |
|
double[] insertEmissions; |
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
double[] stateTransitions; |
| 19 |
|
|
| 20 |
|
|
| 21 |
|
int residueNumber; |
| 22 |
|
char consensusResidue; |
| 23 |
|
char referenceAnnotation; |
| 24 |
|
char maskValue; |
| 25 |
|
char consensusStructure; |
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 30 |
2651 |
public HMMNode()... |
| 31 |
|
{ |
| 32 |
|
} |
| 33 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
1315 |
public double[] getMatchEmissions()... |
| 35 |
|
{ |
| 36 |
1315 |
return matchEmissions; |
| 37 |
|
} |
| 38 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
17840 |
double getMatchEmission(int symbolIndex)... |
| 40 |
|
{ |
| 41 |
17840 |
return matchEmissions[symbolIndex]; |
| 42 |
|
} |
| 43 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
2647 |
public void setMatchEmissions(double[] matches)... |
| 45 |
|
{ |
| 46 |
2647 |
this.matchEmissions = matches; |
| 47 |
|
} |
| 48 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 49 |
1315 |
public double[] getInsertEmissions()... |
| 50 |
|
{ |
| 51 |
1315 |
return insertEmissions; |
| 52 |
|
} |
| 53 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
16 |
double getInsertEmission(int symbolIndex)... |
| 55 |
|
{ |
| 56 |
16 |
return insertEmissions[symbolIndex]; |
| 57 |
|
} |
| 58 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
2648 |
public void setInsertEmissions(double[] insertEmissionsL)... |
| 60 |
|
{ |
| 61 |
2648 |
this.insertEmissions = insertEmissionsL; |
| 62 |
|
} |
| 63 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 64 |
1315 |
public double[] getStateTransitions()... |
| 65 |
|
{ |
| 66 |
1315 |
return stateTransitions; |
| 67 |
|
} |
| 68 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 69 |
18 |
double getStateTransition(int transition)... |
| 70 |
|
{ |
| 71 |
18 |
return stateTransitions[transition]; |
| 72 |
|
} |
| 73 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 74 |
2648 |
public void setStateTransitions(double[] stateTransitionsM)... |
| 75 |
|
{ |
| 76 |
2648 |
this.stateTransitions = stateTransitionsM; |
| 77 |
|
} |
| 78 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 79 |
3971 |
int getResidueNumber()... |
| 80 |
|
{ |
| 81 |
3971 |
return residueNumber; |
| 82 |
|
} |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 83 |
5263 |
public void setResidueNumber(int resNo)... |
| 84 |
|
{ |
| 85 |
5263 |
this.residueNumber = resNo; |
| 86 |
|
} |
| 87 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
3945 |
char getConsensusResidue()... |
| 89 |
|
{ |
| 90 |
3945 |
return consensusResidue; |
| 91 |
|
} |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 92 |
2634 |
public void setConsensusResidue(char consensusResidue)... |
| 93 |
|
{ |
| 94 |
2634 |
this.consensusResidue = consensusResidue; |
| 95 |
|
} |
| 96 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 97 |
1311 |
char getReferenceAnnotation()... |
| 98 |
|
{ |
| 99 |
1311 |
return referenceAnnotation; |
| 100 |
|
} |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 101 |
2634 |
public void setReferenceAnnotation(char referenceAnnotation)... |
| 102 |
|
{ |
| 103 |
2634 |
this.referenceAnnotation = referenceAnnotation; |
| 104 |
|
} |
| 105 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 106 |
533 |
char getMaskValue()... |
| 107 |
|
{ |
| 108 |
533 |
return maskValue; |
| 109 |
|
} |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 110 |
2374 |
public void setMaskValue(char maskValue)... |
| 111 |
|
{ |
| 112 |
2374 |
this.maskValue = maskValue; |
| 113 |
|
} |
| 114 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 115 |
533 |
char getConsensusStructure()... |
| 116 |
|
{ |
| 117 |
533 |
return consensusStructure; |
| 118 |
|
} |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 119 |
2374 |
public void setConsensusStructure(char consensusStructure)... |
| 120 |
|
{ |
| 121 |
2374 |
this.consensusStructure = consensusStructure; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
@return |
| 130 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
| 131 |
4 |
int getMaxMatchEmissionIndex()... |
| 132 |
|
{ |
| 133 |
4 |
int maxIndex = 0; |
| 134 |
4 |
double max = 0D; |
| 135 |
|
|
| 136 |
50 |
for (int i = 0; i < matchEmissions.length; i++) |
| 137 |
|
{ |
| 138 |
46 |
if (matchEmissions[i] > max) |
| 139 |
|
{ |
| 140 |
9 |
max = matchEmissions[i]; |
| 141 |
9 |
maxIndex = i; |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
4 |
return maxIndex; |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
|