class NeedlemanWunschAligner extends AnyRef
Implementation of the Needleman-Wunsch algorithm for global alignment of two sequences with support for an affine gap penalty.
- Alphabetic
- By Inheritance
- NeedlemanWunschAligner
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
NeedlemanWunschAligner(scoringFunction: (Byte, Byte) ⇒ Int, gapOpen: Int, gapExtend: Int, useEqualsAndX: Boolean = true)
- scoringFunction
a function to score the alignment of a pair of bases
- gapOpen
the gap opening penalty
- gapExtend
the gap extension penalty
- useEqualsAndX
if true use the = and X cigar operators for matches and mismatches, else use the M operator for both.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to any2stringadd[NeedlemanWunschAligner] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (NeedlemanWunschAligner, B)
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to ArrowAssoc[NeedlemanWunschAligner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
align(query: Array[Byte], target: Array[Byte]): Alignment
Align two sequences with the current scoring system.
Align two sequences with the current scoring system.
- query
the query sequence
- target
the target sequence
- returns
an Alignment object describing the optimal global alignment of the two sequences
-
def
align(query: String, target: String): Alignment
Convenience method that starts from Strings instead of Array[Byte]s.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildMatrices(query: Array[Byte], target: Array[Byte]): (Matrix[Int], Matrix[Direction])
Constructs both the scoring and traceback matrices.
Constructs both the scoring and traceback matrices.
Matrix is constructed such that:
- Matrix as nRow * nColumn (i.e. coordinates are (row, column))
- Query sequence is down the side (each row represents a query base)
- Target sequence is along the top (each column represents a target base)
- i is iterating over rows/query bases
- j is iterating over columns/target bases
- Up == Consumes query base but not target base, i.e. Insertion vs. the target
- Left == Consumes target base but not query base, i.e. Deletion vs. the target
- query
the query sequence
- target
the target sequence
- returns
a tuple of the scoring matrix and the traceback matrix
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (NeedlemanWunschAligner) ⇒ Boolean, msg: ⇒ Any): NeedlemanWunschAligner
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to Ensuring[NeedlemanWunschAligner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (NeedlemanWunschAligner) ⇒ Boolean): NeedlemanWunschAligner
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to Ensuring[NeedlemanWunschAligner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): NeedlemanWunschAligner
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to Ensuring[NeedlemanWunschAligner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): NeedlemanWunschAligner
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to Ensuring[NeedlemanWunschAligner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to StringFormat[NeedlemanWunschAligner] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- val gapExtend: Int
- val gapOpen: Int
-
def
generateAlignment(query: Array[Byte], target: Array[Byte], scoring: Matrix[Int], trace: Matrix[Direction]): Alignment
Given the scoring and trace back matrices, construct the Alignment object for the (or one of the) optimal alignments.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val scoringFunction: (Byte, Byte) ⇒ Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (NeedlemanWunschAligner, B)
- Implicit
- This member is added by an implicit conversion from NeedlemanWunschAligner to ArrowAssoc[NeedlemanWunschAligner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc