Class SWNativeAlignerWrapper
java.lang.Object
org.broadinstitute.hellbender.utils.smithwaterman.SWNativeAlignerWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SmithWatermanAligner
A wrapper that converts instances of
SWAlignerNativeBinding
into a SmithWatermanAligner
-
Nested Class Summary
Nested 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
-
Constructor Summary
ConstructorsConstructorDescriptionSWNativeAlignerWrapper
(org.broadinstitute.gatk.nativebindings.smithwaterman.SWAlignerNativeBinding aligner) -
Method Summary
Modifier and TypeMethodDescriptionalign
(byte[] reference, byte[] alternate, org.broadinstitute.gatk.nativebindings.smithwaterman.SWParameters parameters, org.broadinstitute.gatk.nativebindings.smithwaterman.SWOverhangStrategy overhangStrategy) perform a Smith-Waterman alignment of alt against refvoid
close()
Report total compute time and close aligner
-
Constructor Details
-
SWNativeAlignerWrapper
public SWNativeAlignerWrapper(org.broadinstitute.gatk.nativebindings.smithwaterman.SWAlignerNativeBinding aligner)
-
-
Method Details
-
align
public SmithWatermanAlignment align(byte[] reference, byte[] alternate, org.broadinstitute.gatk.nativebindings.smithwaterman.SWParameters parameters, org.broadinstitute.gatk.nativebindings.smithwaterman.SWOverhangStrategy overhangStrategy) Description copied from interface:SmithWatermanAligner
perform a Smith-Waterman alignment of alt against ref- Specified by:
align
in interfaceSmithWatermanAligner
- Parameters:
reference
- bases to align to, values must be the byte equivalent of uppercase charsalternate
- bases to align against ref, values must be the byte equivalent of uppercase charsparameters
- a set of weights to use when performing the alignmentoverhangStrategy
- how to treat overhangs during alignment
-
close
public void close()Report total compute time and close aligner- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSmithWatermanAligner
-