PurpleCopyNumberFile { @VisibleForTesting @NotNull static List<PurpleCopyNumber> fromLines(@NotNull List<String> lines) { return lines.stream() .skip(1) .map(PurpleCopyNumberFile::fromString) .collect(toList()); } private  PurpleCopyNumberFile(); @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 String generateGermlineFilenameForWriting(@NotNull final String basePath, @NotNull final String sample); @NotNull static String generateGermlineFilenameForReading(@NotNull final String basePath, @NotNull final String sample); @NotNull static List<PurpleCopyNumber> read(final String filePath); static void write(@NotNull final String filename, @NotNull List<PurpleCopyNumber> copyNumbers);  }
@Test public void testCompatibilityWith2_24() throws IOException { PurpleCopyNumberFile.fromLines(Resources.readLines(Resources.getResource("purple/v2-24.purple.cnv"), Charset.defaultCharset())); }
@Test public void testCompatibilityWith2_25() throws IOException { PurpleCopyNumberFile.fromLines(Resources.readLines(Resources.getResource("purple/v2-25.purple.cnv"), Charset.defaultCharset())); }