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

Method populateGraph2

src/rnabloom/RNABloom.java:1290–1346  ·  view source on GitHub ↗
(Collection<String> forwardReadPaths,
                            Collection<String> reverseReadPaths,
                            Collection<String> longReadPaths,
                            Collection<String> refTranscriptsPaths,
                            boolean reverseComplementLong,
                            int numThreads,
                            boolean addCountsOnly,
                            boolean storeReadKmerPairs)

Source from the content-addressed store, hash-verified

1288 }
1289
1290 public void populateGraph2(Collection<String> forwardReadPaths,
1291 Collection<String> reverseReadPaths,
1292 Collection<String> longReadPaths,
1293 Collection<String> refTranscriptsPaths,
1294 boolean reverseComplementLong,
1295 int numThreads,
1296 boolean addCountsOnly,
1297 boolean storeReadKmerPairs) throws IOException, InterruptedException {
1298 long numReads = 0;
1299 int numReadFiles = 0;
1300
1301 for (String path : forwardReadPaths) {
1302 ++numReadFiles;
1303 numReads += populateGraphHelper(path, numThreads, false,
1304 addCountsOnly, storeReadKmerPairs);
1305 }
1306
1307 for (String path : reverseReadPaths) {
1308 ++numReadFiles;
1309 numReads += populateGraphHelper(path, numThreads, true,
1310 addCountsOnly, storeReadKmerPairs);
1311 }
1312
1313 for (String path : longReadPaths) {
1314 ++numReadFiles;
1315 numReads += populateGraphHelper(path, numThreads, reverseComplementLong,
1316 addCountsOnly, false);
1317 }
1318
1319 if (numReadFiles > 1) {
1320 System.out.println("Parsed " + NumberFormat.getInstance().format(numReads) + " sequences from " + numReadFiles + " files.");
1321 }
1322
1323 if (!refTranscriptsPaths.isEmpty()) {
1324 System.out.println("Augmenting graph with reference transcripts...");
1325 long numRefs = 0;
1326 int numRefFiles = 0;
1327 for (String path : refTranscriptsPaths) {
1328 ++numRefFiles;
1329 populateGraphPairedKmersHelper(path, numThreads, true);
1330 }
1331
1332 if (numRefFiles > 1) {
1333 System.out.println("Parsed " + NumberFormat.getInstance().format(numRefs) + " sequences from " + numRefFiles + " reference files.");
1334 }
1335 }
1336
1337 dbgFPR = graph.getDbgbf().getFPR();
1338 covFPR = graph.getCbf().getFPR();
1339
1340 System.out.println("DBG Bloom filter FPR: " + convertToRoundedPercent(dbgFPR) + " %");
1341 System.out.println("Counting Bloom filter FPR: " + convertToRoundedPercent(covFPR) + " %");
1342
1343 if (graph.getReadPairedKmerDistance() > 0) {
1344 System.out.println("Reads paired k-mers Bloom filter FPR: " + convertToRoundedPercent(graph.getRpkbf().getFPR()) + " %");
1345 }
1346 }
1347

Callers 1

mainMethod · 0.95

Calls 8

populateGraphHelperMethod · 0.95
getDbgbfMethod · 0.80
getCbfMethod · 0.80
getRpkbfMethod · 0.80
getFPRMethod · 0.65

Tested by

no test coverage detected