1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ext.ensembl; |
22 |
|
|
23 |
|
import jalview.datamodel.SequenceFeature; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
@author |
31 |
|
|
32 |
|
|
|
|
| 69.2% |
Uncovered Elements: 8 (26) |
Complexity: 10 |
Complexity Density: 0.77 |
|
33 |
|
public class EnsemblGenome extends EnsemblSeqProxy |
34 |
|
{ |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
private static final EnsemblFeatureType[] FEATURES_TO_FETCH = { |
40 |
|
EnsemblFeatureType.transcript, EnsemblFeatureType.exon, |
41 |
|
EnsemblFeatureType.cds, EnsemblFeatureType.variation }; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
3 |
public EnsemblGenome()... |
47 |
|
{ |
48 |
3 |
super(); |
49 |
|
} |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
@param |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0 |
public EnsemblGenome(String d)... |
57 |
|
{ |
58 |
0 |
super(d); |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0 |
@Override... |
62 |
|
public String getDbName() |
63 |
|
{ |
64 |
0 |
return "ENSEMBL (Genomic)"; |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0 |
@Override... |
68 |
|
protected EnsemblSeqType getSourceEnsemblType() |
69 |
|
{ |
70 |
0 |
return EnsemblSeqType.GENOMIC; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0 |
@Override... |
74 |
|
protected EnsemblFeatureType[] getFeaturesToFetch() |
75 |
|
{ |
76 |
0 |
return FEATURES_TO_FETCH; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
86 |
6 |
@Override... |
87 |
|
protected boolean retainFeature(SequenceFeature sf, String accessionId) |
88 |
|
{ |
89 |
6 |
if (isTranscript(sf.getType())) |
90 |
|
{ |
91 |
3 |
return false; |
92 |
|
} |
93 |
3 |
return featureMayBelong(sf, accessionId); |
94 |
|
} |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0.6 |
|
101 |
12 |
@Override... |
102 |
|
protected boolean identifiesSequence(SequenceFeature sf, String accId) |
103 |
|
{ |
104 |
12 |
if (isTranscript(sf.getType())) |
105 |
|
{ |
106 |
9 |
String id = (String) sf.getValue("ID"); |
107 |
9 |
if (("transcript:" + accId).equals(id)) |
108 |
|
{ |
109 |
6 |
return true; |
110 |
|
} |
111 |
|
} |
112 |
6 |
return false; |
113 |
|
} |
114 |
|
|
115 |
|
} |