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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (23) |
Complexity: 6 |
Complexity Density: 0.46 |
|
27 |
|
public class AlphaFoldAnnotationRowBuilder extends AnnotationRowBuilder |
28 |
|
{ |
29 |
|
public static final String LABEL = "Alphafold Reliability"; |
30 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
31 |
6 |
public AlphaFoldAnnotationRowBuilder()... |
32 |
|
{ |
33 |
6 |
super(LABEL); |
34 |
6 |
min = 0; |
35 |
6 |
max = 100; |
36 |
6 |
hasMinMax = true; |
37 |
6 |
this.setTFType(StructureImportSettings.TFType.PLDDT); |
38 |
|
} |
39 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (16) |
Complexity: 5 |
Complexity Density: 0.62 |
|
40 |
882 |
@Override... |
41 |
|
public void processAnnotation(Annotation annotation) |
42 |
|
{ |
43 |
882 |
if (annotation.value > 90) |
44 |
|
{ |
45 |
|
|
46 |
570 |
annotation.colour = new java.awt.Color(0, 83, 214); |
47 |
|
} |
48 |
882 |
if (annotation.value <= 90) |
49 |
|
{ |
50 |
|
|
51 |
312 |
annotation.colour = new java.awt.Color(101, 203, 243); |
52 |
|
} |
53 |
882 |
if (annotation.value <= 70) |
54 |
|
{ |
55 |
|
|
56 |
276 |
annotation.colour = new java.awt.Color(255, 219, 19); |
57 |
|
} |
58 |
882 |
if (annotation.value < 50) |
59 |
|
{ |
60 |
24 |
annotation.colour = new java.awt.Color(255, 125, 69); |
61 |
|
} |
62 |
|
} |
63 |
|
} |