+ if (canonical==null)
+ {
+ if (source.toLowerCase().startsWith("ensembl"))
+ {
+ canonical = DBRefSource.ENSEMBL;
+ for (String ensembls: new String[] { "Protists","Plants","Bacteria","Fungi","Metazoa"})
+ {
+ if (source.toLowerCase().endsWith(ensembls.toLowerCase()))
+ {
+ canonical = DBRefSource.ENSEMBLGENOMES;
+ }
+ }
+ }
+ }