MpAnnotationParser { public static Map<TermId, MpSimpleModel> loadIndividualModelsWithSexSpecificPhenotypes(String genePhenoPath, String phenoSexPath) { MpAnnotationParser annotParser = new MpAnnotationParser(genePhenoPath, phenoSexPath); if (annotParser.genotypeAccessionToMpSimpleModelMap.isEmpty()) { for (String e : annotParser.parseErrors) { System.err.println(e); } throw new PhenolRuntimeException("Could not parse " + genePhenoPath); } return annotParser.genotypeAccessionToMpSimpleModelMap; } private  MpAnnotationParser(String path); private  MpAnnotationParser(String genePhenoPath, String phenoSexPath); static Map<TermId, MpSimpleModel> loadIndividualModels(String genePhenoPath); static Map<TermId, MpSimpleModel> loadIndividualModelsWithSexSpecificPhenotypes(String genePhenoPath, String phenoSexPath); static Map<TermId, MpGeneModel> loadMpGeneModels(String genePhenoPath); static Map<TermId, MpGeneModel> loadMpGeneModelsWithSexSpecificPhenotypes(String genePhenoPath, String phenoSexPath);  }
@Test void testSexSpecificParser() { Map<TermId, MpSimpleModel> modelmap = MpAnnotationParser.loadIndividualModelsWithSexSpecificPhenotypes(genePhenoPath,phenoSexPath); TermId kit = TermId.of("MGI:2167486"); MpSimpleModel model = modelmap.get(kit); assertNotNull(model); assertTrue(model.hasSexSpecificAnnotation()); }