(int id, String path, boolean reverseComplement, boolean incrementIfPresent, boolean storeReadPairedKmers)
| 742 | private boolean storeReadPairedKmers = false; |
| 743 | |
| 744 | public SeqToGraphWorker(int id, String path, boolean reverseComplement, boolean incrementIfPresent, boolean storeReadPairedKmers) { |
| 745 | this.id = id; |
| 746 | this.path = path; |
| 747 | this.storeReadPairedKmers = storeReadPairedKmers; |
| 748 | |
| 749 | int numHash = graph.getMaxNumHash(); |
| 750 | this.itr = reverseComplement ? graph.getReverseComplementHashIterator(numHash) : graph.getHashIterator(numHash); |
| 751 | |
| 752 | if (storeReadPairedKmers) { |
| 753 | int kmerPairDistance = graph.getReadPairedKmerDistance(); |
| 754 | this.pitr = reverseComplement ? graph.getReverseComplementPairedHashIterator(kmerPairDistance) : graph.getPairedHashIterator(kmerPairDistance); |
| 755 | } |
| 756 | |
| 757 | this.addFunction = incrementIfPresent ? graph::addCountIfPresent : graph::add; |
| 758 | } |
| 759 | |
| 760 | @Override |
| 761 | public void run() { |
nothing calls this directly
no test coverage detected