protected Set < String > getIdentifiers ( Match m , String label ) { BioPAXElement el = m . get ( label , getPattern ( ) ) ; if ( idFetcher != null ) return idFetcher . fetchID ( el ) ; Set < String > set = new HashSet < String > ( ) ; if ( el instanceof ProteinReference ) { set . add ( getGeneSymbol ( ( ProteinReference ) el ) ) ; } else if ( el instanceof SmallMoleculeReference ) { set . add ( getCompoundName ( ( SmallMoleculeReference ) el ) ) ; } return set ; }
Uses uniprot name or gene symbol as identifier .