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
- final val A: Int(0)
- final val C: Int(1)
- final val G: Int(2)
- final val INVALID: Int(5)
- final val T: Int(3)
- final val U: Int(3)
- final val WHITESPACE: Int(4)
-
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.
- bytes
encoded data to convert
- builder
reusable StringBuilder instance
- offset
offset (expressed in letters, 4 per quad) to start conversion from
- size
length (expressed in letters, 4 per quad) to convert
-
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() @IntrinsicCandidate()
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isValid(char: Char): Boolean
Test whether a single character is encodable.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
reverseComplement(encodedNTs: Long, width: Int, complementMask: Long): Long
Reverse complement an encoded NT sequence that is right-aligned in a long
-
def
reverseComplementLeftAligned(encodedNTs: Long, complementMask: Long): Long
Reverse complement an encoded NT sequence that is left-aligned in a long
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated