1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.structure; |
22 |
|
|
23 |
|
import java.util.Locale; |
24 |
|
|
25 |
|
import jalview.datamodel.PDBEntry; |
26 |
|
import jalview.datamodel.PDBEntry.Type; |
27 |
|
import jalview.util.MessageManager; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@author |
34 |
|
|
35 |
|
|
|
|
| 94.3% |
Uncovered Elements: 2 (35) |
Complexity: 16 |
Complexity Density: 0.84 |
|
36 |
|
public class StructureImportSettings |
37 |
|
{ |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private static boolean visibleChainAnnotation = false; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
private static boolean processSecStr = false; |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
private static boolean externalSecondaryStructure = false; |
55 |
|
|
56 |
|
private static boolean showSeqFeatures = true; |
57 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
58 |
|
public enum StructureParser |
59 |
|
{ |
60 |
|
JMOL_PARSER, JALVIEW_PARSER |
61 |
|
} |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
|
public static enum TFType |
64 |
|
{ |
65 |
|
DEFAULT, PLDDT; |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
33 |
@Override... |
68 |
|
public String toString() |
69 |
|
{ |
70 |
33 |
return MessageManager.getString( |
71 |
|
"label.tftype_" + this.name().toLowerCase(Locale.ROOT)); |
72 |
|
} |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
private static PDBEntry.Type defaultStructureFileFormat = Type.PDB; |
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
private static StructureParser defaultPDBFileParser = StructureParser.JMOL_PARSER; |
86 |
|
|
87 |
|
private static TFType temperatureFactorType; |
88 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
89 |
13 |
public static void addSettings(boolean addAlignmentAnnotations,... |
90 |
|
boolean processSecStr, boolean externalSecStr) |
91 |
|
{ |
92 |
13 |
StructureImportSettings.visibleChainAnnotation = addAlignmentAnnotations; |
93 |
13 |
StructureImportSettings.processSecStr = processSecStr; |
94 |
13 |
StructureImportSettings.externalSecondaryStructure = externalSecStr; |
95 |
13 |
StructureImportSettings.showSeqFeatures = true; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
40 |
public static boolean isVisibleChainAnnotation()... |
99 |
|
{ |
100 |
40 |
return visibleChainAnnotation; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
5 |
public static void setTemperatureFactorType(TFType t)... |
104 |
|
{ |
105 |
5 |
StructureImportSettings.temperatureFactorType = t; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
6 |
public static void setVisibleChainAnnotation(... |
109 |
|
boolean visibleChainAnnotation) |
110 |
|
{ |
111 |
6 |
StructureImportSettings.visibleChainAnnotation = visibleChainAnnotation; |
112 |
|
} |
113 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
40 |
public static boolean isProcessSecondaryStructure()... |
115 |
|
{ |
116 |
40 |
return processSecStr; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
6 |
public static void setProcessSecondaryStructure(... |
120 |
|
boolean processSecondaryStructure) |
121 |
|
{ |
122 |
6 |
StructureImportSettings.processSecStr = processSecondaryStructure; |
123 |
|
} |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
40 |
public static boolean isExternalSecondaryStructure()... |
126 |
|
{ |
127 |
40 |
return externalSecondaryStructure; |
128 |
|
} |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
5 |
public static void setExternalSecondaryStructure(... |
131 |
|
boolean externalSecondaryStructure) |
132 |
|
{ |
133 |
5 |
StructureImportSettings.externalSecondaryStructure = externalSecondaryStructure; |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
141 |
public static boolean isShowSeqFeatures()... |
137 |
|
{ |
138 |
141 |
return showSeqFeatures; |
139 |
|
} |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
29 |
public static void setShowSeqFeatures(boolean showSeqFeatures)... |
142 |
|
{ |
143 |
29 |
StructureImportSettings.showSeqFeatures = showSeqFeatures; |
144 |
|
} |
145 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
0 |
public static PDBEntry.Type getDefaultStructureFileFormat()... |
147 |
|
{ |
148 |
0 |
return defaultStructureFileFormat; |
149 |
|
} |
150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
151 |
158 |
public static void setDefaultStructureFileFormat(... |
152 |
|
String defaultStructureFileFormat) |
153 |
|
{ |
154 |
158 |
StructureImportSettings.defaultStructureFileFormat = PDBEntry.Type |
155 |
|
.valueOf(defaultStructureFileFormat.toUpperCase(Locale.ROOT)); |
156 |
|
} |
157 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
13 |
public static String getDefaultPDBFileParser()... |
159 |
|
{ |
160 |
13 |
return defaultPDBFileParser.toString(); |
161 |
|
} |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
6 |
public static void setDefaultPDBFileParser(... |
164 |
|
StructureParser defaultPDBFileParser) |
165 |
|
{ |
166 |
6 |
StructureImportSettings.defaultPDBFileParser = defaultPDBFileParser; |
167 |
|
} |
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
143 |
public static void setDefaultPDBFileParser(String defaultPDBFileParser)... |
170 |
|
{ |
171 |
143 |
StructureImportSettings.defaultPDBFileParser = StructureParser |
172 |
|
.valueOf(defaultPDBFileParser.toUpperCase(Locale.ROOT)); |
173 |
|
} |
174 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
50 |
public static TFType getTemperatureFactorType()... |
176 |
|
{ |
177 |
50 |
return temperatureFactorType; |
178 |
|
} |
179 |
|
|
180 |
|
} |