1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.util; |
22 |
|
|
23 |
|
import java.awt.Color; |
24 |
|
import java.util.HashMap; |
25 |
|
import java.util.Map; |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (17) |
Complexity: 3 |
Complexity Density: 0.21 |
|
30 |
|
public class Constants |
31 |
|
{ |
32 |
|
|
33 |
|
|
34 |
|
public static final char HELIX = 'H'; |
35 |
|
|
36 |
|
public static final char SHEET = 'E'; |
37 |
|
|
38 |
|
public static final char COIL = 'C'; |
39 |
|
|
40 |
|
|
41 |
|
public static final String SS_ANNOTATION_LABEL = "Secondary Structure"; |
42 |
|
|
43 |
|
|
44 |
|
public static final String SS_ANNOTATION_FROM_JPRED_LABEL = "jnetpred"; |
45 |
|
|
46 |
|
public static final Map<String, String> SECONDARY_STRUCTURE_LABELS = new HashMap<>(); |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
47 |
50 |
static... |
48 |
|
{ |
49 |
50 |
SECONDARY_STRUCTURE_LABELS.put(SS_ANNOTATION_LABEL, "3D Structures"); |
50 |
50 |
SECONDARY_STRUCTURE_LABELS.put(SS_ANNOTATION_FROM_JPRED_LABEL, "JPred"); |
51 |
|
|
52 |
|
} |
53 |
|
|
54 |
|
public static final String SS_PROVIDER_PROPERTY = "SS_PROVIDER"; |
55 |
|
|
56 |
|
|
57 |
|
public static final String SS_ALL_PROVIDERS = "All"; |
58 |
|
|
59 |
|
public static final String SS_NONE_PROVIDER = "None"; |
60 |
|
|
61 |
|
|
62 |
|
public static final String SECONDARY_STRUCTURE_CONSENSUS_LABEL = "Secondary Structure Consensus"; |
63 |
|
|
64 |
|
|
65 |
|
public static final Map<String, String> STRUCTURE_PROVIDERS = new HashMap<>(); |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
67 |
50 |
static {... |
68 |
50 |
STRUCTURE_PROVIDERS.put("None", "No Secondary Structure"); |
69 |
50 |
STRUCTURE_PROVIDERS.put("AF", "AlphaFold DB"); |
70 |
50 |
STRUCTURE_PROVIDERS.put("SM", "SWISS-MODEL"); |
71 |
50 |
STRUCTURE_PROVIDERS.put("PDB", "PDB"); |
72 |
50 |
STRUCTURE_PROVIDERS.put("JP", "JPred"); |
73 |
50 |
STRUCTURE_PROVIDERS.put("AFill", "AlphaFill"); |
74 |
|
} |
75 |
|
|
76 |
|
public static final Map<String, Color> STRUCTURE_PROVIDERS_COLOR = new HashMap<>(); |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
78 |
50 |
static {... |
79 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("No Secondary Structure", Color.GRAY); |
80 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("AlphaFold DB", new Color(255, 0, 0)); |
81 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("SWISS-MODEL", new Color(255, 165, 0)); |
82 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("PDB", new Color(0, 128, 0)); |
83 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("JPred", new Color(0, 0, 255)); |
84 |
50 |
STRUCTURE_PROVIDERS_COLOR.put("AlphaFill", Color.CYAN); |
85 |
|
} |
86 |
|
} |