1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ws.dbsources; |
22 |
|
|
23 |
|
import jalview.bin.Cache; |
24 |
|
import jalview.datamodel.DBRefSource; |
25 |
|
import jalview.util.Platform; |
26 |
|
|
27 |
|
import com.stevesoft.pat.Regex; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@author |
33 |
|
|
|
|
| 37.5% |
Uncovered Elements: 10 (16) |
Complexity: 8 |
Complexity Density: 1 |
|
34 |
|
abstract public class Rfam extends Xfam |
35 |
|
{ |
36 |
|
static final String RFAM_BASEURL_KEY = "RFAM_BASEURL"; |
37 |
|
|
38 |
|
private static final String DEFAULT_RFAM_BASEURL = "https://rfam.org"; |
39 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
1 |
static... |
41 |
|
{ |
42 |
1 |
Platform.addJ2SDirectDatabaseCall(DEFAULT_RFAM_BASEURL); |
43 |
|
} |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
protected static final String GZIPPED = "?gzip=1&download=1"; |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
4 |
@Override... |
51 |
|
protected String getURLPrefix() |
52 |
|
{ |
53 |
4 |
return Cache.getDefault(RFAM_BASEURL_KEY, DEFAULT_RFAM_BASEURL); |
54 |
|
} |
55 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
8 |
public Rfam()... |
57 |
|
{ |
58 |
8 |
super(); |
59 |
|
} |
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
@see |
65 |
|
|
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0 |
@Override... |
68 |
|
public String getAccessionSeparator() |
69 |
|
{ |
70 |
0 |
return null; |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
@see |
77 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
0 |
@Override... |
79 |
|
public Regex getAccessionValidator() |
80 |
|
{ |
81 |
0 |
return null; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
@see |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
@see |
100 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
0 |
@Override... |
102 |
|
public String getDbVersion() |
103 |
|
{ |
104 |
0 |
return null; |
105 |
|
} |
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
@see |
111 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
0 |
@Override... |
113 |
|
public boolean isValidReference(String accession) |
114 |
|
{ |
115 |
0 |
return accession.indexOf("RF") == 0; |
116 |
|
} |
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
@see |
122 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
0 |
@Override... |
124 |
|
public String getXfamSource() |
125 |
|
{ |
126 |
0 |
return DBRefSource.RFAM; |
127 |
|
} |
128 |
|
|
129 |
|
} |