コード例 #1
0
  public static void writeQuantificationMatrix(
      Collection<? extends Quantification> listOfQuantifications, String outmatrix)
      throws IOException {
    Path p = Paths.get(outmatrix);
    BufferedWriter bf = Files.newBufferedWriter(p, Charset.defaultCharset());

    int index = 0;
    for (Quantification tq : listOfQuantifications) {
      if (index == 0) {
        bf.append(tq.printHeader());
        bf.append("\n");
      }
      index++;
      tq.appendTo(bf);
      bf.append("\n");
    }

    bf.close();
  }