canonicalSourceNameLookup.put("pdb", DBRefSource.PDB);
canonicalSourceNameLookup.put("ensembl", DBRefSource.ENSEMBL);
+ // Ensembl Gn and Tr are for Ensembl genomic and transcript IDs as served
+ // from ENA.
+ canonicalSourceNameLookup.put("ensembl-tr", DBRefSource.ENSEMBL);
+ canonicalSourceNameLookup.put("ensembl-gn", DBRefSource.ENSEMBL);
+
dasCoordinateSystemsLookup.put("pdbresnum", DBRefSource.PDB);
dasCoordinateSystemsLookup.put("uniprot", DBRefSource.UNIPROT);
/**
* Returns the (possibly empty) list of those supplied dbrefs which have the
- * specified source databse
+ * specified source database, with a case-insensitive match of source name
*
* @param dbRefs
* @param source
{
for (DBRefEntry dbref : dbRefs)
{
- if (source.equals(dbref.getSource()))
+ if (source.equalsIgnoreCase(dbref.getSource()))
{
matches.add(dbref);
}