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 java.util.HashSet; |
24 |
|
import java.util.Set; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
@see |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 5 |
Complexity Density: 0.83 |
|
32 |
|
enum Species |
33 |
|
{ |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
human(true), mouse(true), s_cerevisiae(true), cow(false), pig(false), |
39 |
|
rattus_norvegicus(true), celegans(true), sheep(false), horse(false), |
40 |
|
gorilla(false), rabbit(false), gibbon(false), dog(false), |
41 |
|
orangutan(false), xenopus_tropicalis(true), chimpanzee(false), cat(false), |
42 |
|
zebrafish(true), chicken(true), drosophila_melanogaster(true); |
43 |
|
|
44 |
|
static Set<Species> modelOrganisms = new HashSet<>(); |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
46 |
0 |
static... |
47 |
|
{ |
48 |
0 |
for (Species s : values()) |
49 |
|
{ |
50 |
0 |
if (s.isModelOrganism()) |
51 |
|
{ |
52 |
0 |
modelOrganisms.add(s); |
53 |
|
} |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
boolean modelOrganism; |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
private Species(boolean model)... |
60 |
|
{ |
61 |
0 |
this.modelOrganism = model; |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0 |
boolean isModelOrganism()... |
65 |
|
{ |
66 |
0 |
return modelOrganism; |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
public static Set<Species> getModelOrganisms()... |
70 |
|
{ |
71 |
0 |
return modelOrganisms; |
72 |
|
} |
73 |
|
} |