git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'tasks/JAL-3035_remove_dasobert_dependency' into develop
[jalview.git]
/
src
/
jalview
/
ext
/
ensembl
/
Species.java
diff --git
a/src/jalview/ext/ensembl/Species.java
b/src/jalview/ext/ensembl/Species.java
index
af01225
..
cc5465e
100644
(file)
--- a/
src/jalview/ext/ensembl/Species.java
+++ b/
src/jalview/ext/ensembl/Species.java
@@
-20,6
+20,9
@@
*/
package jalview.ext.ensembl;
*/
package jalview.ext.ensembl;
+import java.util.HashSet;
+import java.util.Set;
+
/**
* Selected species identifiers used by Ensembl
*
/**
* Selected species identifiers used by Ensembl
*
@@
-38,6
+41,18
@@
enum Species
chimpanzee(false), cat(false), zebrafish(true), chicken(true),
dmelanogaster(true);
chimpanzee(false), cat(false), zebrafish(true), chicken(true),
dmelanogaster(true);
+ static Set<Species> modelOrganisms = new HashSet<>();
+
+ static
+ {
+ for (Species s : values())
+ {
+ if (s.isModelOrganism())
+ {
+ modelOrganisms.add(s);
+ }
+ }
+ }
boolean modelOrganism;
private Species(boolean model)
boolean modelOrganism;
private Species(boolean model)
@@
-49,4
+64,9
@@
enum Species
{
return modelOrganism;
}
{
return modelOrganism;
}
+
+ public static Set<Species> getModelOrganisms()
+ {
+ return modelOrganisms;
+ }
}
}