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 jalview.datamodel.PDBEntry; |
24 |
|
import jalview.datamodel.PDBEntry.Type; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
@author |
31 |
|
|
32 |
|
|
|
|
| 93.5% |
Uncovered Elements: 2 (31) |
Complexity: 14 |
Complexity Density: 0.82 |
|
33 |
|
public class StructureImportSettings |
34 |
|
{ |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
private static boolean visibleChainAnnotation = false; |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
private static boolean processSecStr = false; |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
private static boolean externalSecondaryStructure = false; |
52 |
|
|
53 |
|
private static boolean showSeqFeatures = true; |
54 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
55 |
|
public enum StructureParser |
56 |
|
{ |
57 |
|
JMOL_PARSER, JALVIEW_PARSER |
58 |
|
} |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
private static PDBEntry.Type defaultStructureFileFormat = Type.PDB; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
private static StructureParser defaultPDBFileParser = StructureParser.JMOL_PARSER; |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
72 |
11 |
public static void addSettings(boolean addAlignmentAnnotations,... |
73 |
|
boolean processSecStr, boolean externalSecStr) |
74 |
|
{ |
75 |
11 |
StructureImportSettings.visibleChainAnnotation = addAlignmentAnnotations; |
76 |
11 |
StructureImportSettings.processSecStr = processSecStr; |
77 |
11 |
StructureImportSettings.externalSecondaryStructure = externalSecStr; |
78 |
11 |
StructureImportSettings.showSeqFeatures = true; |
79 |
|
} |
80 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
92 |
public static boolean isVisibleChainAnnotation()... |
82 |
|
{ |
83 |
92 |
return visibleChainAnnotation; |
84 |
|
} |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
5 |
public static void setVisibleChainAnnotation(... |
87 |
|
boolean visibleChainAnnotation) |
88 |
|
{ |
89 |
5 |
StructureImportSettings.visibleChainAnnotation = visibleChainAnnotation; |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
92 |
public static boolean isProcessSecondaryStructure()... |
93 |
|
{ |
94 |
92 |
return processSecStr; |
95 |
|
} |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
5 |
public static void setProcessSecondaryStructure(... |
98 |
|
boolean processSecondaryStructure) |
99 |
|
{ |
100 |
5 |
StructureImportSettings.processSecStr = processSecondaryStructure; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
92 |
public static boolean isExternalSecondaryStructure()... |
104 |
|
{ |
105 |
92 |
return externalSecondaryStructure; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
2 |
public static void setExternalSecondaryStructure(... |
109 |
|
boolean externalSecondaryStructure) |
110 |
|
{ |
111 |
2 |
StructureImportSettings.externalSecondaryStructure = externalSecondaryStructure; |
112 |
|
} |
113 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
162 |
public static boolean isShowSeqFeatures()... |
115 |
|
{ |
116 |
162 |
return showSeqFeatures; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
20 |
public static void setShowSeqFeatures(boolean showSeqFeatures)... |
120 |
|
{ |
121 |
20 |
StructureImportSettings.showSeqFeatures = showSeqFeatures; |
122 |
|
} |
123 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
0 |
public static PDBEntry.Type getDefaultStructureFileFormat()... |
125 |
|
{ |
126 |
0 |
return defaultStructureFileFormat; |
127 |
|
} |
128 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
84 |
public static void setDefaultStructureFileFormat(... |
130 |
|
String defaultStructureFileFormat) |
131 |
|
{ |
132 |
84 |
StructureImportSettings.defaultStructureFileFormat = PDBEntry.Type |
133 |
|
.valueOf(defaultStructureFileFormat.toUpperCase()); |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
11 |
public static String getDefaultPDBFileParser()... |
137 |
|
{ |
138 |
11 |
return defaultPDBFileParser.toString(); |
139 |
|
} |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
6 |
public static void setDefaultPDBFileParser(... |
142 |
|
StructureParser defaultPDBFileParser) |
143 |
|
{ |
144 |
6 |
StructureImportSettings.defaultPDBFileParser = defaultPDBFileParser; |
145 |
|
} |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
69 |
public static void setDefaultPDBFileParser(String defaultPDBFileParser)... |
148 |
|
{ |
149 |
69 |
StructureImportSettings.defaultPDBFileParser = StructureParser |
150 |
|
.valueOf(defaultPDBFileParser.toUpperCase()); |
151 |
|
} |
152 |
|
|
153 |
|
} |