private void writeTree(GeneBranch tree, String dir) {
    try {
      BufferedWriter writer1 = new BufferedWriter(new FileWriter(dir + tree.gene + ".sif"));
      BufferedWriter writer2 = new BufferedWriter(new FileWriter(dir + tree.gene + ".format"));

      writer2.write("graph\tgrouping\ton\n");
      writer2.write("node\t" + tree.gene + "\tcolor\t255 255 200\n");

      writeBranches(tree.gene, tree, writer1, writer2);

      writer1.close();
      writer2.close();
    } catch (IOException e) {
      e.printStackTrace();
      System.exit(1);
    }
  }
  private void printVals(double[] vals1, double[] vals2, String symbol) {
    try {
      BufferedWriter writer = new BufferedWriter(new FileWriter("/home/ozgun/Desktop/temp.txt"));

      writer.write("Ras-mutated\tBRAF-mutated\n");
      for (int i = 0; i < Math.max(vals1.length, vals2.length); i++) {
        if (i < vals1.length) writer.write(vals1[i] + "");
        writer.write("\t");
        if (i < vals2.length) writer.write(vals2[i] + "");
        writer.write("\n");
      }
      writer.close();

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