Package org.snpeff.binseq.indexer
Class SuffixIndexerNmer<T extends BinarySequence>
java.lang.Object
org.snpeff.binseq.indexer.SequenceIndexer<T>
org.snpeff.binseq.indexer.SuffixIndexerNmer<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>,Comparator<Long>
Index all suffixes of all the sequences (it indexes using Nmers).
Note: Under the current structure, only exact overlap matches are allowed
- Author:
- pcingola
-
Constructor Summary
ConstructorsConstructorDescriptionSuffixIndexerNmer(SubsequenceComparator<T> subsequenceComparator, int nmerSize) -
Method Summary
Modifier and TypeMethodDescriptionintAdd a sequence to this indexfindBestOverlap(T sequence) Find best overlap for 'sequence'iterator()booleanFind the best possible overlap and join the sequences or just add add the sequence to the indexvoidvoidPerform consistency checksvoidsetOverlapFilter(OverlapFilter<T> overlapFilter) toString()Methods inherited from class org.snpeff.binseq.indexer.SequenceIndexer
add, compare, get, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SuffixIndexerNmer
-
-
Method Details
-
add
Add a sequence to this index- Overrides:
addin classSequenceIndexer<T extends BinarySequence>- Parameters:
sequence-- Returns:
- Index to this sequence (a number that can be used to retrieve this sequence)
-
findBestOverlap
Find best overlap for 'sequence'- Parameters:
sequence-- Returns:
- An overlap result
-
getOverlapFilter
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends BinarySequence>- Overrides:
iteratorin classSequenceIndexer<T extends BinarySequence>
-
overlap
Find the best possible overlap and join the sequences or just add add the sequence to the index- Parameters:
sequence-- Returns:
- true if an overlap was found and false if no overlap was found
-
printSequences
public void printSequences() -
sanityCheck
public void sanityCheck()Perform consistency checks -
setOverlapFilter
-
toString
-
toStringSequences
-