()
| 1473 | } |
| 1474 | |
| 1475 | @Override |
| 1476 | public void run() { |
| 1477 | try { |
| 1478 | System.out.println("[" + id + "] Parsing `" + path + "`..."); |
| 1479 | |
| 1480 | NTHashIterator itr = graph.getHashIterator(graph.getMaxNumHash()); |
| 1481 | long[] hashVals = itr.hVals; |
| 1482 | |
| 1483 | PairedNTHashIterator readItr = graph.getPairedHashIterator(graph.getReadPairedKmerDistance()); |
| 1484 | long[] readHashValsP = readItr.hValsP; |
| 1485 | |
| 1486 | PairedNTHashIterator fragItr = graph.getPairedHashIterator(graph.getFragPairedKmerDistance()); |
| 1487 | long[] fragHashValsP = fragItr.hValsP; |
| 1488 | |
| 1489 | NucleotideBitsReader fin = new NucleotideBitsReader(path); |
| 1490 | |
| 1491 | if (loadPairedKmers) { |
| 1492 | String seq = null; |
| 1493 | while ((seq = fin.next()) != null) { |
| 1494 | ++numSeqs; |
| 1495 | |
| 1496 | if (itr.start(seq)) { |
| 1497 | while (itr.hasNext()) { |
| 1498 | itr.next(); |
| 1499 | graph.addDbgOnly(hashVals); |
| 1500 | } |
| 1501 | |
| 1502 | if (readItr.start(seq)) { |
| 1503 | while (readItr.hasNext()) { |
| 1504 | readItr.next(); |
| 1505 | graph.addReadSingleKmerPair(readHashValsP); |
| 1506 | } |
| 1507 | |
| 1508 | if (fragItr.start(seq)) { |
| 1509 | while (fragItr.hasNext()) { |
| 1510 | fragItr.next(); |
| 1511 | graph.addFragmentSingleKmerPair(fragHashValsP); |
| 1512 | } |
| 1513 | } |
| 1514 | } |
| 1515 | } |
| 1516 | } |
| 1517 | } |
| 1518 | else { |
| 1519 | String seq = null; |
| 1520 | while ((seq = fin.next()) != null) { |
| 1521 | ++numSeqs; |
| 1522 | |
| 1523 | if (itr.start(seq)) { |
| 1524 | while (itr.hasNext()) { |
| 1525 | itr.next(); |
| 1526 | graph.addDbgOnly(hashVals); |
| 1527 | } |
| 1528 | } |
| 1529 | } |
| 1530 | } |
| 1531 | |
| 1532 | fin.close(); |
nothing calls this directly
no test coverage detected