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

Method restoreGraph

src/rnabloom/RNABloom.java:270–289  ·  view source on GitHub ↗
(File f, boolean loadDbgBits)

Source from the content-addressed store, hash-verified

268 }
269
270 public void restoreGraph(File f, boolean loadDbgBits) throws IOException {
271 if (graph != null) {
272 graph.destroy();
273 }
274
275 graph = new BloomFilterDeBruijnGraph(f, loadDbgBits);
276
277 if (loadDbgBits) {
278 dbgFPR = graph.getDbgbfFPR();
279 System.out.println("DBG Bloom filter FPR: " + convertToRoundedPercent(dbgFPR) + " %");
280 }
281
282 covFPR = graph.getCbfFPR();
283 System.out.println("Counting Bloom filter FPR: " + convertToRoundedPercent(covFPR) + " %");
284
285 BloomFilter rpkbf = graph.getRpkbf();
286 if (rpkbf != null) {
287 System.out.println("Read paired k-mers Bloom filter FPR: " + convertToRoundedPercent(rpkbf.getFPR()) + " %");
288 }
289 }
290
291 public boolean isGraphInitialized() {
292 return graph != null;

Callers 1

mainMethod · 0.95

Calls 6

getFPRMethod · 0.95
getDbgbfFPRMethod · 0.80
getCbfFPRMethod · 0.80
getRpkbfMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected