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.util.ArrayList; |
24 |
|
import java.util.Arrays; |
25 |
|
import java.util.Collection; |
26 |
|
import java.util.Collections; |
27 |
|
import java.util.HashMap; |
28 |
|
import java.util.Iterator; |
29 |
|
import java.util.List; |
30 |
|
import java.util.Locale; |
31 |
|
import java.util.Map; |
32 |
|
import java.util.Map.Entry; |
33 |
|
|
34 |
|
import jalview.analysis.Rna; |
35 |
|
import jalview.analysis.SecStrConsensus.SimpleBP; |
36 |
|
import jalview.analysis.WUSSParseException; |
37 |
|
import jalview.structure.StructureImportSettings; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
@author |
43 |
|
@version |
44 |
|
|
|
|
| 74.4% |
Uncovered Elements: 206 (804) |
Complexity: 299 |
Complexity Density: 0.65 |
|
45 |
|
public class AlignmentAnnotation |
46 |
|
{ |
47 |
|
|
48 |
|
private static final String ANNOTATION_ID_PREFIX = "ann"; |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
public static final int SEQUENCE_PROFILE = 0; |
54 |
|
|
55 |
|
public static final int STRUCTURE_PROFILE = 1; |
56 |
|
|
57 |
|
public static final int CDNA_PROFILE = 2; |
58 |
|
|
59 |
|
private static long counter = 0; |
60 |
|
|
61 |
|
private long noOfSequencesIncluded = -1; |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
public boolean autoCalculated = false; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
public String annotationId; |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
public SequenceI sequenceRef; |
79 |
|
|
80 |
|
|
81 |
|
public String label; |
82 |
|
|
83 |
|
|
84 |
|
public String description; |
85 |
|
|
86 |
|
|
87 |
|
public Annotation[] annotations; |
88 |
|
|
89 |
|
public List<SimpleBP> bps = null; |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
public SequenceFeature[] _rnasecstr = null; |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
private long invalidrnastruc = -2; |
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
private StructureImportSettings.TFType tfType = StructureImportSettings.TFType.DEFAULT; |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
89 |
public void setTFType(StructureImportSettings.TFType t)... |
108 |
|
{ |
109 |
89 |
tfType = t; |
110 |
|
} |
111 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
0 |
public StructureImportSettings.TFType getTFType()... |
113 |
|
{ |
114 |
0 |
return tfType; |
115 |
|
} |
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
@param |
122 |
|
|
|
|
| 93.3% |
Uncovered Elements: 1 (15) |
Complexity: 5 |
Complexity Density: 0.45 |
|
123 |
891 |
private void _updateRnaSecStr(CharSequence rnaAnnotation)... |
124 |
|
{ |
125 |
891 |
try |
126 |
|
{ |
127 |
891 |
_rnasecstr = Rna.getHelixMap(rnaAnnotation); |
128 |
479 |
invalidrnastruc = -1; |
129 |
|
} catch (WUSSParseException px) |
130 |
|
{ |
131 |
|
|
132 |
412 |
invalidrnastruc = px.getProblemPos(); |
133 |
|
} |
134 |
891 |
if (invalidrnastruc > -1) |
135 |
|
{ |
136 |
412 |
return; |
137 |
|
} |
138 |
|
|
139 |
479 |
if (_rnasecstr != null && _rnasecstr.length > 0) |
140 |
|
{ |
141 |
|
|
142 |
479 |
isrna = true; |
143 |
479 |
showAllColLabels = true; |
144 |
479 |
scaleColLabel = true; |
145 |
479 |
_markRnaHelices(); |
146 |
|
} |
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
} |
151 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (15) |
Complexity: 4 |
Complexity Density: 0.36 |
|
152 |
479 |
private void _markRnaHelices()... |
153 |
|
{ |
154 |
479 |
int mxval = 0; |
155 |
|
|
156 |
|
|
157 |
|
|
158 |
9972 |
for (int x = 0; x < _rnasecstr.length; x++) |
159 |
|
{ |
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
9493 |
int val = 0; |
167 |
9493 |
try |
168 |
|
{ |
169 |
9493 |
val = Integer.valueOf(_rnasecstr[x].getFeatureGroup()); |
170 |
9493 |
if (mxval < val) |
171 |
|
{ |
172 |
223 |
mxval = val; |
173 |
|
} |
174 |
|
} catch (NumberFormatException q) |
175 |
|
{ |
176 |
|
} |
177 |
9493 |
; |
178 |
|
|
179 |
9493 |
annotations[_rnasecstr[x].getBegin()].value = val; |
180 |
9493 |
annotations[_rnasecstr[x].getEnd()].value = val; |
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
} |
185 |
479 |
setScore(mxval); |
186 |
|
} |
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
12 |
public SequenceFeature[] getRnaSecondaryStructure()... |
192 |
|
{ |
193 |
12 |
return this._rnasecstr; |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
200 |
4 |
public boolean rnaSecondaryStructureEquivalent(AlignmentAnnotation that)... |
201 |
|
{ |
202 |
4 |
return rnaSecondaryStructureEquivalent(that, true); |
203 |
|
} |
204 |
|
|
|
|
| 70.3% |
Uncovered Elements: 11 (37) |
Complexity: 13 |
Complexity Density: 0.62 |
|
205 |
4 |
public boolean rnaSecondaryStructureEquivalent(AlignmentAnnotation that,... |
206 |
|
boolean compareType) |
207 |
|
{ |
208 |
4 |
SequenceFeature[] thisSfArray = this.getRnaSecondaryStructure(); |
209 |
4 |
SequenceFeature[] thatSfArray = that.getRnaSecondaryStructure(); |
210 |
4 |
if (thisSfArray == null || thatSfArray == null) |
211 |
|
{ |
212 |
0 |
return thisSfArray == null && thatSfArray == null; |
213 |
|
} |
214 |
4 |
if (thisSfArray.length != thatSfArray.length) |
215 |
|
{ |
216 |
1 |
return false; |
217 |
|
} |
218 |
3 |
Arrays.sort(thisSfArray, new SFSortByEnd()); |
219 |
|
|
220 |
3 |
Arrays.sort(thatSfArray, new SFSortByEnd()); |
221 |
|
|
222 |
15 |
for (int i = 0; i < thisSfArray.length; i++) |
223 |
|
{ |
224 |
13 |
SequenceFeature thisSf = thisSfArray[i]; |
225 |
13 |
SequenceFeature thatSf = thatSfArray[i]; |
226 |
13 |
if (compareType) |
227 |
|
{ |
228 |
13 |
if (thisSf.getType() == null || thatSf.getType() == null) |
229 |
|
{ |
230 |
0 |
if (thisSf.getType() == null && thatSf.getType() == null) |
231 |
|
{ |
232 |
0 |
continue; |
233 |
|
} |
234 |
|
else |
235 |
|
{ |
236 |
0 |
return false; |
237 |
|
} |
238 |
|
} |
239 |
13 |
if (!thisSf.getType().equals(thatSf.getType())) |
240 |
|
{ |
241 |
0 |
return false; |
242 |
|
} |
243 |
|
} |
244 |
13 |
if (!(thisSf.getBegin() == thatSf.getBegin() |
245 |
|
&& thisSf.getEnd() == thatSf.getEnd())) |
246 |
|
{ |
247 |
1 |
return false; |
248 |
|
} |
249 |
|
} |
250 |
2 |
return true; |
251 |
|
|
252 |
|
} |
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
private Map<Integer, Annotation> sequenceMapping; |
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
public float graphMin; |
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
public float graphMax; |
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
public double score = Double.NaN; |
273 |
|
|
274 |
|
|
275 |
|
|
276 |
|
|
277 |
|
public boolean hasScore = false; |
278 |
|
|
279 |
|
public GraphLine threshold; |
280 |
|
|
281 |
|
|
282 |
|
|
283 |
|
|
284 |
|
public boolean editable = false; |
285 |
|
|
286 |
|
|
287 |
|
public boolean hasIcons; |
288 |
|
|
289 |
|
|
290 |
|
public boolean hasText; |
291 |
|
|
292 |
|
|
293 |
|
public boolean visible = true; |
294 |
|
|
295 |
|
|
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
public boolean hasData=true; |
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
public int graphGroup = -1; |
304 |
|
|
305 |
|
|
306 |
|
public int height = 0; |
307 |
|
|
308 |
|
public int graph = 0; |
309 |
|
|
310 |
|
public int graphHeight = 40; |
311 |
|
|
312 |
|
public boolean padGaps = false; |
313 |
|
|
314 |
|
public static final int NO_GRAPH = 0; |
315 |
|
|
316 |
|
public static final int BAR_GRAPH = 1; |
317 |
|
|
318 |
|
public static final int LINE_GRAPH = 2; |
319 |
|
|
320 |
|
public static final int CONTACT_MAP = 4; |
321 |
|
|
322 |
|
|
323 |
|
|
324 |
|
|
325 |
|
|
326 |
|
public static final String CONTACT_MAP_NOGROUPS = "CMNOGRPS"; |
327 |
|
|
328 |
|
public boolean belowAlignment = true; |
329 |
|
|
330 |
|
public SequenceGroup groupRef = null; |
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
|
public boolean showAllColLabels = false; |
336 |
|
|
337 |
|
|
338 |
|
|
339 |
|
|
340 |
|
public boolean scaleColLabel = false; |
341 |
|
|
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
public boolean centreColLabels = false; |
346 |
|
|
347 |
|
private boolean isrna; |
348 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.6 |
|
349 |
8 |
public static int getGraphValueFromString(String string)... |
350 |
|
{ |
351 |
8 |
if (string.equalsIgnoreCase("BAR_GRAPH")) |
352 |
|
{ |
353 |
0 |
return BAR_GRAPH; |
354 |
|
} |
355 |
8 |
else if (string.equalsIgnoreCase("LINE_GRAPH")) |
356 |
|
{ |
357 |
0 |
return LINE_GRAPH; |
358 |
|
} |
359 |
|
else |
360 |
|
{ |
361 |
8 |
return NO_GRAPH; |
362 |
|
} |
363 |
|
} |
364 |
|
|
365 |
|
|
366 |
|
|
367 |
|
|
368 |
|
@param |
369 |
|
|
370 |
|
@param |
371 |
|
|
372 |
|
@param |
373 |
|
|
374 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
375 |
34055 |
public AlignmentAnnotation(String label, String description,... |
376 |
|
Annotation[] annotations) |
377 |
|
{ |
378 |
34055 |
setAnnotationId(); |
379 |
|
|
380 |
34055 |
editable = true; |
381 |
34055 |
this.label = label; |
382 |
34055 |
this.description = description; |
383 |
34055 |
this.annotations = annotations; |
384 |
|
|
385 |
34055 |
validateRangeAndDisplay(); |
386 |
|
} |
387 |
|
|
388 |
|
|
389 |
|
|
390 |
|
|
391 |
|
|
|
|
| 96.5% |
Uncovered Elements: 2 (57) |
Complexity: 73 |
Complexity Density: 2.35 |
|
392 |
2698 |
void areLabelsSecondaryStructure()... |
393 |
|
{ |
394 |
2698 |
boolean nonSSLabel = false; |
395 |
2698 |
isrna = false; |
396 |
2698 |
StringBuffer rnastring = new StringBuffer(); |
397 |
|
|
398 |
2698 |
char firstChar = 0; |
399 |
158906 |
for (int i = 0; i < annotations.length; i++) |
400 |
|
{ |
401 |
|
|
402 |
156208 |
if (annotations[i] == null) |
403 |
|
{ |
404 |
50470 |
continue; |
405 |
|
} |
406 |
105738 |
if (annotations[i].secondaryStructure == 'H' |
407 |
|
|| annotations[i].secondaryStructure == 'E') |
408 |
|
{ |
409 |
|
|
410 |
|
|
411 |
26028 |
hasIcons |= true; |
412 |
|
} |
413 |
|
else |
414 |
|
|
415 |
|
{ |
416 |
|
|
417 |
|
|
418 |
|
|
419 |
|
|
420 |
|
|
421 |
|
|
422 |
|
|
423 |
79710 |
if (annotations[i].secondaryStructure == '(' |
424 |
|
|| annotations[i].secondaryStructure == '[' |
425 |
|
|| annotations[i].secondaryStructure == '<' |
426 |
|
|| annotations[i].secondaryStructure == '{' |
427 |
|
|| annotations[i].secondaryStructure == 'A' |
428 |
|
|
429 |
|
|
430 |
|
|| annotations[i].secondaryStructure == 'D' |
431 |
|
|
432 |
|
|
433 |
|
|| annotations[i].secondaryStructure == 'F' |
434 |
|
|
435 |
|
|
436 |
|
|
437 |
|
|
438 |
|
|| annotations[i].secondaryStructure == 'J' |
439 |
|
|| annotations[i].secondaryStructure == 'K' |
440 |
|
|| annotations[i].secondaryStructure == 'L' |
441 |
|
|| annotations[i].secondaryStructure == 'M' |
442 |
|
|| annotations[i].secondaryStructure == 'N' |
443 |
|
|| annotations[i].secondaryStructure == 'O' |
444 |
|
|| annotations[i].secondaryStructure == 'P' |
445 |
|
|| annotations[i].secondaryStructure == 'Q' |
446 |
|
|| annotations[i].secondaryStructure == 'R' |
447 |
|
|
448 |
|
|
449 |
|
|| annotations[i].secondaryStructure == 'U' |
450 |
|
|| annotations[i].secondaryStructure == 'V' |
451 |
|
|| annotations[i].secondaryStructure == 'W' |
452 |
|
|
453 |
|
|| annotations[i].secondaryStructure == 'Y' |
454 |
|
|| annotations[i].secondaryStructure == 'Z') |
455 |
|
{ |
456 |
8777 |
hasIcons |= true; |
457 |
8777 |
isrna |= true; |
458 |
|
} |
459 |
|
} |
460 |
|
|
461 |
|
|
462 |
|
|
463 |
|
|
464 |
105738 |
if (annotations[i].displayCharacter == null |
465 |
|
|| annotations[i].displayCharacter.length() == 0) |
466 |
|
{ |
467 |
62870 |
rnastring.append('.'); |
468 |
62870 |
continue; |
469 |
|
} |
470 |
42868 |
if (annotations[i].displayCharacter.length() == 1) |
471 |
|
{ |
472 |
20940 |
firstChar = annotations[i].displayCharacter.charAt(0); |
473 |
|
|
474 |
|
|
475 |
20940 |
if (annotations[i].secondaryStructure != ' ' && !hasIcons && |
476 |
|
|
477 |
|
|
478 |
|
|
479 |
|
|
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
firstChar != ' ' && firstChar != '$' && firstChar != 0xCE |
484 |
|
&& firstChar != '(' && firstChar != '[' && firstChar != '<' |
485 |
|
&& firstChar != '{' && firstChar != 'A' && firstChar != 'B' |
486 |
|
&& firstChar != 'C' && firstChar != 'D' && firstChar != 'E' |
487 |
|
&& firstChar != 'F' && firstChar != 'G' && firstChar != 'H' |
488 |
|
&& firstChar != 'I' && firstChar != 'J' && firstChar != 'K' |
489 |
|
&& firstChar != 'L' && firstChar != 'M' && firstChar != 'N' |
490 |
|
&& firstChar != 'O' && firstChar != 'P' && firstChar != 'Q' |
491 |
|
&& firstChar != 'R' && firstChar != 'S' && firstChar != 'T' |
492 |
|
&& firstChar != 'U' && firstChar != 'V' && firstChar != 'W' |
493 |
|
&& firstChar != 'X' && firstChar != 'Y' && firstChar != 'Z' |
494 |
|
&& firstChar != '-' |
495 |
|
&& firstChar < jalview.schemes.ResidueProperties.aaIndex.length) |
496 |
|
{ |
497 |
17 |
if (jalview.schemes.ResidueProperties.aaIndex[firstChar] < 23) |
498 |
|
|
499 |
|
|
500 |
|
|
501 |
|
|
502 |
|
|
503 |
|
{ |
504 |
11 |
nonSSLabel = true; |
505 |
|
} |
506 |
|
} |
507 |
|
} |
508 |
|
else |
509 |
|
{ |
510 |
21928 |
rnastring.append(annotations[i].displayCharacter.charAt(1)); |
511 |
|
} |
512 |
|
|
513 |
42868 |
if (annotations[i].displayCharacter.length() > 0) |
514 |
|
{ |
515 |
42868 |
hasText = true; |
516 |
|
} |
517 |
|
} |
518 |
|
|
519 |
2698 |
if (nonSSLabel) |
520 |
|
{ |
521 |
1 |
hasIcons = false; |
522 |
12 |
for (int j = 0; j < annotations.length; j++) |
523 |
|
{ |
524 |
11 |
if (annotations[j] != null |
525 |
|
&& annotations[j].secondaryStructure != ' ') |
526 |
|
{ |
527 |
11 |
annotations[j].displayCharacter = String |
528 |
|
.valueOf(annotations[j].secondaryStructure); |
529 |
11 |
annotations[j].secondaryStructure = ' '; |
530 |
|
} |
531 |
|
|
532 |
|
} |
533 |
|
} |
534 |
|
else |
535 |
|
{ |
536 |
2697 |
if (isrna) |
537 |
|
{ |
538 |
649 |
_updateRnaSecStr(new AnnotCharSequence()); |
539 |
|
} |
540 |
|
} |
541 |
|
} |
542 |
|
|
543 |
|
|
544 |
|
|
545 |
|
|
546 |
|
|
547 |
|
@author |
548 |
|
|
549 |
|
|
|
|
| 92.6% |
Uncovered Elements: 2 (27) |
Complexity: 17 |
Complexity Density: 1.55 |
|
550 |
|
private class AnnotCharSequence implements CharSequence |
551 |
|
{ |
552 |
|
int offset = 0; |
553 |
|
|
554 |
|
int max = 0; |
555 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
556 |
891 |
public AnnotCharSequence()... |
557 |
|
{ |
558 |
891 |
this(0, annotations.length); |
559 |
|
} |
560 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
561 |
891 |
AnnotCharSequence(int start, int end)... |
562 |
|
{ |
563 |
891 |
offset = start; |
564 |
891 |
max = end; |
565 |
|
} |
566 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
567 |
0 |
@Override... |
568 |
|
public CharSequence subSequence(int start, int end) |
569 |
|
{ |
570 |
0 |
return new AnnotCharSequence(offset + start, offset + end); |
571 |
|
} |
572 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
573 |
38643 |
@Override... |
574 |
|
public int length() |
575 |
|
{ |
576 |
38643 |
return max - offset; |
577 |
|
} |
578 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 7 |
Complexity Density: 7 |
|
579 |
37994 |
@Override... |
580 |
|
public char charAt(int index) |
581 |
|
{ |
582 |
37994 |
return ((index + offset < 0) || (index + offset) >= max |
583 |
|
|| annotations[index + offset] == null |
584 |
|
|| (annotations[index + offset].secondaryStructure <= ' ') |
585 |
|
? ' ' |
586 |
15560 |
: annotations[index + offset].displayCharacter == null |
587 |
|
|| annotations[index |
588 |
|
+ offset].displayCharacter |
589 |
|
.length() == 0 |
590 |
|
? annotations[index |
591 |
|
+ offset].secondaryStructure |
592 |
|
: annotations[index |
593 |
|
+ offset].displayCharacter |
594 |
|
.charAt(0)); |
595 |
|
} |
596 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 6 |
Complexity Density: 1.2 |
|
597 |
242 |
@Override... |
598 |
|
public String toString() |
599 |
|
{ |
600 |
242 |
char[] string = new char[max - offset]; |
601 |
242 |
int mx = annotations.length; |
602 |
|
|
603 |
15134 |
for (int i = offset; i < mx; i++) |
604 |
|
{ |
605 |
14892 |
string[i] = (annotations[i] == null |
606 |
|
|| (annotations[i].secondaryStructure <= 32)) |
607 |
|
? ' ' |
608 |
6150 |
: (annotations[i].displayCharacter == null |
609 |
|
|| annotations[i].displayCharacter |
610 |
|
.length() == 0 |
611 |
|
? annotations[i].secondaryStructure |
612 |
|
: annotations[i].displayCharacter |
613 |
|
.charAt(0)); |
614 |
|
} |
615 |
242 |
return new String(string); |
616 |
|
} |
617 |
|
}; |
618 |
|
|
619 |
|
private long _lastrnaannot = -1; |
620 |
|
|
|
|
| 90.9% |
Uncovered Elements: 1 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
621 |
1543 |
public String getRNAStruc()... |
622 |
|
{ |
623 |
1543 |
if (isrna) |
624 |
|
{ |
625 |
242 |
String rnastruc = new AnnotCharSequence().toString(); |
626 |
242 |
if (_lastrnaannot != rnastruc.hashCode()) |
627 |
|
{ |
628 |
|
|
629 |
242 |
_lastrnaannot = rnastruc.hashCode(); |
630 |
242 |
_updateRnaSecStr(rnastruc); |
631 |
|
} |
632 |
242 |
return rnastruc; |
633 |
|
} |
634 |
1301 |
return null; |
635 |
|
} |
636 |
|
|
637 |
|
|
638 |
|
|
639 |
|
|
640 |
|
@param |
641 |
|
|
642 |
|
@param |
643 |
|
|
644 |
|
@param |
645 |
|
|
646 |
|
@param |
647 |
|
|
648 |
|
@param |
649 |
|
|
650 |
|
@param |
651 |
|
|
652 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
653 |
1307 |
public AlignmentAnnotation(String label, String description,... |
654 |
|
Annotation[] annotations, float min, float max, int graphType) |
655 |
|
{ |
656 |
1307 |
setAnnotationId(); |
657 |
|
|
658 |
1307 |
editable = graphType == 0; |
659 |
|
|
660 |
1307 |
this.label = label; |
661 |
1307 |
this.description = description; |
662 |
1307 |
this.annotations = annotations; |
663 |
1307 |
graph = graphType; |
664 |
1307 |
graphMin = min; |
665 |
1307 |
graphMax = max; |
666 |
1307 |
validateRangeAndDisplay(); |
667 |
|
} |
668 |
|
|
669 |
|
|
670 |
|
|
671 |
|
|
672 |
|
|
|
|
| 83.1% |
Uncovered Elements: 10 (59) |
Complexity: 18 |
Complexity Density: 0.55 |
|
673 |
36144 |
public void validateRangeAndDisplay()... |
674 |
|
{ |
675 |
|
|
676 |
36144 |
if (annotations == null) |
677 |
|
{ |
678 |
33446 |
visible = false; |
679 |
33446 |
invalidrnastruc = -1; |
680 |
33446 |
return; |
681 |
|
} |
682 |
|
|
683 |
2698 |
int graphType = graph; |
684 |
2698 |
float min = graphMin; |
685 |
2698 |
float max = graphMax; |
686 |
2698 |
boolean drawValues = true; |
687 |
2698 |
_linecolour = null; |
688 |
2698 |
if (min == max) |
689 |
|
{ |
690 |
1292 |
min = 999999999; |
691 |
120693 |
for (int i = 0; i < annotations.length; i++) |
692 |
|
{ |
693 |
119401 |
if (annotations[i] == null) |
694 |
|
{ |
695 |
49068 |
continue; |
696 |
|
} |
697 |
|
|
698 |
70333 |
if (drawValues && annotations[i].displayCharacter != null |
699 |
|
&& annotations[i].displayCharacter.length() > 1) |
700 |
|
{ |
701 |
716 |
drawValues = false; |
702 |
|
} |
703 |
|
|
704 |
70333 |
if (annotations[i].value > max) |
705 |
|
{ |
706 |
343 |
max = annotations[i].value; |
707 |
|
} |
708 |
|
|
709 |
70333 |
if (annotations[i].value < min) |
710 |
|
{ |
711 |
1056 |
min = annotations[i].value; |
712 |
|
} |
713 |
70333 |
if (_linecolour == null && annotations[i].colour != null) |
714 |
|
{ |
715 |
34 |
_linecolour = annotations[i].colour; |
716 |
|
} |
717 |
|
} |
718 |
|
|
719 |
1292 |
if (min > 0) |
720 |
|
{ |
721 |
497 |
min = 0; |
722 |
|
} |
723 |
|
else |
724 |
|
{ |
725 |
795 |
if (max < 0) |
726 |
|
{ |
727 |
0 |
max = 0; |
728 |
|
} |
729 |
|
} |
730 |
|
} |
731 |
|
|
732 |
2698 |
graphMin = min; |
733 |
2698 |
graphMax = max; |
734 |
|
|
735 |
2698 |
areLabelsSecondaryStructure(); |
736 |
|
|
737 |
2698 |
if (!drawValues && graphType != NO_GRAPH) |
738 |
|
{ |
739 |
0 |
for (int i = 0; i < annotations.length; i++) |
740 |
|
{ |
741 |
0 |
if (annotations[i] != null) |
742 |
|
{ |
743 |
0 |
annotations[i].displayCharacter = ""; |
744 |
|
} |
745 |
|
} |
746 |
|
} |
747 |
|
} |
748 |
|
|
749 |
|
|
750 |
|
|
751 |
|
|
752 |
|
|
753 |
|
@param |
754 |
|
|
|
|
| 84.9% |
Uncovered Elements: 13 (86) |
Complexity: 16 |
Complexity Density: 0.29 |
|
755 |
321 |
public AlignmentAnnotation(AlignmentAnnotation annotation)... |
756 |
|
{ |
757 |
321 |
setAnnotationId(); |
758 |
321 |
this.label = new String(annotation.label); |
759 |
321 |
if (annotation.description != null) |
760 |
|
{ |
761 |
321 |
this.description = new String(annotation.description); |
762 |
|
} |
763 |
321 |
this.graphMin = annotation.graphMin; |
764 |
321 |
this.graphMax = annotation.graphMax; |
765 |
321 |
this.graph = annotation.graph; |
766 |
321 |
this.graphHeight = annotation.graphHeight; |
767 |
321 |
this.graphGroup = annotation.graphGroup; |
768 |
321 |
this.groupRef = annotation.groupRef; |
769 |
321 |
this.editable = annotation.editable; |
770 |
321 |
this.autoCalculated = annotation.autoCalculated; |
771 |
321 |
this.hasIcons = annotation.hasIcons; |
772 |
321 |
this.hasText = annotation.hasText; |
773 |
321 |
this.height = annotation.height; |
774 |
321 |
this.label = annotation.label; |
775 |
321 |
this.padGaps = annotation.padGaps; |
776 |
321 |
this.visible = annotation.visible; |
777 |
321 |
this.hasData = annotation.hasData; |
778 |
321 |
this.centreColLabels = annotation.centreColLabels; |
779 |
321 |
this.scaleColLabel = annotation.scaleColLabel; |
780 |
321 |
this.showAllColLabels = annotation.showAllColLabels; |
781 |
321 |
this.calcId = annotation.calcId; |
782 |
321 |
if (annotation.properties != null) |
783 |
|
{ |
784 |
321 |
properties = new HashMap<>(); |
785 |
321 |
for (Map.Entry<String, String> val : annotation.properties.entrySet()) |
786 |
|
{ |
787 |
16 |
properties.put(val.getKey(), val.getValue()); |
788 |
|
} |
789 |
|
} |
790 |
? |
if (this.hasScore = annotation.hasScore) |
791 |
|
{ |
792 |
66 |
this.score = annotation.score; |
793 |
|
} |
794 |
321 |
if (annotation.threshold != null) |
795 |
|
{ |
796 |
0 |
threshold = new GraphLine(annotation.threshold); |
797 |
|
} |
798 |
321 |
Annotation[] ann = annotation.annotations; |
799 |
321 |
if (annotation.annotations != null) |
800 |
|
{ |
801 |
320 |
this.annotations = new Annotation[ann.length]; |
802 |
32232 |
for (int i = 0; i < ann.length; i++) |
803 |
|
{ |
804 |
31912 |
if (ann[i] != null) |
805 |
|
{ |
806 |
22103 |
annotations[i] = new Annotation(ann[i]); |
807 |
22103 |
if (_linecolour != null) |
808 |
|
{ |
809 |
0 |
_linecolour = annotations[i].colour; |
810 |
|
} |
811 |
|
} |
812 |
|
} |
813 |
|
} |
814 |
321 |
if (annotation.sequenceRef != null) |
815 |
|
{ |
816 |
313 |
this.sequenceRef = annotation.sequenceRef; |
817 |
313 |
if (annotation.sequenceMapping != null) |
818 |
|
{ |
819 |
313 |
Integer p = null; |
820 |
313 |
sequenceMapping = new HashMap<>(); |
821 |
313 |
Iterator<Integer> pos = annotation.sequenceMapping.keySet() |
822 |
|
.iterator(); |
823 |
21787 |
while (pos.hasNext()) |
824 |
|
{ |
825 |
|
|
826 |
21474 |
p = pos.next(); |
827 |
21474 |
Annotation a = annotation.sequenceMapping.get(p); |
828 |
21474 |
if (a == null) |
829 |
|
{ |
830 |
0 |
continue; |
831 |
|
} |
832 |
21474 |
if (ann != null) |
833 |
|
{ |
834 |
4269867 |
for (int i = 0; i < ann.length; i++) |
835 |
|
{ |
836 |
4248393 |
if (ann[i] == a) |
837 |
|
{ |
838 |
21431 |
sequenceMapping.put(p, annotations[i]); |
839 |
|
} |
840 |
|
} |
841 |
|
} |
842 |
|
} |
843 |
|
} |
844 |
|
else |
845 |
|
{ |
846 |
0 |
this.sequenceMapping = null; |
847 |
|
} |
848 |
|
|
849 |
|
} |
850 |
|
|
851 |
|
|
852 |
|
{ |
853 |
|
|
854 |
|
} |
855 |
321 |
validateRangeAndDisplay(); |
856 |
|
} |
857 |
|
|
858 |
|
|
859 |
|
|
860 |
|
|
861 |
|
|
862 |
|
@param |
863 |
|
@param |
864 |
|
|
|
|
| 78.3% |
Uncovered Elements: 10 (46) |
Complexity: 12 |
Complexity Density: 0.46 |
|
865 |
27 |
public void restrict(int startRes, int endRes)... |
866 |
|
{ |
867 |
27 |
if (annotations == null) |
868 |
|
{ |
869 |
|
|
870 |
0 |
return; |
871 |
|
} |
872 |
27 |
if (startRes < 0) |
873 |
|
{ |
874 |
0 |
startRes = 0; |
875 |
|
} |
876 |
27 |
if (startRes >= annotations.length) |
877 |
|
{ |
878 |
0 |
startRes = annotations.length - 1; |
879 |
|
} |
880 |
27 |
if (endRes >= annotations.length) |
881 |
|
{ |
882 |
19 |
endRes = annotations.length - 1; |
883 |
|
} |
884 |
27 |
if (annotations == null) |
885 |
|
{ |
886 |
0 |
return; |
887 |
|
} |
888 |
27 |
Annotation[] temp = new Annotation[endRes - startRes + 1]; |
889 |
27 |
if (startRes < annotations.length) |
890 |
|
{ |
891 |
27 |
System.arraycopy(annotations, startRes, temp, 0, |
892 |
|
endRes - startRes + 1); |
893 |
|
} |
894 |
27 |
if (sequenceRef != null) |
895 |
|
{ |
896 |
|
|
897 |
21 |
int spos = sequenceRef.findPosition(startRes); |
898 |
21 |
int epos = sequenceRef.findPosition(endRes); |
899 |
21 |
if (sequenceMapping != null) |
900 |
|
{ |
901 |
21 |
Map<Integer, Annotation> newmapping = new HashMap<>(); |
902 |
21 |
Iterator<Integer> e = sequenceMapping.keySet().iterator(); |
903 |
1588 |
while (e.hasNext()) |
904 |
|
{ |
905 |
1567 |
Integer pos = e.next(); |
906 |
1567 |
if (pos.intValue() >= spos && pos.intValue() <= epos) |
907 |
|
{ |
908 |
1524 |
newmapping.put(pos, sequenceMapping.get(pos)); |
909 |
|
} |
910 |
|
} |
911 |
21 |
sequenceMapping.clear(); |
912 |
21 |
sequenceMapping = newmapping; |
913 |
|
} |
914 |
|
} |
915 |
27 |
annotations = temp; |
916 |
|
} |
917 |
|
|
918 |
|
|
919 |
|
|
920 |
|
|
921 |
|
@param |
922 |
|
|
923 |
|
@return |
924 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
925 |
0 |
public boolean padAnnotation(int length)... |
926 |
|
{ |
927 |
0 |
if (annotations == null) |
928 |
|
{ |
929 |
0 |
return true; |
930 |
|
|
931 |
|
} |
932 |
0 |
if (annotations.length < length) |
933 |
|
{ |
934 |
0 |
Annotation[] na = new Annotation[length]; |
935 |
0 |
System.arraycopy(annotations, 0, na, 0, annotations.length); |
936 |
0 |
annotations = na; |
937 |
0 |
return true; |
938 |
|
} |
939 |
0 |
return annotations.length > length; |
940 |
|
|
941 |
|
} |
942 |
|
|
943 |
|
|
944 |
|
|
945 |
|
|
946 |
|
@return |
947 |
|
|
|
|
| 50% |
Uncovered Elements: 17 (34) |
Complexity: 9 |
Complexity Density: 0.5 |
|
948 |
6 |
@Override... |
949 |
|
public String toString() |
950 |
|
{ |
951 |
6 |
if (annotations == null) |
952 |
|
{ |
953 |
0 |
return ""; |
954 |
|
} |
955 |
6 |
StringBuilder buffer = new StringBuilder(256); |
956 |
|
|
957 |
90 |
for (int i = 0; i < annotations.length; i++) |
958 |
|
{ |
959 |
84 |
if (annotations[i] != null) |
960 |
|
{ |
961 |
84 |
if (graph != 0) |
962 |
|
{ |
963 |
0 |
buffer.append(annotations[i].value); |
964 |
|
} |
965 |
84 |
else if (hasIcons) |
966 |
|
{ |
967 |
84 |
buffer.append(annotations[i].secondaryStructure); |
968 |
|
} |
969 |
|
else |
970 |
|
{ |
971 |
0 |
buffer.append(annotations[i].displayCharacter); |
972 |
|
} |
973 |
|
} |
974 |
|
|
975 |
84 |
buffer.append(", "); |
976 |
|
} |
977 |
|
|
978 |
6 |
if (label.indexOf("Consensus") == 0) |
979 |
|
{ |
980 |
0 |
buffer.append("\n"); |
981 |
|
|
982 |
0 |
for (int i = 0; i < annotations.length; i++) |
983 |
|
{ |
984 |
0 |
if (annotations[i] != null) |
985 |
|
{ |
986 |
0 |
buffer.append(annotations[i].description); |
987 |
|
} |
988 |
|
|
989 |
0 |
buffer.append(", "); |
990 |
|
} |
991 |
|
} |
992 |
|
|
993 |
6 |
return buffer.toString(); |
994 |
|
} |
995 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
996 |
1 |
public void setThreshold(GraphLine line)... |
997 |
|
{ |
998 |
1 |
threshold = line; |
999 |
|
} |
1000 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1001 |
36 |
public GraphLine getThreshold()... |
1002 |
|
{ |
1003 |
36 |
return threshold; |
1004 |
|
} |
1005 |
|
|
1006 |
|
|
1007 |
|
|
1008 |
|
|
1009 |
|
|
1010 |
|
|
1011 |
|
@param |
1012 |
|
@param |
1013 |
|
@param |
1014 |
|
|
|
|
| 91.3% |
Uncovered Elements: 2 (23) |
Complexity: 6 |
Complexity Density: 0.46 |
|
1015 |
657 |
public void createSequenceMapping(SequenceI seqRef, int startRes,... |
1016 |
|
boolean alreadyMapped) |
1017 |
|
{ |
1018 |
|
|
1019 |
657 |
if (seqRef == null) |
1020 |
|
{ |
1021 |
0 |
return; |
1022 |
|
} |
1023 |
657 |
sequenceRef = seqRef; |
1024 |
657 |
if (annotations == null) |
1025 |
|
{ |
1026 |
66 |
return; |
1027 |
|
} |
1028 |
591 |
sequenceMapping = new HashMap<>(); |
1029 |
|
|
1030 |
591 |
int seqPos; |
1031 |
|
|
1032 |
59390 |
for (int i = 0; i < annotations.length; i++) |
1033 |
|
{ |
1034 |
58799 |
if (annotations[i] != null) |
1035 |
|
{ |
1036 |
44883 |
if (alreadyMapped) |
1037 |
|
{ |
1038 |
43746 |
seqPos = seqRef.findPosition(i); |
1039 |
|
} |
1040 |
|
else |
1041 |
|
{ |
1042 |
1137 |
seqPos = i + startRes; |
1043 |
|
} |
1044 |
|
|
1045 |
44883 |
sequenceMapping.put(Integer.valueOf(seqPos), annotations[i]); |
1046 |
|
} |
1047 |
|
} |
1048 |
|
|
1049 |
|
} |
1050 |
|
|
1051 |
|
|
1052 |
|
|
1053 |
|
|
1054 |
|
|
1055 |
|
|
1056 |
|
|
|
|
| 96.7% |
Uncovered Elements: 1 (30) |
Complexity: 7 |
Complexity Density: 0.39 |
|
1057 |
1017 |
public void adjustForAlignment()... |
1058 |
|
{ |
1059 |
1017 |
if (sequenceRef == null) |
1060 |
|
{ |
1061 |
82 |
return; |
1062 |
|
} |
1063 |
|
|
1064 |
935 |
if (annotations == null) |
1065 |
|
{ |
1066 |
66 |
return; |
1067 |
|
} |
1068 |
|
|
1069 |
869 |
int a = 0, aSize = sequenceRef.getLength(); |
1070 |
|
|
1071 |
869 |
if (aSize == 0) |
1072 |
|
{ |
1073 |
|
|
1074 |
1 |
return; |
1075 |
|
} |
1076 |
|
|
1077 |
868 |
int position; |
1078 |
868 |
Annotation[] temp = new Annotation[aSize]; |
1079 |
868 |
Integer index; |
1080 |
868 |
if (sequenceMapping != null) |
1081 |
|
{ |
1082 |
86217 |
for (a = sequenceRef.getStart(); a <= sequenceRef.getEnd(); a++) |
1083 |
|
{ |
1084 |
85349 |
index = Integer.valueOf(a); |
1085 |
85349 |
Annotation annot = sequenceMapping.get(index); |
1086 |
85349 |
if (annot != null) |
1087 |
|
{ |
1088 |
58289 |
position = sequenceRef.findIndex(a) - 1; |
1089 |
|
|
1090 |
58289 |
temp[position] = annot; |
1091 |
|
} |
1092 |
|
} |
1093 |
|
} |
1094 |
868 |
annotations = temp; |
1095 |
|
} |
1096 |
|
|
1097 |
|
|
1098 |
|
|
1099 |
|
|
1100 |
|
|
1101 |
|
@return |
1102 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 4 |
Complexity Density: 0.33 |
|
1103 |
0 |
public int compactAnnotationArray()... |
1104 |
|
{ |
1105 |
0 |
int i = 0, iSize = annotations.length; |
1106 |
0 |
while (i < iSize) |
1107 |
|
{ |
1108 |
0 |
if (annotations[i] == null) |
1109 |
|
{ |
1110 |
0 |
if (i + 1 < iSize) |
1111 |
|
{ |
1112 |
0 |
System.arraycopy(annotations, i + 1, annotations, i, |
1113 |
|
iSize - i - 1); |
1114 |
|
} |
1115 |
0 |
iSize--; |
1116 |
|
} |
1117 |
|
else |
1118 |
|
{ |
1119 |
0 |
i++; |
1120 |
|
} |
1121 |
|
} |
1122 |
0 |
Annotation[] ann = annotations; |
1123 |
0 |
annotations = new Annotation[i]; |
1124 |
0 |
System.arraycopy(ann, 0, annotations, 0, i); |
1125 |
0 |
ann = null; |
1126 |
0 |
return iSize; |
1127 |
|
} |
1128 |
|
|
1129 |
|
|
1130 |
|
|
1131 |
|
|
1132 |
|
|
1133 |
|
|
1134 |
|
|
1135 |
|
|
1136 |
|
|
1137 |
|
@param |
1138 |
|
|
|
|
| 63.6% |
Uncovered Elements: 8 (22) |
Complexity: 15 |
Complexity Density: 1.07 |
|
1139 |
1148 |
public void setSequenceRef(SequenceI sequenceI)... |
1140 |
|
{ |
1141 |
1148 |
if (sequenceI != null) |
1142 |
|
{ |
1143 |
1145 |
if (sequenceRef != null) |
1144 |
|
{ |
1145 |
527 |
boolean rIsDs = sequenceRef.getDatasetSequence() == null, |
1146 |
|
tIsDs = sequenceI.getDatasetSequence() == null; |
1147 |
527 |
if (sequenceRef != sequenceI |
1148 |
|
&& (rIsDs && !tIsDs |
1149 |
|
&& sequenceRef != sequenceI.getDatasetSequence()) |
1150 |
|
&& (!rIsDs && tIsDs |
1151 |
|
&& sequenceRef.getDatasetSequence() != sequenceI) |
1152 |
|
&& (!rIsDs && !tIsDs |
1153 |
|
&& sequenceRef.getDatasetSequence() != sequenceI |
1154 |
|
.getDatasetSequence()) |
1155 |
|
&& !sequenceRef.equals(sequenceI)) |
1156 |
|
{ |
1157 |
|
|
1158 |
|
|
1159 |
0 |
sequenceRef = null; |
1160 |
0 |
if (sequenceMapping != null) |
1161 |
|
{ |
1162 |
0 |
sequenceMapping = null; |
1163 |
|
|
1164 |
|
} |
1165 |
0 |
createSequenceMapping(sequenceI, 1, true); |
1166 |
0 |
adjustForAlignment(); |
1167 |
|
} |
1168 |
|
else |
1169 |
|
{ |
1170 |
|
|
1171 |
527 |
sequenceRef = sequenceI; |
1172 |
|
} |
1173 |
|
} |
1174 |
|
else |
1175 |
|
{ |
1176 |
|
|
1177 |
618 |
createSequenceMapping(sequenceI, 1, true); |
1178 |
618 |
adjustForAlignment(); |
1179 |
|
} |
1180 |
|
} |
1181 |
|
else |
1182 |
|
{ |
1183 |
|
|
1184 |
3 |
sequenceMapping = null; |
1185 |
3 |
sequenceRef = null; |
1186 |
|
} |
1187 |
|
} |
1188 |
|
|
1189 |
|
|
1190 |
|
@return |
1191 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1192 |
0 |
public double getScore()... |
1193 |
|
{ |
1194 |
0 |
return score; |
1195 |
|
} |
1196 |
|
|
1197 |
|
|
1198 |
|
@param |
1199 |
|
|
1200 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1201 |
33904 |
public void setScore(double score)... |
1202 |
|
{ |
1203 |
33904 |
hasScore = true; |
1204 |
33904 |
this.score = score; |
1205 |
|
} |
1206 |
|
|
1207 |
|
|
1208 |
|
|
1209 |
|
@return |
1210 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1211 |
111 |
public boolean hasScore()... |
1212 |
|
{ |
1213 |
111 |
return hasScore || !Double.isNaN(score); |
1214 |
|
} |
1215 |
|
|
1216 |
|
|
1217 |
|
|
1218 |
|
|
1219 |
|
@param |
1220 |
|
@param |
1221 |
|
@param |
1222 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
1223 |
33422 |
public AlignmentAnnotation(String label, String description, double score)... |
1224 |
|
{ |
1225 |
33422 |
this(label, description, null); |
1226 |
33422 |
setScore(score); |
1227 |
|
} |
1228 |
|
|
1229 |
|
|
1230 |
|
|
1231 |
|
|
1232 |
|
@param |
1233 |
|
@param |
1234 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
1235 |
0 |
public AlignmentAnnotation(AlignmentAnnotation alignmentAnnotation,... |
1236 |
|
HiddenColumns hidden) |
1237 |
|
{ |
1238 |
0 |
this(alignmentAnnotation); |
1239 |
0 |
if (annotations == null) |
1240 |
|
{ |
1241 |
0 |
return; |
1242 |
|
} |
1243 |
0 |
makeVisibleAnnotation(hidden); |
1244 |
|
} |
1245 |
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 6 |
Complexity Density: 0.75 |
|
1246 |
0 |
public void setPadGaps(boolean padgaps, char gapchar)... |
1247 |
|
{ |
1248 |
0 |
this.padGaps = padgaps; |
1249 |
0 |
if (padgaps) |
1250 |
|
{ |
1251 |
0 |
hasText = true; |
1252 |
0 |
for (int i = 0; i < annotations.length; i++) |
1253 |
|
{ |
1254 |
0 |
if (annotations[i] == null) |
1255 |
|
{ |
1256 |
0 |
annotations[i] = new Annotation(String.valueOf(gapchar), null, |
1257 |
|
' ', 0f, null); |
1258 |
|
} |
1259 |
0 |
else if (annotations[i].displayCharacter == null |
1260 |
|
|| annotations[i].displayCharacter.equals(" ")) |
1261 |
|
{ |
1262 |
0 |
annotations[i].displayCharacter = String.valueOf(gapchar); |
1263 |
|
} |
1264 |
|
} |
1265 |
|
} |
1266 |
|
} |
1267 |
|
|
1268 |
|
|
1269 |
|
|
1270 |
|
|
1271 |
|
@param |
1272 |
|
@return |
1273 |
|
|
1274 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 4 |
Complexity Density: 0.67 |
|
1275 |
10 |
public String getDescription(boolean seqname)... |
1276 |
|
{ |
1277 |
10 |
if (seqname && this.sequenceRef != null) |
1278 |
|
{ |
1279 |
3 |
int i = description.toLowerCase(Locale.ROOT).indexOf("<html>"); |
1280 |
3 |
if (i > -1) |
1281 |
|
{ |
1282 |
|
|
1283 |
1 |
return "<html>" + sequenceRef.getName() + " : " |
1284 |
|
+ description.substring(i + 6); |
1285 |
|
} |
1286 |
2 |
return sequenceRef.getName() + " : " + description; |
1287 |
|
} |
1288 |
7 |
return description; |
1289 |
|
} |
1290 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1291 |
92 |
public boolean isValidStruc()... |
1292 |
|
{ |
1293 |
92 |
return invalidrnastruc == -1; |
1294 |
|
} |
1295 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1296 |
116852 |
public long getInvalidStrucPos()... |
1297 |
|
{ |
1298 |
116857 |
return invalidrnastruc; |
1299 |
|
} |
1300 |
|
|
1301 |
|
|
1302 |
|
|
1303 |
|
|
1304 |
|
protected String calcId = ""; |
1305 |
|
|
1306 |
|
|
1307 |
|
|
1308 |
|
|
1309 |
|
protected Map<String, String> properties = new HashMap<>(); |
1310 |
|
|
1311 |
|
|
1312 |
|
|
1313 |
|
|
1314 |
|
|
1315 |
|
public java.awt.Color _linecolour; |
1316 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1317 |
3040 |
public String getCalcId()... |
1318 |
|
{ |
1319 |
3040 |
return calcId; |
1320 |
|
} |
1321 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1322 |
471 |
public void setCalcId(String calcId)... |
1323 |
|
{ |
1324 |
471 |
this.calcId = calcId; |
1325 |
|
} |
1326 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1327 |
2875 |
public boolean isRNA()... |
1328 |
|
{ |
1329 |
2875 |
return isrna; |
1330 |
|
} |
1331 |
|
|
1332 |
|
|
1333 |
|
|
1334 |
|
|
1335 |
|
|
1336 |
|
@param |
1337 |
|
@param |
1338 |
|
|
1339 |
|
|
|
|
| 80% |
Uncovered Elements: 5 (25) |
Complexity: 8 |
Complexity Density: 0.62 |
|
1340 |
52 |
public void liftOver(SequenceI sq, Mapping sp2sq)... |
1341 |
|
{ |
1342 |
52 |
if (sp2sq.getMappedWidth() != sp2sq.getWidth()) |
1343 |
|
{ |
1344 |
|
|
1345 |
|
|
1346 |
0 |
throw new Error( |
1347 |
|
"liftOver currently not implemented for transfer of annotation between different types of seqeunce"); |
1348 |
|
} |
1349 |
52 |
boolean mapIsTo = (sp2sq != null) |
1350 |
|
? (sp2sq.getTo() == sq |
1351 |
|
|| sp2sq.getTo() == sq.getDatasetSequence()) |
1352 |
|
: false; |
1353 |
|
|
1354 |
|
|
1355 |
52 |
Map<Integer, Annotation> mapForsq = new HashMap<>(); |
1356 |
52 |
if (sequenceMapping != null) |
1357 |
|
{ |
1358 |
52 |
if (sp2sq != null) |
1359 |
|
{ |
1360 |
52 |
for (Entry<Integer, Annotation> ie : sequenceMapping.entrySet()) |
1361 |
|
{ |
1362 |
4751 |
Integer mpos = Integer |
1363 |
4751 |
.valueOf(mapIsTo ? sp2sq.getMappedPosition(ie.getKey()) |
1364 |
|
: sp2sq.getPosition(ie.getKey())); |
1365 |
4751 |
if (mpos >= sq.getStart() && mpos <= sq.getEnd()) |
1366 |
|
{ |
1367 |
4745 |
mapForsq.put(mpos, ie.getValue()); |
1368 |
|
} |
1369 |
|
} |
1370 |
52 |
sequenceMapping = mapForsq; |
1371 |
52 |
sequenceRef = sq; |
1372 |
52 |
adjustForAlignment(); |
1373 |
|
} |
1374 |
|
else |
1375 |
|
{ |
1376 |
|
|
1377 |
|
} |
1378 |
|
} |
1379 |
|
} |
1380 |
|
|
1381 |
|
|
1382 |
|
|
1383 |
|
|
1384 |
|
|
1385 |
|
|
1386 |
|
|
1387 |
|
@param |
1388 |
|
|
1389 |
|
|
1390 |
|
@param |
1391 |
|
|
1392 |
|
@param |
1393 |
|
|
1394 |
|
@param |
1395 |
|
|
1396 |
|
@param |
1397 |
|
|
1398 |
|
|
1399 |
|
|
1400 |
|
|
1401 |
|
|
|
|
| 0% |
Uncovered Elements: 38 (38) |
Complexity: 11 |
Complexity Density: 0.5 |
|
1402 |
0 |
public void remap(SequenceI newref, HashMap<Integer, int[]> mapping,... |
1403 |
|
int from, int to, int idxoffset) |
1404 |
|
{ |
1405 |
0 |
if (mapping != null) |
1406 |
|
{ |
1407 |
0 |
Map<Integer, Annotation> old = sequenceMapping; |
1408 |
0 |
Map<Integer, Annotation> remap = new HashMap<>(); |
1409 |
0 |
int index = -1; |
1410 |
0 |
for (int mp[] : mapping.values()) |
1411 |
|
{ |
1412 |
0 |
if (index++ < 0) |
1413 |
|
{ |
1414 |
0 |
continue; |
1415 |
|
} |
1416 |
0 |
Annotation ann = null; |
1417 |
0 |
if (from == -1) |
1418 |
|
{ |
1419 |
0 |
ann = sequenceMapping.get(Integer.valueOf(idxoffset + index)); |
1420 |
|
} |
1421 |
|
else |
1422 |
|
{ |
1423 |
0 |
if (mp != null && mp.length > from) |
1424 |
|
{ |
1425 |
0 |
ann = sequenceMapping.get(Integer.valueOf(mp[from])); |
1426 |
|
} |
1427 |
|
} |
1428 |
0 |
if (ann != null) |
1429 |
|
{ |
1430 |
0 |
if (to == -1) |
1431 |
|
{ |
1432 |
0 |
remap.put(Integer.valueOf(idxoffset + index), ann); |
1433 |
|
} |
1434 |
|
else |
1435 |
|
{ |
1436 |
0 |
if (to > -1 && to < mp.length) |
1437 |
|
{ |
1438 |
0 |
remap.put(Integer.valueOf(mp[to]), ann); |
1439 |
|
} |
1440 |
|
} |
1441 |
|
} |
1442 |
|
} |
1443 |
0 |
sequenceMapping = remap; |
1444 |
0 |
old.clear(); |
1445 |
0 |
if (newref != null) |
1446 |
|
{ |
1447 |
0 |
sequenceRef = newref; |
1448 |
|
} |
1449 |
0 |
adjustForAlignment(); |
1450 |
|
} |
1451 |
|
} |
1452 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
1453 |
12582 |
public String getProperty(String property)... |
1454 |
|
{ |
1455 |
12582 |
if (properties == null) |
1456 |
|
{ |
1457 |
0 |
return null; |
1458 |
|
} |
1459 |
12582 |
return properties.get(property); |
1460 |
|
} |
1461 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
1462 |
49 |
public void setProperty(String property, String value)... |
1463 |
|
{ |
1464 |
49 |
if (properties == null) |
1465 |
|
{ |
1466 |
0 |
properties = new HashMap<>(); |
1467 |
|
} |
1468 |
49 |
properties.put(property, value); |
1469 |
|
} |
1470 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1471 |
42 |
public boolean hasProperties()... |
1472 |
|
{ |
1473 |
42 |
return properties != null && properties.size() > 0; |
1474 |
|
} |
1475 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
1476 |
1 |
public Collection<String> getProperties()... |
1477 |
|
{ |
1478 |
1 |
if (properties == null) |
1479 |
|
{ |
1480 |
0 |
return Collections.emptyList(); |
1481 |
|
} |
1482 |
1 |
return properties.keySet(); |
1483 |
|
} |
1484 |
|
|
1485 |
|
|
1486 |
|
|
1487 |
|
|
1488 |
|
|
1489 |
|
@param |
1490 |
|
@return |
1491 |
|
|
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
1492 |
26199 |
public Annotation getAnnotationForPosition(int position)... |
1493 |
|
{ |
1494 |
26199 |
return sequenceMapping == null ? null : sequenceMapping.get(position); |
1495 |
|
|
1496 |
|
} |
1497 |
|
|
1498 |
|
|
1499 |
|
|
1500 |
|
|
1501 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1502 |
35683 |
protected final void setAnnotationId()... |
1503 |
|
{ |
1504 |
35683 |
this.annotationId = ANNOTATION_ID_PREFIX + Long.toString(nextId()); |
1505 |
|
} |
1506 |
|
|
1507 |
|
|
1508 |
|
|
1509 |
|
|
1510 |
|
|
1511 |
|
@param |
1512 |
|
@return |
1513 |
|
|
|
|
| 91.3% |
Uncovered Elements: 4 (46) |
Complexity: 12 |
Complexity Density: 0.46 |
|
1514 |
43 |
public String getDefaultRnaHelixSymbol(int column)... |
1515 |
|
{ |
1516 |
43 |
String result = "("; |
1517 |
43 |
if (annotations == null) |
1518 |
|
{ |
1519 |
1 |
return result; |
1520 |
|
} |
1521 |
|
|
1522 |
|
|
1523 |
|
|
1524 |
|
|
1525 |
|
|
1526 |
|
|
1527 |
150 |
for (int col = column - 1; col >= 0; col--) |
1528 |
|
{ |
1529 |
142 |
Annotation annotation = annotations[col]; |
1530 |
142 |
if (annotation == null) |
1531 |
|
{ |
1532 |
66 |
continue; |
1533 |
|
} |
1534 |
76 |
String displayed = annotation.displayCharacter; |
1535 |
76 |
if (displayed == null || displayed.length() != 1) |
1536 |
|
{ |
1537 |
0 |
continue; |
1538 |
|
} |
1539 |
76 |
char symbol = displayed.charAt(0); |
1540 |
76 |
if (!Rna.isOpeningParenthesis(symbol)) |
1541 |
|
{ |
1542 |
24 |
continue; |
1543 |
|
} |
1544 |
|
|
1545 |
|
|
1546 |
|
|
1547 |
|
|
1548 |
|
|
1549 |
|
|
1550 |
|
|
1551 |
52 |
String closer = String |
1552 |
|
.valueOf(Rna.getMatchingClosingParenthesis(symbol)); |
1553 |
52 |
String opener = String.valueOf(symbol); |
1554 |
52 |
int count = 0; |
1555 |
256 |
for (int j = col + 1; j < column; j++) |
1556 |
|
{ |
1557 |
204 |
if (annotations[j] != null) |
1558 |
|
{ |
1559 |
90 |
String s = annotations[j].displayCharacter; |
1560 |
90 |
if (closer.equals(s)) |
1561 |
|
{ |
1562 |
18 |
count++; |
1563 |
|
} |
1564 |
72 |
else if (opener.equals(s)) |
1565 |
|
{ |
1566 |
0 |
count--; |
1567 |
|
} |
1568 |
|
} |
1569 |
|
} |
1570 |
52 |
if (count < 1) |
1571 |
|
{ |
1572 |
34 |
return closer; |
1573 |
|
} |
1574 |
|
} |
1575 |
8 |
return result; |
1576 |
|
} |
1577 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1578 |
35683 |
protected static synchronized long nextId()... |
1579 |
|
{ |
1580 |
35683 |
return counter++; |
1581 |
|
} |
1582 |
|
|
1583 |
|
|
1584 |
|
|
1585 |
|
@return |
1586 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1587 |
5 |
public boolean isQuantitative()... |
1588 |
|
{ |
1589 |
5 |
return graphMin < graphMax; |
1590 |
|
} |
1591 |
|
|
1592 |
|
|
1593 |
|
@return |
1594 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1595 |
17638 |
public boolean isForDisplay()... |
1596 |
|
{ |
1597 |
17638 |
return hasData && visible; |
1598 |
|
} |
1599 |
|
|
1600 |
|
|
1601 |
|
|
1602 |
|
|
1603 |
|
|
1604 |
|
@param |
1605 |
|
|
1606 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
1607 |
2 |
public void makeVisibleAnnotation(HiddenColumns hiddenColumns)... |
1608 |
|
{ |
1609 |
2 |
if (annotations != null) |
1610 |
|
{ |
1611 |
1 |
makeVisibleAnnotation(0, annotations.length, hiddenColumns); |
1612 |
|
} |
1613 |
|
} |
1614 |
|
|
1615 |
|
|
1616 |
|
|
1617 |
|
|
1618 |
|
|
1619 |
|
@param |
1620 |
|
|
1621 |
|
@param |
1622 |
|
|
1623 |
|
@param |
1624 |
|
|
1625 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
1626 |
10 |
public void makeVisibleAnnotation(int start, int end,... |
1627 |
|
HiddenColumns hiddenColumns) |
1628 |
|
{ |
1629 |
10 |
if (annotations != null) |
1630 |
|
{ |
1631 |
9 |
if (hiddenColumns.hasHiddenColumns()) |
1632 |
|
{ |
1633 |
3 |
removeHiddenAnnotation(start, end, hiddenColumns); |
1634 |
|
} |
1635 |
|
else |
1636 |
|
{ |
1637 |
6 |
restrict(start, end); |
1638 |
|
} |
1639 |
|
} |
1640 |
|
} |
1641 |
|
|
1642 |
|
|
1643 |
|
|
1644 |
|
|
1645 |
|
@param |
1646 |
|
|
1647 |
|
@param |
1648 |
|
|
1649 |
|
@param |
1650 |
|
|
1651 |
|
|
|
|
| 96.9% |
Uncovered Elements: 1 (32) |
Complexity: 5 |
Complexity Density: 0.21 |
|
1652 |
3 |
private void removeHiddenAnnotation(int start, int end,... |
1653 |
|
HiddenColumns hiddenColumns) |
1654 |
|
{ |
1655 |
|
|
1656 |
3 |
ArrayList<Annotation[]> annels = new ArrayList<>(); |
1657 |
3 |
Annotation[] els = null; |
1658 |
|
|
1659 |
3 |
int w = 0; |
1660 |
|
|
1661 |
3 |
Iterator<int[]> blocks = hiddenColumns.getVisContigsIterator(start, |
1662 |
|
end + 1, false); |
1663 |
|
|
1664 |
3 |
int copylength; |
1665 |
3 |
int annotationLength; |
1666 |
9 |
while (blocks.hasNext()) |
1667 |
|
{ |
1668 |
6 |
int[] block = blocks.next(); |
1669 |
6 |
annotationLength = block[1] - block[0] + 1; |
1670 |
|
|
1671 |
6 |
if (blocks.hasNext()) |
1672 |
|
{ |
1673 |
|
|
1674 |
3 |
copylength = annotationLength; |
1675 |
|
} |
1676 |
|
else |
1677 |
|
{ |
1678 |
3 |
if (annotationLength + block[0] <= annotations.length) |
1679 |
|
{ |
1680 |
|
|
1681 |
2 |
copylength = annotationLength; |
1682 |
|
} |
1683 |
|
else |
1684 |
|
{ |
1685 |
|
|
1686 |
1 |
copylength = annotations.length - block[0]; |
1687 |
|
} |
1688 |
|
} |
1689 |
|
|
1690 |
6 |
els = new Annotation[annotationLength]; |
1691 |
6 |
annels.add(els); |
1692 |
6 |
System.arraycopy(annotations, block[0], els, 0, copylength); |
1693 |
6 |
w += annotationLength; |
1694 |
|
} |
1695 |
|
|
1696 |
3 |
if (w != 0) |
1697 |
|
{ |
1698 |
3 |
annotations = new Annotation[w]; |
1699 |
|
|
1700 |
3 |
w = 0; |
1701 |
3 |
for (Annotation[] chnk : annels) |
1702 |
|
{ |
1703 |
6 |
System.arraycopy(chnk, 0, annotations, w, chnk.length); |
1704 |
6 |
w += chnk.length; |
1705 |
|
} |
1706 |
|
} |
1707 |
|
} |
1708 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 10 |
Complexity Density: 2 |
|
1709 |
34 |
public static Iterable<AlignmentAnnotation> findAnnotations(... |
1710 |
|
Iterable<AlignmentAnnotation> list, SequenceI seq, String calcId, |
1711 |
|
String label) |
1712 |
|
{ |
1713 |
|
|
1714 |
34 |
ArrayList<AlignmentAnnotation> aa = new ArrayList<>(); |
1715 |
34 |
for (AlignmentAnnotation ann : list) |
1716 |
|
{ |
1717 |
123 |
if ((calcId == null || (ann.getCalcId() != null |
1718 |
|
&& ann.getCalcId().equals(calcId))) |
1719 |
|
&& (seq == null || (ann.sequenceRef != null |
1720 |
|
&& ann.sequenceRef == seq)) |
1721 |
|
&& (label == null |
1722 |
|
|| (ann.label != null && ann.label.equals(label)))) |
1723 |
|
{ |
1724 |
18 |
aa.add(ann); |
1725 |
|
} |
1726 |
|
} |
1727 |
34 |
return aa; |
1728 |
|
} |
1729 |
|
|
1730 |
|
|
1731 |
|
|
1732 |
|
|
1733 |
|
@param |
1734 |
|
|
1735 |
|
@param |
1736 |
|
@return |
1737 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 4 |
Complexity Density: 0.8 |
|
1738 |
0 |
public static boolean hasAnnotation(List<AlignmentAnnotation> list,... |
1739 |
|
String calcId) |
1740 |
|
{ |
1741 |
|
|
1742 |
0 |
if (calcId != null && !"".equals(calcId)) |
1743 |
|
{ |
1744 |
0 |
for (AlignmentAnnotation a : list) |
1745 |
|
{ |
1746 |
0 |
if (a.getCalcId() == calcId) |
1747 |
|
{ |
1748 |
0 |
return true; |
1749 |
|
} |
1750 |
|
} |
1751 |
|
} |
1752 |
0 |
return false; |
1753 |
|
} |
1754 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 6 |
Complexity Density: 0.86 |
|
1755 |
221 |
public static Iterable<AlignmentAnnotation> findAnnotation(... |
1756 |
|
List<AlignmentAnnotation> list, String calcId) |
1757 |
|
{ |
1758 |
|
|
1759 |
221 |
List<AlignmentAnnotation> aa = new ArrayList<>(); |
1760 |
221 |
if (calcId == null) |
1761 |
|
{ |
1762 |
1 |
return aa; |
1763 |
|
} |
1764 |
220 |
for (AlignmentAnnotation a : list) |
1765 |
|
{ |
1766 |
|
|
1767 |
824 |
if (a.getCalcId() == calcId || (a.getCalcId() != null |
1768 |
|
&& calcId != null && a.getCalcId().equals(calcId))) |
1769 |
|
{ |
1770 |
1 |
aa.add(a); |
1771 |
|
} |
1772 |
|
} |
1773 |
220 |
return aa; |
1774 |
|
} |
1775 |
|
|
1776 |
|
|
1777 |
|
|
1778 |
|
|
1779 |
|
|
1780 |
|
@return |
1781 |
|
|
1782 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1783 |
5 |
public boolean isShowGroupsForContactMatrix()... |
1784 |
|
{ |
1785 |
5 |
return getProperty(AlignmentAnnotation.CONTACT_MAP_NOGROUPS) == null |
1786 |
|
|| "".equals( |
1787 |
|
getProperty(AlignmentAnnotation.CONTACT_MAP_NOGROUPS)); |
1788 |
|
} |
1789 |
|
|
1790 |
|
|
1791 |
|
|
1792 |
|
|
1793 |
|
@see |
1794 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
1795 |
2 |
public void setShowGroupsForContactMatrix(boolean showGroups)... |
1796 |
|
{ |
1797 |
2 |
setProperty(AlignmentAnnotation.CONTACT_MAP_NOGROUPS, |
1798 |
2 |
showGroups ? "" : "nogroups"); |
1799 |
|
} |
1800 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1801 |
21542 |
public long getNoOfSequencesIncluded()... |
1802 |
|
{ |
1803 |
21542 |
return noOfSequencesIncluded; |
1804 |
|
} |
1805 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1806 |
336 |
public void setNoOfSequencesIncluded(long noOfSequencesIncluded)... |
1807 |
|
{ |
1808 |
336 |
this.noOfSequencesIncluded = noOfSequencesIncluded; |
1809 |
|
} |
1810 |
|
|
1811 |
|
} |