CobaltRatioFile { @NotNull public static ListMultimap<Chromosome, CobaltRatio> read(@NotNull final String filename) throws IOException { return fromLines(Files.readAllLines(new File(filename).toPath())); } private  CobaltRatioFile(); @NotNull static String generateFilenameForWriting(@NotNull final String basePath, @NotNull final String sample); @NotNull static String generateFilenameForReading(@NotNull final String basePath, @NotNull final String sample); @NotNull static ListMultimap<Chromosome, CobaltRatio> read(@NotNull final String filename); static void write(@NotNull final String fileName, @NotNull Multimap<Chromosome, CobaltRatio> ratios);  }
@Test public void testHG38() throws IOException { final List<CobaltRatio> hg38 = Lists.newArrayList(CobaltRatioFile.read(HG38_PATH).get(HumanChromosome._1)); assertEquals(5, hg38.size()); }
@Test public void testHG19() throws IOException { final List<CobaltRatio> hg19 = Lists.newArrayList(CobaltRatioFile.read(HG19_PATH).get(HumanChromosome._1)); assertEquals(4, hg19.size()); }