class NeedlemanWunschAligner extends AnyRef

Implementation of the Needleman-Wunsch algorithm for global alignment of two sequences with support for an affine gap penalty.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NeedlemanWunschAligner
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. 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

  7. def align(query: String, target: String): Alignment

    Convenience method that starts from Strings instead of Array[Byte]s.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. 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
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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
  12. 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
  13. 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
  14. 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
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. 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()
  19. val gapExtend: Int
  20. val gapOpen: Int
  21. 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.

    Given the scoring and trace back matrices, construct the Alignment object for the (or one of the) optimal alignments.

    query

    the query sequence

    target

    the target sequence

    scoring

    the scoring matrix

    trace

    the trace back matrix

    returns

    an Alignment object representing the alignment

    Attributes
    protected
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. val scoringFunction: (Byte, Byte) ⇒ Int
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from NeedlemanWunschAligner to any2stringadd[NeedlemanWunschAligner]

Inherited by implicit conversion StringFormat from NeedlemanWunschAligner to StringFormat[NeedlemanWunschAligner]

Inherited by implicit conversion Ensuring from NeedlemanWunschAligner to Ensuring[NeedlemanWunschAligner]

Inherited by implicit conversion ArrowAssoc from NeedlemanWunschAligner to ArrowAssoc[NeedlemanWunschAligner]

Ungrouped