| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.datamodel.annotations; |
| 22 |
|
|
| 23 |
|
import jalview.datamodel.Annotation; |
| 24 |
|
import jalview.structure.StructureImportSettings; |
| 25 |
|
import jalview.structure.StructureImportSettings.TFType; |
| 26 |
|
|
| |
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 6 |
Complexity Density: 0.46 |
|
| 27 |
|
public class AlphaFoldAnnotationRowBuilder extends AnnotationRowBuilder |
| 28 |
|
{ |
| 29 |
|
public static final String LABEL = "Alphafold Reliability"; |
| 30 |
|
|
| |
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 31 |
0 |
public AlphaFoldAnnotationRowBuilder()... |
| 32 |
|
{ |
| 33 |
0 |
super(LABEL); |
| 34 |
0 |
min = 0; |
| 35 |
0 |
max = 100; |
| 36 |
0 |
hasMinMax = true; |
| 37 |
0 |
this.setTFType(StructureImportSettings.TFType.PLDDT); |
| 38 |
|
} |
| 39 |
|
|
| |
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 5 |
Complexity Density: 0.62 |
|
| 40 |
0 |
@Override... |
| 41 |
|
public void processAnnotation(Annotation annotation) |
| 42 |
|
{ |
| 43 |
0 |
if (annotation.value > 90) |
| 44 |
|
{ |
| 45 |
|
|
| 46 |
0 |
annotation.colour = new java.awt.Color(0, 83, 214); |
| 47 |
|
} |
| 48 |
0 |
if (annotation.value <= 90) |
| 49 |
|
{ |
| 50 |
|
|
| 51 |
0 |
annotation.colour = new java.awt.Color(101, 203, 243); |
| 52 |
|
} |
| 53 |
0 |
if (annotation.value <= 70) |
| 54 |
|
{ |
| 55 |
|
|
| 56 |
0 |
annotation.colour = new java.awt.Color(255, 219, 19); |
| 57 |
|
} |
| 58 |
0 |
if (annotation.value < 50) |
| 59 |
|
{ |
| 60 |
0 |
annotation.colour = new java.awt.Color(255, 125, 69); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
} |