case class Alignment(query: Array[Byte], target: Array[Byte], queryStart: Int, targetStart: Int, cigar: Cigar, score: Int) extends Product with Serializable
A general class to describe the alignment between two sequences or partial ranges thereof
- query
the query sequence
- target
the target sequence
- queryStart
the 1-based position in the query sequence where the alignment begins
- targetStart
the 1-based position in the target sequence where the alignment begins
- cigar
a Cigar object describing the alignment of the two sequences
- score
the alignment score
- Alphabetic
- By Inheritance
- Alignment
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Alignment(query: Array[Byte], target: Array[Byte], queryStart: Int, targetStart: Int, cigar: Cigar, score: Int)
- query
the query sequence
- target
the target sequence
- queryStart
the 1-based position in the query sequence where the alignment begins
- targetStart
the 1-based position in the target sequence where the alignment begins
- cigar
a Cigar object describing the alignment of the two sequences
- score
the alignment score
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Alignment, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cigar: Cigar
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (Alignment) ⇒ Boolean, msg: ⇒ Any): Alignment
- def ensuring(cond: (Alignment) ⇒ Boolean): Alignment
- def ensuring(cond: Boolean, msg: ⇒ Any): Alignment
- def ensuring(cond: Boolean): Alignment
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- 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
-
def
paddedString(matchChar: Char = '|', mismatchChar: Char = '.', gapChar: Char = ' ', padChar: Char = '-'): Seq[String]
Generates a padded text representation of the alignment for visualization.
Generates a padded text representation of the alignment for visualization. The returned sequence will consist of three lines as follows (minus the labels on the left):
query : ACGTGAACTGACT-ACTGTATGCG align : ||||| |||||| ||||||||.| target: ACGTG--CTGACTGACTGTATGGG
- matchChar
the character to use in the alignment line when the bases match
- mismatchChar
the character to use in the alignment line when the bases mismatch
- gapChar
the character to use in the alignment line when one of the sequences is gapped
- padChar
the character to use in the query or target sequence lines when padding is required
- returns
Three lines representing the alignment
- val query: Array[Byte]
-
def
queryEnd: Int
One based closed coordinate of the end of the alignment on the query sequence.
- val queryStart: Int
- val score: Int
-
def
subByQuery(start: Int, end: Int): Alignment
Returns a subset of the Alignment representing the region defined by
start
andend
on the query sequence.Returns a subset of the Alignment representing the region defined by
start
andend
on the query sequence. The returned alignment will contain the entire query and target sequences, but will have adjustedqueryStart
andtargetStart
positions and an updatedcigar
. The score is set to 0.- start
the 1-based inclusive position of the first base on the query sequence to include
- end
the 1-based inclusive position of the last base on the query sequence to include
- returns
a new Alignment with updated coordinates and cigar
-
def
subByTarget(start: Int, end: Int): Alignment
Returns a subset of the Alignment representing the region defined by
start
andend
on the target sequence.Returns a subset of the Alignment representing the region defined by
start
andend
on the target sequence. The returned alignment will contain the entire query and target sequences, but will have adjustedqueryStart
andtargetStart
positions and an updatedcigar
. The score is set to 0.- start
the 1-based inclusive position of the first base on the target sequence to include
- end
the 1-based inclusive position of the last base on the target sequence to include
- returns
a new Alignment with updated coordinates and cigar
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val target: Array[Byte]
-
def
targetEnd: Int
One based closed coordinate of the end of the alignment on the query sequence.
- val targetStart: Int
-
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): (Alignment, B)