* specified, all available cross-references are retrieved.
*
* @param identifier
+ * an Ensembl stable identifier
* @param databases
+ * optional list of Ensembl cross-referenced databases of interest
* @return
*/
public List<DBRefEntry> getCrossReferences(String identifier,
try
{
URL url = getUrl(identifier);
- if (url != null)
- {
- br = getHttpResponse(url, ids);
- }
+ if (url != null)
+ {
+ br = getHttpResponse(url, ids);
+ }
return (parseResponse(br, databases));
} catch (IOException e)
{
/**
* Parses "primary_id" and "dbname" values from the JSON response and
* constructs a DBRefEntry if the dbname is in the list supplied. Returns a
- * list of DBRefEntry created.
+ * list of the DBRefEntry created. Note we don't parse "synonyms" as they
+ * appear to be either redirected or obsolete in Uniprot.
*
* @param br
* @param databases