1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel; |
22 |
|
|
23 |
|
import java.awt.Color; |
24 |
|
import java.beans.PropertyChangeListener; |
25 |
|
import java.beans.PropertyChangeSupport; |
26 |
|
import java.util.ArrayList; |
27 |
|
import java.util.Arrays; |
28 |
|
import java.util.Collection; |
29 |
|
import java.util.Collections; |
30 |
|
import java.util.HashMap; |
31 |
|
import java.util.List; |
32 |
|
import java.util.Map; |
33 |
|
|
34 |
|
import jalview.analysis.AAFrequency; |
35 |
|
import jalview.analysis.AlignmentUtils; |
36 |
|
import jalview.analysis.Conservation; |
37 |
|
import jalview.renderer.ResidueShader; |
38 |
|
import jalview.renderer.ResidueShaderI; |
39 |
|
import jalview.schemes.ColourSchemeI; |
40 |
|
import jalview.util.Constants; |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
@author |
46 |
|
@version |
47 |
|
|
|
|
| 55.7% |
Uncovered Elements: 308 (696) |
Complexity: 209 |
Complexity Density: 0.5 |
|
48 |
|
public class SequenceGroup implements AnnotatedCollectionI |
49 |
|
{ |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
public static final String SEQ_GROUP_CHANGED = "Sequence group changed"; |
55 |
|
|
56 |
|
protected PropertyChangeSupport changeSupport = new PropertyChangeSupport( |
57 |
|
this); |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public void addPropertyChangeListener(PropertyChangeListener listener)... |
60 |
|
{ |
61 |
0 |
changeSupport.addPropertyChangeListener(listener); |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0 |
public void removePropertyChangeListener(PropertyChangeListener listener)... |
65 |
|
{ |
66 |
0 |
changeSupport.removePropertyChangeListener(listener); |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
String groupName; |
71 |
|
|
72 |
|
String description; |
73 |
|
|
74 |
|
Conservation conserve; |
75 |
|
|
76 |
|
boolean displayBoxes = true; |
77 |
|
|
78 |
|
boolean displayText = true; |
79 |
|
|
80 |
|
boolean colourText = false; |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
boolean isDefined = false; |
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
boolean showNonconserved = false; |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
private List<SequenceI> sequences; |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
private SequenceI seqrep = null; |
102 |
|
|
103 |
|
int width = -1; |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
public ResidueShaderI cs; |
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
private int startRes = 0; |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
private int endRes = 0; |
119 |
|
|
120 |
|
public Color outlineColour = Color.black; |
121 |
|
|
122 |
|
public Color idColour = null; |
123 |
|
|
124 |
|
public int thresholdTextColour = 0; |
125 |
|
|
126 |
|
public Color textColour = Color.black; |
127 |
|
|
128 |
|
public Color textColour2 = Color.white; |
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
private boolean ignoreGapsInConsensus = true; |
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
private boolean showSequenceLogo = false; |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
private boolean normaliseSequenceLogo; |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
private boolean hidereps = false; |
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
private boolean hidecols = false; |
154 |
|
|
155 |
|
AlignmentAnnotation consensus = null; |
156 |
|
|
157 |
|
List<AlignmentAnnotation> ssConsensus = null; |
158 |
|
|
159 |
|
List<String> secondaryStructureSources = null; |
160 |
|
|
161 |
|
AlignmentAnnotation conservation = null; |
162 |
|
|
163 |
|
private boolean showConsensusHistogram; |
164 |
|
|
165 |
|
private AnnotatedCollectionI context; |
166 |
|
|
167 |
|
public Map<String, ProfilesI> hSSConsensusProfileMap; |
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
172 |
971 |
public SequenceGroup()... |
173 |
|
{ |
174 |
971 |
groupName = "JGroup:" + this.hashCode(); |
175 |
971 |
cs = new ResidueShader(); |
176 |
971 |
sequences = new ArrayList<>(); |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
@param |
183 |
|
@param |
184 |
|
@param |
185 |
|
@param |
186 |
|
@param |
187 |
|
@param |
188 |
|
@param |
189 |
|
|
190 |
|
@param |
191 |
|
|
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 1 |
Complexity Density: 0.1 |
|
193 |
79 |
public SequenceGroup(List<SequenceI> sequences, String groupName,... |
194 |
|
ColourSchemeI scheme, boolean displayBoxes, boolean displayText, |
195 |
|
boolean colourText, int start, int end) |
196 |
|
{ |
197 |
79 |
this(); |
198 |
79 |
this.sequences = sequences; |
199 |
79 |
this.groupName = groupName; |
200 |
79 |
this.displayBoxes = displayBoxes; |
201 |
79 |
this.displayText = displayText; |
202 |
79 |
this.colourText = colourText; |
203 |
79 |
this.cs = new ResidueShader(scheme); |
204 |
79 |
startRes = start; |
205 |
79 |
endRes = end; |
206 |
79 |
recalcConservation(); |
207 |
|
} |
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
@param |
213 |
|
|
|
|
| 92.1% |
Uncovered Elements: 3 (38) |
Complexity: 5 |
Complexity Density: 0.17 |
|
214 |
107 |
public SequenceGroup(SequenceGroup seqsel)... |
215 |
|
{ |
216 |
107 |
this(); |
217 |
107 |
if (seqsel != null) |
218 |
|
{ |
219 |
99 |
sequences = new ArrayList<>(); |
220 |
99 |
sequences.addAll(seqsel.sequences); |
221 |
99 |
if (seqsel.groupName != null) |
222 |
|
{ |
223 |
99 |
groupName = new String(seqsel.groupName); |
224 |
|
} |
225 |
99 |
displayBoxes = seqsel.displayBoxes; |
226 |
99 |
displayText = seqsel.displayText; |
227 |
99 |
colourText = seqsel.colourText; |
228 |
|
|
229 |
99 |
startRes = seqsel.startRes; |
230 |
99 |
endRes = seqsel.endRes; |
231 |
99 |
cs = new ResidueShader((ResidueShader) seqsel.cs); |
232 |
99 |
if (seqsel.description != null) |
233 |
|
{ |
234 |
1 |
description = new String(seqsel.description); |
235 |
|
} |
236 |
99 |
hidecols = seqsel.hidecols; |
237 |
99 |
hidereps = seqsel.hidereps; |
238 |
99 |
showNonconserved = seqsel.showNonconserved; |
239 |
99 |
showSequenceLogo = seqsel.showSequenceLogo; |
240 |
99 |
normaliseSequenceLogo = seqsel.normaliseSequenceLogo; |
241 |
99 |
showConsensusHistogram = seqsel.showConsensusHistogram; |
242 |
99 |
idColour = seqsel.idColour; |
243 |
99 |
outlineColour = seqsel.outlineColour; |
244 |
99 |
seqrep = seqsel.seqrep; |
245 |
99 |
textColour = seqsel.textColour; |
246 |
99 |
textColour2 = seqsel.textColour2; |
247 |
99 |
thresholdTextColour = seqsel.thresholdTextColour; |
248 |
99 |
width = seqsel.width; |
249 |
99 |
ignoreGapsInConsensus = seqsel.ignoreGapsInConsensus; |
250 |
99 |
if (seqsel.conserve != null) |
251 |
|
{ |
252 |
0 |
recalcConservation(); |
253 |
|
|
254 |
|
} |
255 |
|
} |
256 |
|
} |
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
@param |
262 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
263 |
11 |
public SequenceGroup(List<SequenceI> seqs)... |
264 |
|
{ |
265 |
11 |
this(); |
266 |
11 |
this.sequences.addAll(seqs); |
267 |
|
} |
268 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
269 |
54548 |
public boolean isShowSequenceLogo()... |
270 |
|
{ |
271 |
54548 |
return showSequenceLogo; |
272 |
|
} |
273 |
|
|
|
|
| 77.8% |
Uncovered Elements: 12 (54) |
Complexity: 11 |
Complexity Density: 0.32 |
|
274 |
2 |
public SequenceI[] getSelectionAsNewSequences(AlignmentI align)... |
275 |
|
{ |
276 |
2 |
int iSize = sequences.size(); |
277 |
2 |
SequenceI[] seqs = new SequenceI[iSize]; |
278 |
2 |
SequenceI[] inorder = getSequencesInOrder(align); |
279 |
|
|
280 |
18 |
for (int i = 0, ipos = 0; i < inorder.length; i++) |
281 |
|
{ |
282 |
16 |
SequenceI seq = inorder[i]; |
283 |
16 |
SequenceI seqipos = seqs[ipos] = seq.getSubSequence(startRes, |
284 |
|
endRes + 1); |
285 |
16 |
if (seqipos != null) |
286 |
|
{ |
287 |
16 |
if (seq.getAnnotation() != null) |
288 |
|
{ |
289 |
1 |
AlignmentAnnotation[] alann = align.getAlignmentAnnotation(); |
290 |
|
|
291 |
|
|
292 |
2 |
for (int a = 0; a < seq.getAnnotation().length; a++) |
293 |
|
{ |
294 |
1 |
AlignmentAnnotation tocopy = seq.getAnnotation()[a]; |
295 |
1 |
if (alann != null) |
296 |
|
{ |
297 |
1 |
boolean found = false; |
298 |
1 |
for (int pos = 0, np = alann.length; pos < np; pos++) |
299 |
|
{ |
300 |
1 |
if (alann[pos] == tocopy) |
301 |
|
{ |
302 |
1 |
found = true; |
303 |
1 |
break; |
304 |
|
} |
305 |
|
} |
306 |
1 |
if (!found) |
307 |
|
{ |
308 |
0 |
continue; |
309 |
|
} |
310 |
|
} |
311 |
1 |
AlignmentAnnotation newannot = new AlignmentAnnotation( |
312 |
|
seq.getAnnotation()[a]); |
313 |
1 |
newannot.restrict(startRes, endRes); |
314 |
1 |
newannot.setSequenceRef(seqs[ipos]); |
315 |
1 |
newannot.adjustForAlignment(); |
316 |
1 |
ContactMatrixI cm = seq |
317 |
|
.getContactMatrixFor(seq.getAnnotation()[a]); |
318 |
1 |
if (cm != null) |
319 |
|
{ |
320 |
1 |
seqs[ipos].addContactListFor(newannot, cm); |
321 |
|
} |
322 |
1 |
seqipos.addAlignmentAnnotation(newannot); |
323 |
|
} |
324 |
|
} |
325 |
16 |
ipos++; |
326 |
|
} |
327 |
|
else |
328 |
|
{ |
329 |
0 |
iSize--; |
330 |
|
} |
331 |
|
} |
332 |
2 |
if (iSize != inorder.length) |
333 |
|
{ |
334 |
0 |
SequenceI[] nseqs = new SequenceI[iSize]; |
335 |
0 |
System.arraycopy(seqs, 0, nseqs, 0, iSize); |
336 |
0 |
seqs = nseqs; |
337 |
|
} |
338 |
2 |
return seqs; |
339 |
|
|
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
@param |
346 |
|
|
347 |
|
@return |
348 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 5 |
Complexity Density: 0.56 |
|
349 |
0 |
public int findEndRes(SequenceI seq)... |
350 |
|
{ |
351 |
0 |
int eres = 0; |
352 |
0 |
char ch; |
353 |
|
|
354 |
0 |
for (int j = 0; j < endRes + 1 && j < seq.getLength(); j++) |
355 |
|
{ |
356 |
0 |
ch = seq.getCharAt(j); |
357 |
0 |
if (!jalview.util.Comparison.isGap((ch))) |
358 |
|
{ |
359 |
0 |
eres++; |
360 |
|
} |
361 |
|
} |
362 |
|
|
363 |
0 |
if (eres > 0) |
364 |
|
{ |
365 |
0 |
eres += seq.getStart() - 1; |
366 |
|
} |
367 |
|
|
368 |
0 |
return eres; |
369 |
|
} |
370 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
371 |
27530 |
@Override... |
372 |
|
public List<SequenceI> getSequences() |
373 |
|
{ |
374 |
27530 |
return sequences; |
375 |
|
} |
376 |
|
|
|
|
| 17.6% |
Uncovered Elements: 14 (17) |
Complexity: 5 |
Complexity Density: 0.45 |
|
377 |
2725 |
@Override... |
378 |
|
public List<SequenceI> getSequences( |
379 |
|
Map<SequenceI, SequenceCollectionI> hiddenReps) |
380 |
|
{ |
381 |
2725 |
if (hiddenReps == null) |
382 |
|
{ |
383 |
|
|
384 |
2725 |
return sequences; |
385 |
|
} |
386 |
|
else |
387 |
|
{ |
388 |
0 |
List<SequenceI> allSequences = new ArrayList<>(); |
389 |
0 |
for (SequenceI seq : sequences) |
390 |
|
{ |
391 |
0 |
allSequences.add(seq); |
392 |
0 |
if (hiddenReps.containsKey(seq)) |
393 |
|
{ |
394 |
0 |
SequenceCollectionI hsg = hiddenReps.get(seq); |
395 |
0 |
for (SequenceI seq2 : hsg.getSequences()) |
396 |
|
{ |
397 |
0 |
if (seq2 != seq && !allSequences.contains(seq2)) |
398 |
|
{ |
399 |
0 |
allSequences.add(seq2); |
400 |
|
} |
401 |
|
} |
402 |
|
} |
403 |
|
} |
404 |
|
|
405 |
0 |
return allSequences; |
406 |
|
} |
407 |
|
} |
408 |
|
|
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
409 |
5 |
public SequenceI[] getSequencesAsArray(... |
410 |
|
Map<SequenceI, SequenceCollectionI> map) |
411 |
|
{ |
412 |
5 |
List<SequenceI> tmp = getSequences(map); |
413 |
5 |
if (tmp == null) |
414 |
|
{ |
415 |
0 |
return null; |
416 |
|
} |
417 |
5 |
return tmp.toArray(new SequenceI[tmp.size()]); |
418 |
|
} |
419 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
420 |
19 |
public List<String> getSecondaryStructureSources()... |
421 |
|
{ |
422 |
19 |
return secondaryStructureSources; |
423 |
|
} |
424 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
425 |
47 |
public void setSecondaryStructureSources(... |
426 |
|
List<String> secondaryStructureSources) |
427 |
|
{ |
428 |
47 |
this.secondaryStructureSources = secondaryStructureSources; |
429 |
|
} |
430 |
|
|
431 |
|
|
432 |
|
|
433 |
|
|
434 |
|
@param |
435 |
|
|
436 |
|
|
437 |
|
@return |
438 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 4 |
Complexity Density: 0.5 |
|
439 |
0 |
public boolean adjustForRemoveLeft(int col)... |
440 |
|
{ |
441 |
|
|
442 |
0 |
if (startRes >= col) |
443 |
|
{ |
444 |
0 |
startRes = startRes - col; |
445 |
|
} |
446 |
|
|
447 |
0 |
if (endRes >= col) |
448 |
|
{ |
449 |
0 |
endRes = endRes - col; |
450 |
|
|
451 |
0 |
if (startRes > endRes) |
452 |
|
{ |
453 |
0 |
startRes = 0; |
454 |
|
} |
455 |
|
} |
456 |
|
else |
457 |
|
{ |
458 |
|
|
459 |
0 |
return false; |
460 |
|
} |
461 |
|
|
462 |
0 |
return true; |
463 |
|
} |
464 |
|
|
465 |
|
|
466 |
|
|
467 |
|
|
468 |
|
@param |
469 |
|
|
470 |
|
|
471 |
|
@return |
472 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 3 |
Complexity Density: 0.6 |
|
473 |
0 |
public boolean adjustForRemoveRight(int col)... |
474 |
|
{ |
475 |
0 |
if (startRes > col) |
476 |
|
{ |
477 |
|
|
478 |
0 |
return false; |
479 |
|
} |
480 |
|
|
481 |
0 |
if (endRes >= col) |
482 |
|
{ |
483 |
0 |
endRes = col; |
484 |
|
} |
485 |
|
|
486 |
0 |
return true; |
487 |
|
} |
488 |
|
|
489 |
|
|
490 |
|
|
491 |
|
|
492 |
|
@return |
493 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
494 |
247 |
public String getName()... |
495 |
|
{ |
496 |
247 |
return groupName; |
497 |
|
} |
498 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
499 |
16 |
public String getDescription()... |
500 |
|
{ |
501 |
16 |
return description; |
502 |
|
} |
503 |
|
|
504 |
|
|
505 |
|
|
506 |
|
|
507 |
|
@param |
508 |
|
|
509 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
510 |
23 |
public void setName(String name)... |
511 |
|
{ |
512 |
23 |
groupName = name; |
513 |
|
|
514 |
|
} |
515 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
516 |
20 |
public void setDescription(String desc)... |
517 |
|
{ |
518 |
20 |
description = desc; |
519 |
|
} |
520 |
|
|
521 |
|
|
522 |
|
|
523 |
|
|
524 |
|
@return |
525 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
526 |
0 |
public Conservation getConservation()... |
527 |
|
{ |
528 |
0 |
return conserve; |
529 |
|
} |
530 |
|
|
531 |
|
|
532 |
|
|
533 |
|
|
534 |
|
@param |
535 |
|
|
536 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
537 |
0 |
public void setConservation(Conservation c)... |
538 |
|
{ |
539 |
0 |
conserve = c; |
540 |
|
} |
541 |
|
|
542 |
|
|
543 |
|
|
544 |
|
|
545 |
|
|
546 |
|
|
547 |
|
@param |
548 |
|
|
549 |
|
@param |
550 |
|
|
551 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 4 |
Complexity Density: 0.67 |
|
552 |
623 |
public void addSequence(SequenceI s, boolean recalc)... |
553 |
|
{ |
554 |
623 |
synchronized (sequences) |
555 |
|
{ |
556 |
623 |
if (s != null && !sequences.contains(s)) |
557 |
|
{ |
558 |
612 |
sequences.add(s); |
559 |
612 |
changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, |
560 |
|
sequences.size() - 1, sequences.size()); |
561 |
|
} |
562 |
|
|
563 |
623 |
if (recalc) |
564 |
|
{ |
565 |
1 |
recalcConservation(); |
566 |
|
} |
567 |
|
} |
568 |
|
} |
569 |
|
|
570 |
|
|
571 |
|
|
572 |
|
|
573 |
|
private int consPercGaps = 25; |
574 |
|
|
575 |
|
|
576 |
|
@return |
577 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
578 |
0 |
public int getConsPercGaps()... |
579 |
|
{ |
580 |
0 |
return consPercGaps; |
581 |
|
} |
582 |
|
|
583 |
|
|
584 |
|
|
585 |
|
|
586 |
|
@param |
587 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
588 |
0 |
public void setConsPercGaps(int consPercGaps)... |
589 |
|
{ |
590 |
0 |
this.consPercGaps = consPercGaps; |
591 |
|
} |
592 |
|
|
593 |
|
|
594 |
|
|
595 |
|
|
596 |
|
|
597 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
598 |
381 |
public boolean recalcConservation()... |
599 |
|
{ |
600 |
381 |
return recalcConservation(false); |
601 |
|
} |
602 |
|
|
603 |
|
|
604 |
|
|
605 |
|
|
606 |
|
|
607 |
|
@param |
608 |
|
|
609 |
|
|
610 |
|
|
|
|
| 76.8% |
Uncovered Elements: 16 (69) |
Complexity: 20 |
Complexity Density: 0.47 |
|
611 |
381 |
public boolean recalcConservation(boolean defer)... |
612 |
|
{ |
613 |
381 |
if (cs == null && consensus == null && conservation == null) |
614 |
|
{ |
615 |
0 |
return false; |
616 |
|
} |
617 |
|
|
618 |
|
|
619 |
381 |
boolean upd = false; |
620 |
381 |
try |
621 |
|
{ |
622 |
381 |
ProfilesI cnsns = AAFrequency.calculate(sequences, startRes, |
623 |
|
endRes + 1, showSequenceLogo); |
624 |
381 |
if (consensus != null) |
625 |
|
{ |
626 |
120 |
_updateConsensusRow(cnsns, sequences.size()); |
627 |
120 |
upd = true; |
628 |
|
} |
629 |
381 |
if (cs != null) |
630 |
|
{ |
631 |
381 |
cs.setConsensus(cnsns); |
632 |
381 |
upd = true; |
633 |
|
} |
634 |
|
|
635 |
381 |
hSSConsensusProfileMap = new HashMap<String, ProfilesI>(); |
636 |
381 |
List<String> ssSources = new ArrayList<String>(); |
637 |
381 |
AnnotatedCollectionI aa = this.getContext(); |
638 |
|
|
639 |
381 |
if (aa != null) |
640 |
|
{ |
641 |
302 |
ssSources = AlignmentUtils.extractSSSourceInAlignmentAnnotation( |
642 |
|
aa.getAlignmentAnnotation()); |
643 |
|
} |
644 |
381 |
if (ssSources != null) |
645 |
|
{ |
646 |
381 |
ssSources.add(Constants.SS_ALL_PROVIDERS); |
647 |
|
|
648 |
381 |
for (String ssSource : ssSources) |
649 |
|
{ |
650 |
381 |
ProfilesI hSSConsensus = AAFrequency.calculateSS(sequences, |
651 |
|
startRes, endRes + 1, showSequenceLogo, ssSource); |
652 |
381 |
hSSConsensusProfileMap.put(ssSource, hSSConsensus); |
653 |
|
} |
654 |
|
} |
655 |
|
|
656 |
381 |
if (ssConsensus != null) |
657 |
|
{ |
658 |
0 |
_updateSSConsensusRow(hSSConsensusProfileMap, sequences.size()); |
659 |
0 |
upd = true; |
660 |
|
} |
661 |
|
|
662 |
381 |
if (cs != null) |
663 |
|
{ |
664 |
381 |
cs.setSSConsensusProfileMap(hSSConsensusProfileMap); |
665 |
381 |
upd = true; |
666 |
|
} |
667 |
|
|
668 |
381 |
if ((conservation != null) |
669 |
|
|| (cs != null && cs.conservationApplied())) |
670 |
|
{ |
671 |
3 |
Conservation c = new Conservation(groupName, sequences, startRes, |
672 |
|
endRes + 1); |
673 |
3 |
c.calculate(); |
674 |
3 |
c.verdict(false, consPercGaps); |
675 |
3 |
if (conservation != null) |
676 |
|
{ |
677 |
0 |
_updateConservationRow(c); |
678 |
|
} |
679 |
3 |
if (cs != null) |
680 |
|
{ |
681 |
3 |
if (cs.conservationApplied()) |
682 |
|
{ |
683 |
3 |
cs.setConservation(c); |
684 |
|
} |
685 |
|
} |
686 |
|
|
687 |
3 |
upd = true; |
688 |
|
} |
689 |
381 |
if (cs != null && !defer) |
690 |
|
{ |
691 |
|
|
692 |
381 |
cs.alignmentChanged(context != null ? context : this, null); |
693 |
381 |
return true; |
694 |
|
} |
695 |
|
else |
696 |
|
{ |
697 |
0 |
return upd; |
698 |
|
} |
699 |
|
} catch (java.lang.OutOfMemoryError err) |
700 |
|
{ |
701 |
|
|
702 |
0 |
jalview.bin.Console |
703 |
|
.outPrintln("Out of memory loading groups: " + err); |
704 |
|
} |
705 |
0 |
return upd; |
706 |
|
} |
707 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 4 |
Complexity Density: 0.5 |
|
708 |
0 |
private void _updateConservationRow(Conservation c)... |
709 |
|
{ |
710 |
0 |
if (conservation == null) |
711 |
|
{ |
712 |
0 |
getConservation(); |
713 |
|
} |
714 |
|
|
715 |
0 |
conservation.label = "Conservation for " + getName(); |
716 |
0 |
conservation.description = "Conservation for group " + getName() |
717 |
|
+ " less than " + consPercGaps + "% gaps"; |
718 |
|
|
719 |
0 |
int aWidth = (conservation.annotations != null) |
720 |
0 |
? (endRes < conservation.annotations.length |
721 |
|
? conservation.annotations.length |
722 |
|
: endRes + 1) |
723 |
|
: endRes + 1; |
724 |
0 |
conservation.annotations = null; |
725 |
0 |
conservation.annotations = new Annotation[aWidth]; |
726 |
|
|
727 |
0 |
c.completeAnnotations(conservation, null, startRes, endRes + 1); |
728 |
|
} |
729 |
|
|
730 |
|
public ProfilesI consensusData = null; |
731 |
|
|
|
|
| 73.3% |
Uncovered Elements: 4 (15) |
Complexity: 4 |
Complexity Density: 0.44 |
|
732 |
120 |
private void _updateConsensusRow(ProfilesI cnsns, long nseq)... |
733 |
|
{ |
734 |
120 |
if (consensus == null) |
735 |
|
{ |
736 |
0 |
getConsensus(); |
737 |
|
} |
738 |
120 |
consensus.label = "Consensus for " + getName(); |
739 |
120 |
consensus.description = "Percent Identity"; |
740 |
120 |
consensusData = cnsns; |
741 |
|
|
742 |
120 |
int aWidth = (consensus.annotations != null) |
743 |
120 |
? (endRes < consensus.annotations.length |
744 |
|
? consensus.annotations.length |
745 |
|
: endRes + 1) |
746 |
|
: endRes + 1; |
747 |
120 |
consensus.annotations = null; |
748 |
120 |
consensus.annotations = new Annotation[aWidth]; |
749 |
|
|
750 |
120 |
AAFrequency.completeConsensus(consensus, cnsns, startRes, endRes + 1, |
751 |
|
ignoreGapsInConsensus, showSequenceLogo, nseq); |
752 |
|
|
753 |
|
|
754 |
|
|
755 |
|
} |
756 |
|
|
757 |
|
|
758 |
|
|
759 |
|
|
760 |
|
|
761 |
|
@param |
762 |
|
|
763 |
|
|
764 |
|
@param |
765 |
|
|
766 |
|
|
|
|
| 0% |
Uncovered Elements: 33 (33) |
Complexity: 8 |
Complexity Density: 0.38 |
|
767 |
0 |
private void _updateSSConsensusRow(... |
768 |
|
Map<String, ProfilesI> hSSConsensusProfileMap, long nseq) |
769 |
|
{ |
770 |
|
|
771 |
0 |
List<String> ssSources = new ArrayList<>( |
772 |
|
hSSConsensusProfileMap.keySet()); |
773 |
0 |
secondaryStructureSources = new ArrayList<String>(); |
774 |
|
|
775 |
|
|
776 |
0 |
Collections.sort(ssSources); |
777 |
|
|
778 |
|
|
779 |
0 |
if (ssConsensus == null) |
780 |
|
{ |
781 |
0 |
getSSConsensus(ssSources); |
782 |
|
} |
783 |
|
|
784 |
|
|
785 |
0 |
for (AlignmentAnnotation aa : ssConsensus) |
786 |
|
{ |
787 |
0 |
ProfilesI profile = null; |
788 |
0 |
String ssSource = null; |
789 |
|
|
790 |
|
|
791 |
|
|
792 |
0 |
for (String source : ssSources) |
793 |
|
{ |
794 |
0 |
if (aa.description.startsWith(source)) |
795 |
|
{ |
796 |
0 |
profile = hSSConsensusProfileMap.get(source); |
797 |
0 |
ssSource = source; |
798 |
|
} |
799 |
|
} |
800 |
|
|
801 |
|
|
802 |
0 |
if (profile == null) |
803 |
|
{ |
804 |
0 |
continue; |
805 |
|
} |
806 |
|
|
807 |
|
|
808 |
|
|
809 |
0 |
aa.label = Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " " |
810 |
|
+ ssSource + " " + getName(); |
811 |
0 |
aa.description = ssSource |
812 |
|
+ Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " for " |
813 |
|
+ getName(); |
814 |
|
|
815 |
|
|
816 |
0 |
int aWidth = (aa.annotations != null) |
817 |
0 |
? (endRes < aa.annotations.length ? aa.annotations.length |
818 |
|
: endRes + 1) |
819 |
|
: endRes + 1; |
820 |
0 |
aa.annotations = new Annotation[aWidth]; |
821 |
|
|
822 |
|
|
823 |
0 |
AAFrequency.completeSSConsensus(aa, profile, startRes, endRes + 1, |
824 |
|
ignoreGapsInConsensus, showSequenceLogo, nseq); |
825 |
|
|
826 |
|
|
827 |
|
|
828 |
|
|
829 |
0 |
if (aa.getNoOfSequencesIncluded() > 0 |
830 |
|
&& !Constants.SS_ALL_PROVIDERS.equals(ssSource)) |
831 |
|
{ |
832 |
|
|
833 |
0 |
secondaryStructureSources.add(ssSource); |
834 |
|
} |
835 |
|
} |
836 |
|
} |
837 |
|
|
838 |
|
|
839 |
|
@param |
840 |
|
|
841 |
|
@param |
842 |
|
|
843 |
|
|
844 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
845 |
4 |
public void addOrRemove(SequenceI s, boolean recalc)... |
846 |
|
{ |
847 |
4 |
synchronized (sequences) |
848 |
|
{ |
849 |
4 |
if (sequences.contains(s)) |
850 |
|
{ |
851 |
1 |
deleteSequence(s, recalc); |
852 |
|
} |
853 |
|
else |
854 |
|
{ |
855 |
3 |
addSequence(s, recalc); |
856 |
|
} |
857 |
|
} |
858 |
|
} |
859 |
|
|
860 |
|
|
861 |
|
|
862 |
|
|
863 |
|
@param |
864 |
|
|
865 |
|
@param |
866 |
|
|
867 |
|
|
|
|
| 71.4% |
Uncovered Elements: 2 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
868 |
35 |
public void deleteSequence(SequenceI s, boolean recalc)... |
869 |
|
{ |
870 |
35 |
synchronized (sequences) |
871 |
|
{ |
872 |
35 |
sequences.remove(s); |
873 |
35 |
changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, |
874 |
|
sequences.size() + 1, sequences.size()); |
875 |
|
|
876 |
35 |
if (recalc) |
877 |
|
{ |
878 |
0 |
recalcConservation(); |
879 |
|
} |
880 |
|
} |
881 |
|
} |
882 |
|
|
883 |
|
|
884 |
|
|
885 |
|
|
886 |
|
@return |
887 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
888 |
1277563 |
@Override... |
889 |
|
public int getStartRes() |
890 |
|
{ |
891 |
1277653 |
return startRes; |
892 |
|
} |
893 |
|
|
894 |
|
|
895 |
|
|
896 |
|
@return |
897 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
898 |
1183042 |
@Override... |
899 |
|
public int getEndRes() |
900 |
|
{ |
901 |
1183054 |
return endRes; |
902 |
|
} |
903 |
|
|
904 |
|
|
905 |
|
|
906 |
|
|
907 |
|
@param |
908 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
909 |
91 |
public void setStartRes(int newStart)... |
910 |
|
{ |
911 |
91 |
int before = startRes; |
912 |
91 |
startRes = Math.max(0, newStart); |
913 |
|
|
914 |
91 |
changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, before, startRes); |
915 |
|
|
916 |
|
} |
917 |
|
|
918 |
|
|
919 |
|
|
920 |
|
|
921 |
|
@param |
922 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
923 |
112 |
public void setEndRes(int i)... |
924 |
|
{ |
925 |
112 |
int before = endRes; |
926 |
112 |
endRes = i; |
927 |
112 |
changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, before, endRes); |
928 |
|
} |
929 |
|
|
930 |
|
|
931 |
|
@return |
932 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
933 |
466 |
public int getSize()... |
934 |
|
{ |
935 |
466 |
return sequences.size(); |
936 |
|
} |
937 |
|
|
938 |
|
|
939 |
|
@param |
940 |
|
@return |
941 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
942 |
58 |
public SequenceI getSequenceAt(int i)... |
943 |
|
{ |
944 |
58 |
return sequences.get(i); |
945 |
|
} |
946 |
|
|
947 |
|
|
948 |
|
@param |
949 |
|
|
950 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
951 |
18 |
public void setColourText(boolean state)... |
952 |
|
{ |
953 |
18 |
colourText = state; |
954 |
|
} |
955 |
|
|
956 |
|
|
957 |
|
|
958 |
|
|
959 |
|
@return |
960 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
961 |
510577 |
public boolean getColourText()... |
962 |
|
{ |
963 |
510577 |
return colourText; |
964 |
|
} |
965 |
|
|
966 |
|
|
967 |
|
|
968 |
|
|
969 |
|
@param |
970 |
|
|
971 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
972 |
14 |
public void setDisplayText(boolean state)... |
973 |
|
{ |
974 |
14 |
displayText = state; |
975 |
|
} |
976 |
|
|
977 |
|
|
978 |
|
|
979 |
|
|
980 |
|
@return |
981 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
982 |
510562 |
public boolean getDisplayText()... |
983 |
|
{ |
984 |
510562 |
return displayText; |
985 |
|
} |
986 |
|
|
987 |
|
|
988 |
|
|
989 |
|
|
990 |
|
@param |
991 |
|
|
992 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
993 |
14 |
public void setDisplayBoxes(boolean state)... |
994 |
|
{ |
995 |
14 |
displayBoxes = state; |
996 |
|
} |
997 |
|
|
998 |
|
|
999 |
|
|
1000 |
|
|
1001 |
|
@return |
1002 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1003 |
510571 |
public boolean getDisplayBoxes()... |
1004 |
|
{ |
1005 |
510571 |
return displayBoxes; |
1006 |
|
} |
1007 |
|
|
1008 |
|
|
1009 |
|
|
1010 |
|
|
1011 |
|
@return |
1012 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
1013 |
885 |
@Override... |
1014 |
|
public int getWidth() |
1015 |
|
{ |
1016 |
885 |
synchronized (sequences) |
1017 |
|
{ |
1018 |
|
|
1019 |
885 |
boolean first = true; |
1020 |
885 |
for (SequenceI seq : sequences) |
1021 |
|
{ |
1022 |
2940 |
if (first || seq.getLength() > width) |
1023 |
|
{ |
1024 |
885 |
width = seq.getLength(); |
1025 |
885 |
first = false; |
1026 |
|
} |
1027 |
|
} |
1028 |
885 |
return width; |
1029 |
|
} |
1030 |
|
} |
1031 |
|
|
1032 |
|
|
1033 |
|
|
1034 |
|
|
1035 |
|
@param |
1036 |
|
|
1037 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1038 |
69 |
public void setOutlineColour(Color c)... |
1039 |
|
{ |
1040 |
69 |
outlineColour = c; |
1041 |
|
} |
1042 |
|
|
1043 |
|
|
1044 |
|
|
1045 |
|
|
1046 |
|
@return |
1047 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1048 |
2430 |
public Color getOutlineColour()... |
1049 |
|
{ |
1050 |
2430 |
return outlineColour; |
1051 |
|
} |
1052 |
|
|
1053 |
|
|
1054 |
|
|
1055 |
|
|
1056 |
|
|
1057 |
|
|
1058 |
|
|
1059 |
|
@param |
1060 |
|
|
1061 |
|
@return |
1062 |
|
|
1063 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1064 |
121 |
public SequenceI[] getSequencesInOrder(AlignmentI al)... |
1065 |
|
{ |
1066 |
121 |
return getSequencesInOrder(al, true); |
1067 |
|
} |
1068 |
|
|
1069 |
|
|
1070 |
|
|
1071 |
|
|
1072 |
|
|
1073 |
|
|
1074 |
|
@param |
1075 |
|
@param |
1076 |
|
@return |
1077 |
|
|
|
|
| 66.7% |
Uncovered Elements: 12 (36) |
Complexity: 10 |
Complexity Density: 0.5 |
|
1078 |
127 |
public SequenceI[] getSequencesInOrder(AlignmentI al, boolean trim)... |
1079 |
|
{ |
1080 |
127 |
synchronized (sequences) |
1081 |
|
{ |
1082 |
127 |
int sSize = sequences.size(); |
1083 |
127 |
int alHeight = al.getHeight(); |
1084 |
|
|
1085 |
127 |
SequenceI[] seqs = new SequenceI[(trim) ? sSize : alHeight]; |
1086 |
|
|
1087 |
127 |
int index = 0; |
1088 |
975 |
for (int i = 0; i < alHeight && index < sSize; i++) |
1089 |
|
{ |
1090 |
848 |
if (sequences.contains(al.getSequenceAt(i))) |
1091 |
|
{ |
1092 |
281 |
seqs[(trim) ? index : i] = al.getSequenceAt(i); |
1093 |
281 |
index++; |
1094 |
|
} |
1095 |
|
} |
1096 |
127 |
if (index == 0) |
1097 |
|
{ |
1098 |
57 |
return null; |
1099 |
|
} |
1100 |
70 |
if (!trim) |
1101 |
|
{ |
1102 |
0 |
return seqs; |
1103 |
|
} |
1104 |
70 |
if (index < seqs.length) |
1105 |
|
{ |
1106 |
0 |
SequenceI[] dummy = seqs; |
1107 |
0 |
seqs = new SequenceI[index]; |
1108 |
0 |
while (--index >= 0) |
1109 |
|
{ |
1110 |
0 |
seqs[index] = dummy[index]; |
1111 |
0 |
dummy[index] = null; |
1112 |
|
} |
1113 |
|
} |
1114 |
70 |
return seqs; |
1115 |
|
} |
1116 |
|
} |
1117 |
|
|
1118 |
|
|
1119 |
|
@return |
1120 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1121 |
18 |
public Color getIdColour()... |
1122 |
|
{ |
1123 |
18 |
return idColour; |
1124 |
|
} |
1125 |
|
|
1126 |
|
|
1127 |
|
@param |
1128 |
|
|
1129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1130 |
7 |
public void setIdColour(Color idColour)... |
1131 |
|
{ |
1132 |
7 |
this.idColour = idColour; |
1133 |
|
} |
1134 |
|
|
1135 |
|
|
1136 |
|
@return |
1137 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1138 |
510536 |
@Override... |
1139 |
|
public SequenceI getSeqrep() |
1140 |
|
{ |
1141 |
510536 |
return seqrep; |
1142 |
|
} |
1143 |
|
|
1144 |
|
|
1145 |
|
|
1146 |
|
|
1147 |
|
|
1148 |
|
@param |
1149 |
|
|
1150 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1151 |
17 |
@Override... |
1152 |
|
public void setSeqrep(SequenceI seqrep) |
1153 |
|
{ |
1154 |
17 |
this.seqrep = seqrep; |
1155 |
|
} |
1156 |
|
|
1157 |
|
|
1158 |
|
|
1159 |
|
@return |
1160 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1161 |
6 |
@Override... |
1162 |
|
public boolean hasSeqrep() |
1163 |
|
{ |
1164 |
6 |
return seqrep != null; |
1165 |
|
} |
1166 |
|
|
1167 |
|
|
1168 |
|
|
1169 |
|
|
1170 |
|
|
1171 |
|
@param |
1172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1173 |
6 |
public void setHidereps(boolean visibility)... |
1174 |
|
{ |
1175 |
6 |
hidereps = visibility; |
1176 |
|
} |
1177 |
|
|
1178 |
|
|
1179 |
|
|
1180 |
|
@return |
1181 |
|
|
1182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1183 |
8 |
public boolean isHidereps()... |
1184 |
|
{ |
1185 |
8 |
return hidereps; |
1186 |
|
} |
1187 |
|
|
1188 |
|
|
1189 |
|
|
1190 |
|
|
1191 |
|
@param |
1192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1193 |
1 |
public void setHideCols(boolean visibility)... |
1194 |
|
{ |
1195 |
1 |
hidecols = visibility; |
1196 |
|
} |
1197 |
|
|
1198 |
|
|
1199 |
|
|
1200 |
|
@return |
1201 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1202 |
8 |
public boolean isHideCols()... |
1203 |
|
{ |
1204 |
8 |
return hidecols; |
1205 |
|
} |
1206 |
|
|
1207 |
|
|
1208 |
|
|
1209 |
|
|
1210 |
|
|
1211 |
|
@param |
1212 |
|
|
1213 |
|
@param |
1214 |
|
|
1215 |
|
@return |
1216 |
|
|
|
|
| 54.5% |
Uncovered Elements: 5 (11) |
Complexity: 5 |
Complexity Density: 0.71 |
|
1217 |
57 |
public SequenceGroup intersect(AlignmentI alignment,... |
1218 |
|
Map<SequenceI, SequenceCollectionI> map) |
1219 |
|
{ |
1220 |
57 |
SequenceGroup sgroup = new SequenceGroup(this); |
1221 |
57 |
SequenceI[] insect = getSequencesInOrder(alignment); |
1222 |
57 |
sgroup.sequences = new ArrayList<>(); |
1223 |
57 |
for (int s = 0; insect != null && s < insect.length; s++) |
1224 |
|
{ |
1225 |
0 |
if (map == null || map.containsKey(insect[s])) |
1226 |
|
{ |
1227 |
0 |
sgroup.sequences.add(insect[s]); |
1228 |
|
} |
1229 |
|
} |
1230 |
57 |
return sgroup; |
1231 |
|
} |
1232 |
|
|
1233 |
|
|
1234 |
|
@return |
1235 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1236 |
504642 |
public boolean getShowNonconserved()... |
1237 |
|
{ |
1238 |
504642 |
return showNonconserved; |
1239 |
|
} |
1240 |
|
|
1241 |
|
|
1242 |
|
@param |
1243 |
|
|
1244 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1245 |
74 |
public void setShowNonconserved(boolean displayNonconserved)... |
1246 |
|
{ |
1247 |
74 |
this.showNonconserved = displayNonconserved; |
1248 |
|
} |
1249 |
|
|
1250 |
|
|
1251 |
|
|
1252 |
|
|
1253 |
|
|
1254 |
|
@param |
1255 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
1256 |
24 |
public void setConsensus(AlignmentAnnotation aan)... |
1257 |
|
{ |
1258 |
24 |
if (consensus == null) |
1259 |
|
{ |
1260 |
24 |
consensus = aan; |
1261 |
|
} |
1262 |
|
} |
1263 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
1264 |
0 |
public void setSSConsensusRow(AlignmentAnnotation aan)... |
1265 |
|
{ |
1266 |
|
|
1267 |
0 |
if (ssConsensus == null) |
1268 |
|
{ |
1269 |
0 |
ssConsensus = new ArrayList<AlignmentAnnotation>(); |
1270 |
0 |
ssConsensus.add(aan); |
1271 |
|
} |
1272 |
|
else |
1273 |
|
{ |
1274 |
0 |
boolean annotExists = ssConsensus.stream() |
1275 |
|
.anyMatch(ssa -> ssa.label.equals(aan.label)); |
1276 |
0 |
if (!annotExists) |
1277 |
|
{ |
1278 |
0 |
ssConsensus.add(aan); |
1279 |
|
} |
1280 |
|
} |
1281 |
|
} |
1282 |
|
|
1283 |
|
|
1284 |
|
|
1285 |
|
@return |
1286 |
|
|
1287 |
|
|
|
|
| 40% |
Uncovered Elements: 9 (15) |
Complexity: 3 |
Complexity Density: 0.27 |
|
1288 |
879 |
public AlignmentAnnotation getConsensus()... |
1289 |
|
{ |
1290 |
|
|
1291 |
879 |
int aWidth = this.getWidth(); |
1292 |
|
|
1293 |
|
|
1294 |
|
|
1295 |
879 |
if (aWidth < 0) |
1296 |
|
{ |
1297 |
0 |
return null; |
1298 |
|
} |
1299 |
879 |
if (consensus == null) |
1300 |
|
{ |
1301 |
0 |
consensus = new AlignmentAnnotation("", "", new Annotation[1], 0f, |
1302 |
|
100f, AlignmentAnnotation.BAR_GRAPH); |
1303 |
0 |
consensus.hasText = true; |
1304 |
0 |
consensus.autoCalculated = true; |
1305 |
0 |
consensus.groupRef = this; |
1306 |
0 |
consensus.label = "Consensus for " + getName(); |
1307 |
0 |
consensus.description = "Percent Identity"; |
1308 |
|
} |
1309 |
879 |
return consensus; |
1310 |
|
} |
1311 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 4 |
Complexity Density: 0.27 |
|
1312 |
0 |
public List<AlignmentAnnotation> getSSConsensus(List<String> ssSources)... |
1313 |
|
{ |
1314 |
|
|
1315 |
0 |
int aWidth = this.getWidth(); |
1316 |
|
|
1317 |
|
|
1318 |
|
|
1319 |
0 |
if (aWidth < 0) |
1320 |
|
{ |
1321 |
0 |
return null; |
1322 |
|
} |
1323 |
0 |
if (ssConsensus == null && ssSources != null) |
1324 |
|
{ |
1325 |
0 |
ssConsensus = new ArrayList<AlignmentAnnotation>(); |
1326 |
|
|
1327 |
0 |
for (String ssSource : ssSources) |
1328 |
|
{ |
1329 |
0 |
AlignmentAnnotation aa = new AlignmentAnnotation("", "", |
1330 |
|
new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH); |
1331 |
|
|
1332 |
|
|
1333 |
0 |
aa.visible = Constants.SS_ALL_PROVIDERS.equals(ssSource); |
1334 |
0 |
aa.hasText = true; |
1335 |
0 |
aa.autoCalculated = true; |
1336 |
0 |
aa.groupRef = this; |
1337 |
|
|
1338 |
0 |
aa.label = Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " " |
1339 |
|
+ ssSource + " " + getName(); |
1340 |
0 |
aa.description = ssSource |
1341 |
|
+ Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " for " |
1342 |
|
+ getName(); |
1343 |
0 |
ssConsensus.add(aa); |
1344 |
|
} |
1345 |
|
|
1346 |
|
} |
1347 |
0 |
return ssConsensus; |
1348 |
|
} |
1349 |
|
|
1350 |
|
|
1351 |
|
|
1352 |
|
|
1353 |
|
|
1354 |
|
@param |
1355 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
1356 |
0 |
public void setConservationRow(AlignmentAnnotation aan)... |
1357 |
|
{ |
1358 |
0 |
if (conservation == null) |
1359 |
|
{ |
1360 |
0 |
conservation = aan; |
1361 |
|
} |
1362 |
|
} |
1363 |
|
|
1364 |
|
|
1365 |
|
|
1366 |
|
|
1367 |
|
@return |
1368 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 2 |
Complexity Density: 0.25 |
|
1369 |
0 |
public AlignmentAnnotation getConservationRow()... |
1370 |
|
{ |
1371 |
0 |
if (conservation == null) |
1372 |
|
{ |
1373 |
0 |
conservation = new AlignmentAnnotation("", "", new Annotation[1], 0f, |
1374 |
|
11f, AlignmentAnnotation.BAR_GRAPH); |
1375 |
|
} |
1376 |
|
|
1377 |
0 |
conservation.hasText = true; |
1378 |
0 |
conservation.autoCalculated = true; |
1379 |
0 |
conservation.groupRef = this; |
1380 |
0 |
conservation.label = "Conservation for " + getName(); |
1381 |
0 |
conservation.description = "Conservation for group " + getName() |
1382 |
|
+ " less than " + consPercGaps + "% gaps"; |
1383 |
0 |
return conservation; |
1384 |
|
} |
1385 |
|
|
1386 |
|
|
1387 |
|
|
1388 |
|
@return |
1389 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1390 |
0 |
public boolean hasAnnotationRows()... |
1391 |
|
{ |
1392 |
0 |
return consensus != null || conservation != null; |
1393 |
|
} |
1394 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 6 |
Complexity Density: 0.55 |
|
1395 |
0 |
public SequenceI getConsensusSeq()... |
1396 |
|
{ |
1397 |
0 |
getConsensus(); |
1398 |
0 |
StringBuffer seqs = new StringBuffer(); |
1399 |
0 |
for (int i = 0; i < consensus.annotations.length; i++) |
1400 |
|
{ |
1401 |
0 |
if (consensus.annotations[i] != null) |
1402 |
|
{ |
1403 |
0 |
String desc = consensus.annotations[i].description; |
1404 |
0 |
if (desc.length() > 1 && desc.charAt(0) == '[') |
1405 |
|
{ |
1406 |
0 |
seqs.append(desc.charAt(1)); |
1407 |
|
} |
1408 |
|
else |
1409 |
|
{ |
1410 |
0 |
seqs.append(consensus.annotations[i].displayCharacter); |
1411 |
|
} |
1412 |
|
} |
1413 |
|
} |
1414 |
|
|
1415 |
0 |
SequenceI sq = new Sequence("Group" + getName() + " Consensus", |
1416 |
|
seqs.toString()); |
1417 |
0 |
sq.setDescription("Percentage Identity Consensus " |
1418 |
0 |
+ ((ignoreGapsInConsensus) ? " without gaps" : "")); |
1419 |
0 |
return sq; |
1420 |
|
} |
1421 |
|
|
|
|
| 50% |
Uncovered Elements: 3 (6) |
Complexity: 3 |
Complexity Density: 0.75 |
|
1422 |
48 |
public void setIgnoreGapsConsensus(boolean state)... |
1423 |
|
{ |
1424 |
48 |
if (this.ignoreGapsInConsensus != state && consensus != null) |
1425 |
|
{ |
1426 |
0 |
ignoreGapsInConsensus = state; |
1427 |
0 |
recalcConservation(); |
1428 |
|
} |
1429 |
48 |
ignoreGapsInConsensus = state; |
1430 |
|
} |
1431 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1432 |
53701 |
public boolean getIgnoreGapsConsensus()... |
1433 |
|
{ |
1434 |
53701 |
return ignoreGapsInConsensus; |
1435 |
|
} |
1436 |
|
|
1437 |
|
|
1438 |
|
@param |
1439 |
|
|
1440 |
|
|
|
|
| 50% |
Uncovered Elements: 3 (6) |
Complexity: 3 |
Complexity Density: 0.75 |
|
1441 |
57 |
public void setshowSequenceLogo(boolean showSequenceLogo)... |
1442 |
|
{ |
1443 |
|
|
1444 |
57 |
if (this.showSequenceLogo != showSequenceLogo && consensus != null) |
1445 |
|
{ |
1446 |
0 |
this.showSequenceLogo = showSequenceLogo; |
1447 |
0 |
recalcConservation(); |
1448 |
|
} |
1449 |
57 |
this.showSequenceLogo = showSequenceLogo; |
1450 |
|
} |
1451 |
|
|
1452 |
|
|
1453 |
|
|
1454 |
|
@param |
1455 |
|
|
1456 |
|
|
1457 |
|
|
|
|
| 50% |
Uncovered Elements: 3 (6) |
Complexity: 3 |
Complexity Density: 0.75 |
|
1458 |
57 |
public void setShowConsensusHistogram(boolean showConsHist)... |
1459 |
|
{ |
1460 |
|
|
1461 |
57 |
if (showConsensusHistogram != showConsHist && consensus != null) |
1462 |
|
{ |
1463 |
0 |
this.showConsensusHistogram = showConsHist; |
1464 |
0 |
recalcConservation(); |
1465 |
|
} |
1466 |
57 |
this.showConsensusHistogram = showConsHist; |
1467 |
|
} |
1468 |
|
|
1469 |
|
|
1470 |
|
|
1471 |
|
@return |
1472 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1473 |
872 |
public boolean isShowConsensusHistogram()... |
1474 |
|
{ |
1475 |
872 |
return showConsensusHistogram; |
1476 |
|
} |
1477 |
|
|
1478 |
|
|
1479 |
|
|
1480 |
|
|
1481 |
|
@param |
1482 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1483 |
57 |
public void setNormaliseSequenceLogo(boolean norm)... |
1484 |
|
{ |
1485 |
57 |
normaliseSequenceLogo = norm; |
1486 |
|
} |
1487 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1488 |
872 |
public boolean isNormaliseSequenceLogo()... |
1489 |
|
{ |
1490 |
872 |
return normaliseSequenceLogo; |
1491 |
|
} |
1492 |
|
|
|
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 5 |
Complexity Density: 0.38 |
|
1493 |
0 |
@Override... |
1494 |
|
|
1495 |
|
|
1496 |
|
|
1497 |
|
public AlignmentAnnotation[] getAlignmentAnnotation() |
1498 |
|
{ |
1499 |
|
|
1500 |
|
|
1501 |
0 |
ArrayList<AlignmentAnnotation> annot = new ArrayList<>(); |
1502 |
0 |
synchronized (sequences) |
1503 |
|
{ |
1504 |
0 |
for (SequenceI seq : sequences) |
1505 |
|
{ |
1506 |
0 |
AlignmentAnnotation[] aa = seq.getAnnotation(); |
1507 |
0 |
if (aa != null) |
1508 |
|
{ |
1509 |
0 |
for (AlignmentAnnotation al : aa) |
1510 |
|
{ |
1511 |
0 |
if (al.groupRef == this) |
1512 |
|
{ |
1513 |
0 |
annot.add(al); |
1514 |
|
} |
1515 |
|
} |
1516 |
|
} |
1517 |
|
} |
1518 |
0 |
if (consensus != null) |
1519 |
|
{ |
1520 |
0 |
annot.add(consensus); |
1521 |
|
} |
1522 |
0 |
if (conservation != null) |
1523 |
|
{ |
1524 |
0 |
annot.add(conservation); |
1525 |
|
} |
1526 |
|
} |
1527 |
0 |
return annot.toArray(new AlignmentAnnotation[0]); |
1528 |
|
} |
1529 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1530 |
0 |
@Override... |
1531 |
|
public Iterable<AlignmentAnnotation> findAnnotation(String calcId) |
1532 |
|
{ |
1533 |
0 |
return AlignmentAnnotation.findAnnotation( |
1534 |
|
Arrays.asList(getAlignmentAnnotation()), calcId); |
1535 |
|
} |
1536 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1537 |
0 |
@Override... |
1538 |
|
public Iterable<AlignmentAnnotation> findAnnotations(SequenceI seq, |
1539 |
|
String calcId, String label) |
1540 |
|
{ |
1541 |
0 |
return AlignmentAnnotation.findAnnotations( |
1542 |
|
Arrays.asList(getAlignmentAnnotation()), seq, calcId, label); |
1543 |
|
} |
1544 |
|
|
1545 |
|
|
1546 |
|
|
1547 |
|
|
1548 |
|
@param |
1549 |
|
@return |
1550 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1551 |
0 |
public boolean hasAnnotation(String calcId)... |
1552 |
|
{ |
1553 |
0 |
return AlignmentAnnotation |
1554 |
|
.hasAnnotation(Arrays.asList(getAlignmentAnnotation()), calcId); |
1555 |
|
} |
1556 |
|
|
1557 |
|
|
1558 |
|
|
1559 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
1560 |
15 |
public void clear()... |
1561 |
|
{ |
1562 |
15 |
synchronized (sequences) |
1563 |
|
{ |
1564 |
15 |
int before = sequences.size(); |
1565 |
15 |
sequences.clear(); |
1566 |
15 |
changeSupport.firePropertyChange(SEQ_GROUP_CHANGED, before, |
1567 |
|
sequences.size()); |
1568 |
|
} |
1569 |
|
} |
1570 |
|
|
1571 |
|
|
1572 |
|
|
1573 |
|
|
1574 |
|
|
1575 |
|
@param |
1576 |
|
|
1577 |
|
@param |
1578 |
|
|
1579 |
|
|
1580 |
|
@throws |
1581 |
|
|
1582 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1583 |
107 |
public void setContext(AnnotatedCollectionI ctx, boolean defined)... |
1584 |
|
{ |
1585 |
107 |
setContext(ctx); |
1586 |
106 |
this.isDefined = defined; |
1587 |
|
} |
1588 |
|
|
1589 |
|
|
1590 |
|
|
1591 |
|
|
1592 |
|
@param |
1593 |
|
|
1594 |
|
@throws |
1595 |
|
|
1596 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 4 |
Complexity Density: 0.67 |
|
1597 |
151 |
public void setContext(AnnotatedCollectionI ctx)... |
1598 |
|
{ |
1599 |
151 |
AnnotatedCollectionI ref = ctx; |
1600 |
397 |
while (ref != null) |
1601 |
|
{ |
1602 |
249 |
if (ref == this || ref.getContext() == ctx) |
1603 |
|
{ |
1604 |
3 |
throw new IllegalArgumentException( |
1605 |
|
"Circular reference in SequenceGroup.context"); |
1606 |
|
} |
1607 |
246 |
ref = ref.getContext(); |
1608 |
|
} |
1609 |
148 |
this.context = ctx; |
1610 |
|
} |
1611 |
|
|
1612 |
|
|
1613 |
|
|
1614 |
|
|
1615 |
|
@see |
1616 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1617 |
517 |
@Override... |
1618 |
|
public AnnotatedCollectionI getContext() |
1619 |
|
{ |
1620 |
517 |
return context; |
1621 |
|
} |
1622 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1623 |
9 |
public boolean isDefined()... |
1624 |
|
{ |
1625 |
9 |
return isDefined; |
1626 |
|
} |
1627 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
1628 |
51 |
public void setColourScheme(ColourSchemeI scheme)... |
1629 |
|
{ |
1630 |
51 |
if (cs == null) |
1631 |
|
{ |
1632 |
1 |
cs = new ResidueShader(); |
1633 |
|
} |
1634 |
51 |
cs.setColourScheme(scheme); |
1635 |
|
} |
1636 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1637 |
2 |
public void setGroupColourScheme(ResidueShaderI scheme)... |
1638 |
|
{ |
1639 |
2 |
cs = scheme; |
1640 |
|
} |
1641 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
1642 |
73 |
public ColourSchemeI getColourScheme()... |
1643 |
|
{ |
1644 |
73 |
return cs == null ? null : cs.getColourScheme(); |
1645 |
|
} |
1646 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1647 |
624797 |
public ResidueShaderI getGroupColourScheme()... |
1648 |
|
{ |
1649 |
624807 |
return cs; |
1650 |
|
} |
1651 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
1652 |
72 |
@Override... |
1653 |
|
public boolean isNucleotide() |
1654 |
|
{ |
1655 |
72 |
if (context != null) |
1656 |
|
{ |
1657 |
72 |
return context.isNucleotide(); |
1658 |
|
} |
1659 |
0 |
return false; |
1660 |
|
} |
1661 |
|
|
1662 |
|
|
1663 |
|
@param |
1664 |
|
@return |
1665 |
|
|
1666 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1667 |
35 |
public boolean contains(SequenceI seq1)... |
1668 |
|
{ |
1669 |
35 |
return sequences.contains(seq1); |
1670 |
|
} |
1671 |
|
|
1672 |
|
|
1673 |
|
@param |
1674 |
|
@param |
1675 |
|
@return |
1676 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1677 |
15 |
public boolean contains(SequenceI seq, int apos)... |
1678 |
|
{ |
1679 |
15 |
return (startRes <= apos && endRes >= apos) && sequences.contains(seq); |
1680 |
|
} |
1681 |
|
|
1682 |
|
|
1683 |
|
|
1684 |
|
|
1685 |
|
ContactMapHolder cmholder = new ContactMapHolder(); |
1686 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1687 |
0 |
@Override... |
1688 |
|
public Collection<ContactMatrixI> getContactMaps() |
1689 |
|
{ |
1690 |
0 |
return cmholder.getContactMaps(); |
1691 |
|
} |
1692 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1693 |
0 |
@Override... |
1694 |
|
public ContactMatrixI getContactMatrixFor(AlignmentAnnotation ann) |
1695 |
|
{ |
1696 |
0 |
return cmholder.getContactMatrixFor(ann); |
1697 |
|
} |
1698 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1699 |
0 |
@Override... |
1700 |
|
public ContactListI getContactListFor(AlignmentAnnotation _aa, int column) |
1701 |
|
{ |
1702 |
0 |
return cmholder.getContactListFor(_aa, column); |
1703 |
|
} |
1704 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
1705 |
0 |
@Override... |
1706 |
|
public AlignmentAnnotation addContactList(ContactMatrixI cm) |
1707 |
|
{ |
1708 |
0 |
AlignmentAnnotation aa = cmholder.addContactList(cm); |
1709 |
|
|
1710 |
0 |
Annotation _aa[] = new Annotation[getWidth()]; |
1711 |
0 |
Annotation dummy = new Annotation(0.0f); |
1712 |
0 |
for (int i = 0; i < _aa.length; _aa[i++] = dummy) |
1713 |
|
{ |
1714 |
0 |
; |
1715 |
|
} |
1716 |
0 |
aa.annotations = _aa; |
1717 |
|
|
1718 |
0 |
return aa; |
1719 |
|
} |
1720 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1721 |
0 |
@Override... |
1722 |
|
public void addContactListFor(AlignmentAnnotation annotation, |
1723 |
|
ContactMatrixI cm) |
1724 |
|
{ |
1725 |
0 |
cmholder.addContactListFor(annotation, cm); |
1726 |
|
} |
1727 |
|
|
1728 |
|
} |