Cache graph data on creation

This commit is contained in:
2022-02-22 22:23:55 -06:00
parent e2a996c997
commit 8e9a250890

View File

@@ -75,7 +75,6 @@ public class InteractiveInterface {
assert filename != null;
CellFileWriter writer = new CellFileWriter(filename, sample);
writer.writeCellsToFile();
System.gc();
}
//Output a CSV of sample plate
@@ -187,7 +186,6 @@ public class InteractiveInterface {
System.out.println("Writing Sample Plate to file");
writer.writePlateFile();
System.out.println("Sample Plate written to file: " + filename);
System.gc();
}
}
@@ -234,7 +232,9 @@ public class InteractiveInterface {
GraphDataObjectWriter dataWriter = new GraphDataObjectWriter(filename, data);
dataWriter.writeDataToFile();
System.out.println("Graph and Data file written to: " + filename);
System.gc();
BiGpairSEQ.setGraph(data);
BiGpairSEQ.setGraphFilename(filename);
System.out.println("Graph and Data file " + filename + " cached.");
}
}
@@ -296,7 +296,6 @@ public class InteractiveInterface {
System.out.println("Writing results to file");
writer.writeResultsToFile();
System.out.println("Results written to file: " + filename);
System.gc();
}
///////