object BitRepresentation
Helper functions for working with a low level bit representation of nucleotide sequences.
- Alphabetic
- By Inheritance
- BitRepresentation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val A: Byte
- val C: Byte
- val G: Byte
- val INVALID: Byte
- val T: Byte
- val U: Byte
- val WHITESPACE: Byte
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
byteToQuad(byte: Byte): NTSeq
Unpack a byte to a 4-character string (quad).
-
val
byteToQuadLookup: Array[NTSeq]
Map a single byte to a quad-string for unpacking.
Map a single byte to a quad-string for unpacking. Precomputed lookup array.
-
def
bytesToString(bytes: Array[Byte], builder: StringBuilder, offset: Int, size: Int): NTSeq
Convert a byte array of quads to a string.
Convert a byte array of quads to a string. The length of the resulting string must be supplied.
-
def
charToTwobit(char: Char): Byte
Convert a single nucleotide from string (char) representation to "twobit" representation.
Convert a single nucleotide from string (char) representation to "twobit" representation. Returns one of the twobit codes, or WHITESPACE for skippable whitespace.
-
def
charToTwobitWithInvalid(char: Char): Byte
Convert a single nucleotide from string (char) representation to "twobit" representation.
Convert a single nucleotide from string (char) representation to "twobit" representation. Does not throw an exception, but returns INVALID on invalid characters.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
complement(byte: Byte): Byte
Complement of a number of BPs packed in a byte.
-
def
complementOne(byte: Byte): Int
Complement of a single BP.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
quadToByte(quad: String, offset: Int): Byte
Convert an NT quad (string of length 4) to encoded byte form.
Convert an NT quad (string of length 4) to encoded byte form. The string will be padded on the right with 'A' if it's too short.
-
def
quadToByte(quad: NTSeq): Byte
Map a quad-string (four letters) to an encoded byte
- def reverseComplement(encodedNTs: Long, width: Int, complementMask: Long): Long
- def stringToBytes(bps: NTSeq): Array[Byte]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
twobitToChar(byte: Byte): Char
Convert a single BP from twobit representation to string representation.
- val twobits: List[Byte]
-
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( ... ) @native()