public ArrayList < String > getGeneAliases ( ) throws XPathExpressionException { ArrayList < String > aliasList = new ArrayList < String > ( ) ; if ( uniprotDoc == null ) { return aliasList ; } Element uniprotElement = uniprotDoc . getDocumentElement ( ) ; Element entryElement = XMLHelper . selectSingleElement ( uniprotElement , "entry" ) ; ArrayList < Element > proteinElements = XMLHelper . selectElements ( entryElement , "gene" ) ; for ( Element proteinElement : proteinElements ) { ArrayList < Element > keyWordElementList = XMLHelper . selectElements ( proteinElement , "name" ) ; for ( Element element : keyWordElementList ) { aliasList . add ( element . getTextContent ( ) ) ; } } return aliasList ; }
Pull uniprot gene aliases associated with this sequence