HomozygousDisruptionAnalyzer { @NotNull public static List<ReportableHomozygousDisruption> extractFromLinxDriversTsv(@NotNull String linxDriversTsv) throws IOException { List<DriverCatalog> linxDriversCatalog = DriverCatalogFile.read(linxDriversTsv); LOGGER.info("Loaded {} linx driver catalog records from {}", linxDriversCatalog.size(), linxDriversTsv); List<ReportableHomozygousDisruption> reportableHomozygousDisruptions = extractHomozygousDisruptions(linxDriversCatalog); LOGGER.info("Extracted {} homozygous disruptions from linx drivers", reportableHomozygousDisruptions.size()); return reportableHomozygousDisruptions; } private  HomozygousDisruptionAnalyzer(); @NotNull static List<ReportableHomozygousDisruption> extractFromLinxDriversTsv(@NotNull String linxDriversTsv);  }
@Test public void canExtractHomozygousDisruptions() throws IOException { List<ReportableHomozygousDisruption> homozygousDisruptions = HomozygousDisruptionAnalyzer.extractFromLinxDriversTsv(LINX_DRIVERS_CATALOG_TSV); assertEquals(1, homozygousDisruptions.size()); ReportableHomozygousDisruption homozygousDisruption1 = homozygousDisruptions.get(0); assertEquals("9", homozygousDisruption1.chromosome()); assertEquals("p23-p24.1", homozygousDisruption1.chromosomeBand()); assertEquals("PTPRD", homozygousDisruption1.gene()); }