Class SmithWatermanJavaAligner
java.lang.Object
org.broadinstitute.hellbender.utils.smithwaterman.SmithWatermanJavaAligner
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SmithWatermanAligner
Pairwise discrete smith-waterman alignment implemented in pure java
************************************************************************
**** IMPORTANT NOTE: ****
**** This class assumes that all bytes come from UPPERCASED chars! ****
************************************************************************
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum
The state of a trace step through the matrixNested classes/interfaces inherited from interface org.broadinstitute.hellbender.utils.smithwaterman.SmithWatermanAligner
SmithWatermanAligner.Implementation
-
Field Summary
Fields inherited from interface org.broadinstitute.hellbender.utils.smithwaterman.SmithWatermanAligner
logger
-
Method Summary
Modifier and TypeMethodDescriptionalign
(byte[] reference, byte[] alternate, org.broadinstitute.gatk.nativebindings.smithwaterman.SWParameters parameters, org.broadinstitute.gatk.nativebindings.smithwaterman.SWOverhangStrategy overhangStrategy) Aligns the alternate sequence to the reference sequencevoid
close()
Implementations may optionally implement close in order to release any resources that they are holding.static SmithWatermanJavaAligner
return the stateless singleton instance of SmithWatermanJavaAligner
-
Method Details
-
getInstance
return the stateless singleton instance of SmithWatermanJavaAligner -
align
public SmithWatermanAlignment align(byte[] reference, byte[] alternate, org.broadinstitute.gatk.nativebindings.smithwaterman.SWParameters parameters, org.broadinstitute.gatk.nativebindings.smithwaterman.SWOverhangStrategy overhangStrategy) Aligns the alternate sequence to the reference sequence- Specified by:
align
in interfaceSmithWatermanAligner
- Parameters:
reference
- ref sequencealternate
- alt sequenceparameters
- a set of weights to use when performing the alignmentoverhangStrategy
- how to treat overhangs during alignment
-
close
public void close()Description copied from interface:SmithWatermanAligner
Implementations may optionally implement close in order to release any resources that they are holding. CallingSmithWatermanAligner.align(byte[], byte[], SWParameters, SWOverhangStrategy)
after close must not return an incorrect or invalid alignment, but otherwise the behavior is undefined. If a subclass implements close it's recommended that subsequent calls to align after a call to close should throwIllegalStateException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSmithWatermanAligner
-