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