public ArrayList < AccessionID > getAccessions ( ) throws XPathExpressionException { ArrayList < AccessionID > accessionList = new ArrayList < AccessionID > ( ) ; if ( uniprotDoc == null ) { return accessionList ; } Element uniprotElement = uniprotDoc . getDocumentElement ( ) ; Element entryElement = XMLHelper . selectSingleElement ( uniprotElement , "entry" ) ; ArrayList < Element > keyWordElementList = XMLHelper . selectElements ( entryElement , "accession" ) ; for ( Element element : keyWordElementList ) { AccessionID accessionID = new AccessionID ( element . getTextContent ( ) , DataSource . UNIPROT ) ; accessionList . add ( accessionID ) ; } return accessionList ; }
Pull uniprot accessions associated with this sequence