1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.analysis; |
22 |
|
|
23 |
|
import jalview.datamodel.AlignmentAnnotation; |
24 |
|
import jalview.datamodel.AlignmentView; |
25 |
|
import jalview.datamodel.BinaryNode; |
26 |
|
import jalview.datamodel.NodeTransformI; |
27 |
|
import jalview.datamodel.Sequence; |
28 |
|
import jalview.datamodel.SequenceI; |
29 |
|
import jalview.datamodel.SequenceNode; |
30 |
|
import jalview.io.NewickFile; |
31 |
|
|
32 |
|
import java.util.ArrayList; |
33 |
|
import java.util.Enumeration; |
34 |
|
import java.util.List; |
35 |
|
import java.util.Vector; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
|
|
| 42.1% |
Uncovered Elements: 147 (254) |
Complexity: 68 |
Complexity Density: 0.44 |
|
41 |
|
public class TreeModel |
42 |
|
{ |
43 |
|
|
44 |
|
SequenceI[] sequences; |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
private AlignmentView seqData; |
51 |
|
|
52 |
|
int noseqs; |
53 |
|
|
54 |
|
BinaryNode top; |
55 |
|
|
56 |
|
double maxDistValue; |
57 |
|
|
58 |
|
double maxheight; |
59 |
|
|
60 |
|
int ycount; |
61 |
|
|
62 |
|
Vector<BinaryNode> node; |
63 |
|
|
64 |
|
boolean hasDistances = true; |
65 |
|
|
66 |
|
boolean hasBootstrap = false; |
67 |
|
|
68 |
|
private boolean hasRootDistance = true; |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
@param |
75 |
|
|
76 |
|
@param |
77 |
|
|
78 |
|
@param |
79 |
|
|
80 |
|
@param |
81 |
|
|
82 |
|
|
|
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
83 |
20 |
public TreeModel(SequenceI[] seqs, AlignmentView odata,... |
84 |
|
NewickFile treefile, AlignmentAnnotation[] leafAnnotations) |
85 |
|
{ |
86 |
20 |
this(seqs, treefile.getTree(), treefile.HasDistances(), |
87 |
|
treefile.HasBootstrap(), treefile.HasRootDistance()); |
88 |
20 |
seqData = odata; |
89 |
20 |
if (leafAnnotations != null) |
90 |
|
{ |
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
} |
100 |
|
else |
101 |
|
{ |
102 |
20 |
associateLeavesToSequences(seqs); |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
@param |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
111 |
0 |
public TreeModel(TreeBuilder tree)... |
112 |
|
{ |
113 |
0 |
this(tree.getSequences(), tree.getTopNode(), tree.hasDistances(), |
114 |
|
tree.hasBootstrap(), tree.hasRootDistance()); |
115 |
0 |
seqData = tree.getOriginalData(); |
116 |
|
} |
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
@param |
122 |
|
@param |
123 |
|
@param |
124 |
|
@param |
125 |
|
@param |
126 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
127 |
20 |
public TreeModel(SequenceI[] seqs, BinaryNode root, boolean hasDist,... |
128 |
|
boolean hasBoot, boolean hasRootDist) |
129 |
|
{ |
130 |
20 |
this.sequences = seqs; |
131 |
20 |
top = root; |
132 |
|
|
133 |
20 |
hasDistances = hasDist; |
134 |
20 |
hasBootstrap = hasBoot; |
135 |
20 |
hasRootDistance = hasRootDist; |
136 |
|
|
137 |
20 |
maxheight = findHeight(top); |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
@param |
142 |
|
|
|
|
| 93.1% |
Uncovered Elements: 2 (29) |
Complexity: 5 |
Complexity Density: 0.24 |
|
143 |
20 |
public void associateLeavesToSequences(SequenceI[] seqs)... |
144 |
|
{ |
145 |
20 |
SequenceIdMatcher algnIds = new SequenceIdMatcher(seqs); |
146 |
|
|
147 |
20 |
Vector<BinaryNode> leaves = findLeaves(top); |
148 |
|
|
149 |
20 |
int i = 0; |
150 |
20 |
int namesleft = seqs.length; |
151 |
|
|
152 |
20 |
SequenceNode j; |
153 |
20 |
SequenceI nam; |
154 |
20 |
String realnam; |
155 |
20 |
Vector<SequenceI> one2many = new Vector<SequenceI>(); |
156 |
|
|
157 |
228 |
while (i < leaves.size()) |
158 |
|
{ |
159 |
|
|
160 |
208 |
j = (SequenceNode) leaves.elementAt(i++); |
161 |
208 |
realnam = j.getName(); |
162 |
208 |
nam = null; |
163 |
|
|
164 |
208 |
if (namesleft > -1) |
165 |
|
{ |
166 |
208 |
nam = algnIds.findIdMatch(realnam); |
167 |
|
} |
168 |
|
|
169 |
208 |
if (nam != null) |
170 |
|
{ |
171 |
170 |
j.setElement(nam); |
172 |
170 |
if (one2many.contains(nam)) |
173 |
|
{ |
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
} |
179 |
|
else |
180 |
|
{ |
181 |
170 |
one2many.addElement(nam); |
182 |
170 |
namesleft--; |
183 |
|
} |
184 |
|
} |
185 |
|
else |
186 |
|
{ |
187 |
38 |
j.setElement(new Sequence(realnam, "THISISAPLACEHLDER")); |
188 |
38 |
j.setPlaceholder(true); |
189 |
|
} |
190 |
|
} |
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
@return |
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
204 |
4 |
public String print()... |
205 |
|
{ |
206 |
4 |
NewickFile fout = new NewickFile(getTopNode()); |
207 |
|
|
208 |
4 |
return fout.print(hasBootstrap(), hasDistances(), hasRootDistance()); |
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|
|
214 |
|
} |
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
|
220 |
|
@param |
221 |
|
|
222 |
|
|
|
|
| 0% |
Uncovered Elements: 35 (35) |
Complexity: 8 |
Complexity Density: 0.38 |
|
223 |
0 |
public void updatePlaceHolders(List<SequenceI> list)... |
224 |
|
{ |
225 |
0 |
Vector<BinaryNode> leaves = findLeaves(top); |
226 |
|
|
227 |
0 |
int sz = leaves.size(); |
228 |
0 |
SequenceIdMatcher seqmatcher = null; |
229 |
0 |
int i = 0; |
230 |
|
|
231 |
0 |
while (i < sz) |
232 |
|
{ |
233 |
0 |
SequenceNode leaf = (SequenceNode) leaves.elementAt(i++); |
234 |
|
|
235 |
0 |
if (list.contains(leaf.element())) |
236 |
|
{ |
237 |
0 |
leaf.setPlaceholder(false); |
238 |
|
} |
239 |
|
else |
240 |
|
{ |
241 |
0 |
if (seqmatcher == null) |
242 |
|
{ |
243 |
|
|
244 |
0 |
SequenceI[] seqs = new SequenceI[list.size()]; |
245 |
|
|
246 |
0 |
for (int j = 0; j < seqs.length; j++) |
247 |
|
{ |
248 |
0 |
seqs[j] = list.get(j); |
249 |
|
} |
250 |
|
|
251 |
0 |
seqmatcher = new SequenceIdMatcher(seqs); |
252 |
|
} |
253 |
|
|
254 |
0 |
SequenceI nam = seqmatcher.findIdMatch(leaf.getName()); |
255 |
|
|
256 |
0 |
if (nam != null) |
257 |
|
{ |
258 |
0 |
if (!leaf.isPlaceholder()) |
259 |
|
{ |
260 |
|
|
261 |
|
|
262 |
|
|
263 |
|
|
264 |
|
} |
265 |
0 |
leaf.setPlaceholder(false); |
266 |
0 |
leaf.setElement(nam); |
267 |
|
} |
268 |
|
else |
269 |
|
{ |
270 |
0 |
if (!leaf.isPlaceholder()) |
271 |
|
{ |
272 |
|
|
273 |
0 |
leaf.setElement( |
274 |
|
new Sequence(leaf.getName(), "THISISAPLACEHLDER")); |
275 |
|
} |
276 |
0 |
leaf.setPlaceholder(true); |
277 |
|
|
278 |
|
} |
279 |
|
} |
280 |
|
} |
281 |
|
} |
282 |
|
|
283 |
|
|
284 |
|
|
285 |
|
|
286 |
|
|
287 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
288 |
0 |
public void renameAssociatedNodes()... |
289 |
|
{ |
290 |
0 |
applyToNodes(new NodeTransformI() |
291 |
|
{ |
292 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
293 |
0 |
@Override... |
294 |
|
public void transform(BinaryNode nd) |
295 |
|
{ |
296 |
0 |
Object el = nd.element(); |
297 |
0 |
if (el != null && el instanceof SequenceI) |
298 |
|
{ |
299 |
0 |
nd.setName(((SequenceI) el).getName()); |
300 |
|
} |
301 |
|
} |
302 |
|
}); |
303 |
|
} |
304 |
|
|
305 |
|
|
306 |
|
|
307 |
|
|
308 |
|
@param |
309 |
|
|
310 |
|
|
311 |
|
@return |
312 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
313 |
40 |
public Vector<BinaryNode> findLeaves(BinaryNode top2)... |
314 |
|
{ |
315 |
40 |
Vector<BinaryNode> leaves = new Vector<BinaryNode>(); |
316 |
40 |
findLeaves(top2, leaves); |
317 |
40 |
return leaves; |
318 |
|
} |
319 |
|
|
320 |
|
|
321 |
|
|
322 |
|
|
323 |
|
@param |
324 |
|
|
325 |
|
@param |
326 |
|
|
327 |
|
|
328 |
|
@return |
329 |
|
|
|
|
| 83.3% |
Uncovered Elements: 2 (12) |
Complexity: 4 |
Complexity Density: 0.5 |
|
330 |
792 |
Vector<BinaryNode> findLeaves(BinaryNode nd, Vector<BinaryNode> leaves)... |
331 |
|
{ |
332 |
792 |
if (nd == null) |
333 |
|
{ |
334 |
0 |
return leaves; |
335 |
|
} |
336 |
|
|
337 |
792 |
if ((nd.left() == null) && (nd.right() == null)) |
338 |
|
|
339 |
|
{ |
340 |
416 |
leaves.addElement(nd); |
341 |
|
|
342 |
416 |
return leaves; |
343 |
|
} |
344 |
|
else |
345 |
|
{ |
346 |
|
|
347 |
|
|
348 |
|
|
349 |
|
|
350 |
376 |
findLeaves(nd.left(), leaves); |
351 |
376 |
findLeaves(nd.right(), leaves); |
352 |
|
} |
353 |
|
|
354 |
376 |
return leaves; |
355 |
|
} |
356 |
|
|
357 |
|
|
358 |
|
|
359 |
|
|
360 |
|
@param |
361 |
|
|
362 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 4 |
Complexity Density: 0.44 |
|
363 |
0 |
void printNode(BinaryNode nd)... |
364 |
|
{ |
365 |
0 |
if (nd == null) |
366 |
|
{ |
367 |
0 |
return; |
368 |
|
} |
369 |
|
|
370 |
0 |
if ((nd.left() == null) && (nd.right() == null)) |
371 |
|
{ |
372 |
|
|
373 |
0 |
jalview.bin.Console |
374 |
|
.outPrintln("Leaf = " + ((SequenceI) nd.element()).getName()); |
375 |
0 |
jalview.bin.Console.outPrintln("Dist " + nd.dist); |
376 |
0 |
jalview.bin.Console.outPrintln("Boot " + nd.getBootstrap()); |
377 |
|
} |
378 |
|
else |
379 |
|
{ |
380 |
0 |
jalview.bin.Console.outPrintln("Dist " + nd.dist); |
381 |
0 |
printNode((BinaryNode) nd.left()); |
382 |
0 |
printNode((BinaryNode) nd.right()); |
383 |
|
} |
384 |
|
} |
385 |
|
|
386 |
|
|
387 |
|
|
388 |
|
|
389 |
|
@return |
390 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
391 |
0 |
public double getMaxHeight()... |
392 |
|
{ |
393 |
0 |
return maxheight; |
394 |
|
} |
395 |
|
|
396 |
|
|
397 |
|
|
398 |
|
|
399 |
|
|
400 |
|
|
401 |
|
|
402 |
|
|
403 |
|
|
404 |
|
|
405 |
|
@param |
406 |
|
@see |
407 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
408 |
0 |
public List<BinaryNode> groupNodes(float threshold)... |
409 |
|
{ |
410 |
0 |
List<BinaryNode> groups = new ArrayList<BinaryNode>(); |
411 |
0 |
_groupNodes(groups, getTopNode(), threshold); |
412 |
0 |
return groups; |
413 |
|
} |
414 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
415 |
0 |
protected void _groupNodes(List<BinaryNode> groups, BinaryNode nd,... |
416 |
|
float threshold) |
417 |
|
{ |
418 |
0 |
if (nd == null) |
419 |
|
{ |
420 |
0 |
return; |
421 |
|
} |
422 |
|
|
423 |
0 |
if ((nd.height / maxheight) > threshold) |
424 |
|
{ |
425 |
0 |
groups.add(nd); |
426 |
|
} |
427 |
|
else |
428 |
|
{ |
429 |
0 |
_groupNodes(groups, nd.left(), threshold); |
430 |
0 |
_groupNodes(groups, nd.right(), threshold); |
431 |
|
} |
432 |
|
} |
433 |
|
|
434 |
|
|
435 |
|
|
436 |
|
|
437 |
|
@param |
438 |
|
|
439 |
|
|
440 |
|
@return |
441 |
|
|
|
|
| 90.9% |
Uncovered Elements: 2 (22) |
Complexity: 6 |
Complexity Density: 0.43 |
|
442 |
1048 |
public double findHeight(BinaryNode nd)... |
443 |
|
{ |
444 |
1048 |
if (nd == null) |
445 |
|
{ |
446 |
0 |
return maxheight; |
447 |
|
} |
448 |
|
|
449 |
1048 |
if ((nd.left() == null) && (nd.right() == null)) |
450 |
|
{ |
451 |
548 |
nd.height = nd.parent().height + nd.dist; |
452 |
|
|
453 |
548 |
if (nd.height > maxheight) |
454 |
|
{ |
455 |
64 |
return nd.height; |
456 |
|
} |
457 |
|
else |
458 |
|
{ |
459 |
484 |
return maxheight; |
460 |
|
} |
461 |
|
} |
462 |
|
else |
463 |
|
{ |
464 |
500 |
if (nd.parent() != null) |
465 |
|
{ |
466 |
452 |
nd.height = nd.parent().height + nd.dist; |
467 |
|
} |
468 |
|
else |
469 |
|
{ |
470 |
48 |
maxheight = 0; |
471 |
48 |
nd.height = (float) 0.0; |
472 |
|
} |
473 |
|
|
474 |
500 |
maxheight = findHeight((BinaryNode) (nd.left())); |
475 |
500 |
maxheight = findHeight((BinaryNode) (nd.right())); |
476 |
|
} |
477 |
|
|
478 |
500 |
return maxheight; |
479 |
|
} |
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
@param |
485 |
|
|
486 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
487 |
0 |
void printN(BinaryNode nd)... |
488 |
|
{ |
489 |
0 |
if (nd == null) |
490 |
|
{ |
491 |
0 |
return; |
492 |
|
} |
493 |
|
|
494 |
0 |
if ((nd.left() != null) && (nd.right() != null)) |
495 |
|
{ |
496 |
0 |
printN((BinaryNode) nd.left()); |
497 |
0 |
printN((BinaryNode) nd.right()); |
498 |
|
} |
499 |
|
else |
500 |
|
{ |
501 |
0 |
jalview.bin.Console.outPrintln( |
502 |
|
" name = " + ((SequenceI) nd.element()).getName()); |
503 |
|
} |
504 |
|
|
505 |
0 |
jalview.bin.Console.outPrintln( |
506 |
|
" dist = " + nd.dist + " " + nd.count + " " + nd.height); |
507 |
|
} |
508 |
|
|
509 |
|
|
510 |
|
|
511 |
|
|
512 |
|
@param |
513 |
|
|
514 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
515 |
14 |
public void reCount(BinaryNode nd)... |
516 |
|
{ |
517 |
14 |
ycount = 0; |
518 |
|
|
519 |
|
|
520 |
14 |
_reCount(nd); |
521 |
|
} |
522 |
|
|
523 |
|
|
524 |
|
|
525 |
|
|
526 |
|
|
527 |
|
|
528 |
|
@param |
529 |
|
|
530 |
|
|
|
|
| 86.7% |
Uncovered Elements: 2 (15) |
Complexity: 4 |
Complexity Density: 0.36 |
|
531 |
326 |
void _reCount(BinaryNode nd)... |
532 |
|
{ |
533 |
|
|
534 |
|
|
535 |
|
|
536 |
|
|
537 |
|
|
538 |
|
|
539 |
326 |
if (nd == null) |
540 |
|
{ |
541 |
0 |
return; |
542 |
|
} |
543 |
|
|
544 |
|
|
545 |
326 |
if ((nd.left() != null) && (nd.right() != null)) |
546 |
|
{ |
547 |
|
|
548 |
156 |
_reCount((BinaryNode) nd.left()); |
549 |
156 |
_reCount((BinaryNode) nd.right()); |
550 |
|
|
551 |
156 |
BinaryNode l = (BinaryNode) nd.left(); |
552 |
156 |
BinaryNode r = (BinaryNode) nd.right(); |
553 |
|
|
554 |
156 |
nd.count = l.count + r.count; |
555 |
156 |
nd.ycount = (l.ycount + r.ycount) / 2; |
556 |
|
} |
557 |
|
else |
558 |
|
{ |
559 |
170 |
nd.count = 1; |
560 |
170 |
nd.ycount = ycount++; |
561 |
|
} |
562 |
|
|
563 |
|
} |
564 |
|
|
565 |
|
|
566 |
|
|
567 |
|
|
568 |
|
@param |
569 |
|
|
570 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
571 |
0 |
public void swapNodes(BinaryNode nd)... |
572 |
|
{ |
573 |
0 |
if (nd == null) |
574 |
|
{ |
575 |
0 |
return; |
576 |
|
} |
577 |
|
|
578 |
0 |
BinaryNode tmp = (BinaryNode) nd.left(); |
579 |
|
|
580 |
0 |
nd.setLeft(nd.right()); |
581 |
0 |
nd.setRight(tmp); |
582 |
|
} |
583 |
|
|
584 |
|
|
585 |
|
|
586 |
|
|
587 |
|
@param |
588 |
|
|
589 |
|
@param |
590 |
|
|
591 |
|
|
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 8 |
Complexity Density: 0.4 |
|
592 |
0 |
void changeDirection(BinaryNode nd, BinaryNode dir)... |
593 |
|
{ |
594 |
0 |
if (nd == null) |
595 |
|
{ |
596 |
0 |
return; |
597 |
|
} |
598 |
|
|
599 |
0 |
if (nd.parent() != top) |
600 |
|
{ |
601 |
0 |
changeDirection((BinaryNode) nd.parent(), nd); |
602 |
|
|
603 |
0 |
BinaryNode tmp = (BinaryNode) nd.parent(); |
604 |
|
|
605 |
0 |
if (dir == nd.left()) |
606 |
|
{ |
607 |
0 |
nd.setParent(dir); |
608 |
0 |
nd.setLeft(tmp); |
609 |
|
} |
610 |
0 |
else if (dir == nd.right()) |
611 |
|
{ |
612 |
0 |
nd.setParent(dir); |
613 |
0 |
nd.setRight(tmp); |
614 |
|
} |
615 |
|
} |
616 |
|
else |
617 |
|
{ |
618 |
0 |
if (dir == nd.left()) |
619 |
|
{ |
620 |
0 |
nd.setParent(nd.left()); |
621 |
|
|
622 |
0 |
if (top.left() == nd) |
623 |
|
{ |
624 |
0 |
nd.setRight(top.right()); |
625 |
|
} |
626 |
|
else |
627 |
|
{ |
628 |
0 |
nd.setRight(top.left()); |
629 |
|
} |
630 |
|
} |
631 |
|
else |
632 |
|
{ |
633 |
0 |
nd.setParent(nd.right()); |
634 |
|
|
635 |
0 |
if (top.left() == nd) |
636 |
|
{ |
637 |
0 |
nd.setLeft(top.right()); |
638 |
|
} |
639 |
|
else |
640 |
|
{ |
641 |
0 |
nd.setLeft(top.left()); |
642 |
|
} |
643 |
|
} |
644 |
|
} |
645 |
|
} |
646 |
|
|
647 |
|
|
648 |
|
|
649 |
|
|
650 |
|
@return |
651 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
652 |
61 |
public BinaryNode getTopNode()... |
653 |
|
{ |
654 |
61 |
return top; |
655 |
|
} |
656 |
|
|
657 |
|
|
658 |
|
|
659 |
|
@return |
660 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
661 |
4 |
public boolean hasDistances()... |
662 |
|
{ |
663 |
4 |
return hasDistances; |
664 |
|
} |
665 |
|
|
666 |
|
|
667 |
|
|
668 |
|
@return |
669 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
670 |
4 |
public boolean hasBootstrap()... |
671 |
|
{ |
672 |
4 |
return hasBootstrap; |
673 |
|
} |
674 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
675 |
4 |
public boolean hasRootDistance()... |
676 |
|
{ |
677 |
4 |
return hasRootDistance; |
678 |
|
} |
679 |
|
|
680 |
|
|
681 |
|
|
682 |
|
|
683 |
|
@param |
684 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
685 |
0 |
public void applyToNodes(NodeTransformI nodeTransformI)... |
686 |
|
{ |
687 |
0 |
for (Enumeration<BinaryNode> nodes = node.elements(); nodes |
688 |
|
.hasMoreElements(); nodeTransformI |
689 |
|
.transform(nodes.nextElement())) |
690 |
|
{ |
691 |
0 |
; |
692 |
|
} |
693 |
|
} |
694 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
695 |
14 |
public AlignmentView getOriginalData()... |
696 |
|
{ |
697 |
14 |
return seqData; |
698 |
|
} |
699 |
|
} |