public static void main(String[] args) {

    WorkflowProperties props = new WorkflowProperties();
    File inputFile =
        args.length > 0
            ? new File(args[0])
            : new File(props.getDirectory(), "s288c_mata_1_plus.segments");

    try {
      DifferentialSegments dsegs = new DifferentialSegments(inputFile);

      Collection<DifferentialKey> keys = dsegs.differentialRegions(0, 1);
      System.out.println(DifferentialKey.header());
      for (DifferentialKey key : keys) {
        System.out.println(key.toString());
      }

      System.out.println(String.format("# Regions: " + keys.size()));

    } catch (IOException e) {
      e.printStackTrace();
    }
  }