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

Method SeqToGraphWorker

src/rnabloom/RNABloom.java:744–758  ·  view source on GitHub ↗
(int id, String path, boolean reverseComplement, boolean incrementIfPresent, boolean storeReadPairedKmers)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Tested by

no test coverage detected