MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / writeQuartilesToFile

Method writeQuartilesToFile

src/rnabloom/RNABloom.java:2669–2679  ·  view source on GitHub ↗
(Quartiles q, String path)

Source from the content-addressed store, hash-verified

2667 private final static String LABEL_MAX = "max";
2668
2669 public void writeQuartilesToFile(Quartiles q, String path) throws IOException {
2670 FileWriter writer = new FileWriter(path, false);
2671
2672 writer.write(LABEL_MIN + LABEL_SEPARATOR + q.min + "\n" +
2673 LABEL_Q1 + LABEL_SEPARATOR + q.q1 + "\n" +
2674 LABEL_MEDIAN + LABEL_SEPARATOR + q.median + "\n" +
2675 LABEL_Q3 + LABEL_SEPARATOR + q.q3 + "\n" +
2676 LABEL_MAX + LABEL_SEPARATOR + q.max + "\n"
2677 );
2678 writer.close();
2679 }
2680
2681 public Quartiles restoreQuartilesFromFile(String path) throws IOException {
2682 Quartiles q = new Quartiles();

Callers 2

mainMethod · 0.95
assembleFragmentsMethod · 0.80

Calls 2

closeMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected