1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.io.gff; |
22 |
|
|
23 |
|
import jalview.datamodel.AlignmentI; |
24 |
|
import jalview.datamodel.SequenceFeature; |
25 |
|
import jalview.datamodel.SequenceI; |
26 |
|
|
27 |
|
import java.io.IOException; |
28 |
|
import java.util.List; |
29 |
|
import java.util.Map; |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 3 |
Complexity Density: 0.6 |
|
31 |
|
public class Gff2Helper extends GffHelperBase |
32 |
|
{ |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@param |
37 |
|
@return |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0 |
public static Map<String, List<String>> parseNameValuePairs(String text)... |
40 |
|
{ |
41 |
0 |
return parseNameValuePairs(text, ";", ' ', ","); |
42 |
|
} |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
48 |
0 |
@Override... |
49 |
|
public SequenceFeature processGff(SequenceI seq, String[] gff, |
50 |
|
AlignmentI align, List<SequenceI> newseqs, |
51 |
|
boolean relaxedIdMatching) throws IOException |
52 |
|
{ |
53 |
0 |
Map<String, List<String>> attributes = null; |
54 |
0 |
if (gff.length > ATTRIBUTES_COL) |
55 |
|
{ |
56 |
0 |
attributes = parseNameValuePairs(gff[ATTRIBUTES_COL]); |
57 |
|
} |
58 |
0 |
return buildSequenceFeature(gff, attributes); |
59 |
|
} |
60 |
|
|
61 |
|
} |