(File f, boolean loadDbgBits)
| 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; |
no test coverage detected