public void testgetMsmsRunSummay() { pepXMLUnmarshaller um = new pepXMLUnmarshaller(pepXMLFile); Set<String> msms_run_summaryName = um.getMsmsRunsummaryIDs(); if (logger.isDebugEnabled()) { logger.debug("MsmsRunSummary basename: " + msms_run_summaryName); } try { MsmsRunSummary runsummary = um.getMsmsRunsummaryById( "/regis/sbeams/archive/wyan/HIVHuCell/HIV_S100/HsIPI_v3.21plus/hivs100_14_1"); assertEquals("ThermoFinnigan", runsummary.getMsManufacturer()); } catch (pepXMLUnmarshallerException ex) { ex.printStackTrace(); } }
public void testgetSearchSummarybyID() { // assertTrue(isValidpepXML(pepXMLFile)); pepXMLUnmarshaller um = new pepXMLUnmarshaller(pepXMLFile); try { SearchSummary searchsummary = um.getSearchSummaryById( "/regis/sbeams/archive/wyan/HIVHuCell/HIV_S100/HsIPI_v3.21plus/hivs100_17_2"); String databaseLocalpath = searchsummary.getSearchDatabase().getLocalPath(); assertEquals("/dbase/users/sbeams/ipi.HUMAN.v3.21plus.fasta", databaseLocalpath); String enzyme = searchsummary.getEnzymaticSearchConstraint().getEnzyme(); assertEquals("Trypsin", enzyme); String searchengine = searchsummary.getSearchEngine().value(); assertEquals("SEQUEST", searchengine); } catch (pepXMLUnmarshallerException ex) { ex.printStackTrace(); } }