NUC

enum NUC : Enum<NUC>

Definition of DNA and RNA Nucleotides, IUPAC ambiguity, and nucleotide properties

TODO - GAP may be included in the codes

Parameters

char

Single Char representation of nucleotide, e.g. NUC.A is 'A' (also used for byte level encoding)

twoBit

encoding scheme for two bit encoding for unambiguous nucleotides

fourBit

encoding scheme for four bit encoding for all nucleotides

ambiguous

indicates whether ambiguous code, e.g. A.ambiguous == false, R.ambiguous == true

Note two bit encoding uses A=0, C=1, G=3, T or U = 2

A 65 01000|00|1  0
C 67 01000|01|1 1
G 71 01000|11|1 3
T 84 01010|10|0 2

Entries

Link copied to clipboard

Adenosine

Link copied to clipboard

Cytosine

Link copied to clipboard

Guanine

Link copied to clipboard

Thymine

Link copied to clipboard

Uracil

Link copied to clipboard

aMino

Link copied to clipboard

puRine

Link copied to clipboard

Weak

Link copied to clipboard

Strong

Link copied to clipboard

pYrimidine

Link copied to clipboard

Keto

Link copied to clipboard

Not T, T+1

Link copied to clipboard

Not G, G+1

Link copied to clipboard

Not C, C+1

Link copied to clipboard

Not A, A+1

Link copied to clipboard

Any base

Link copied to clipboard

Any base

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the set of unambiguous DNA nucleotides represented by this NUC, e.g. NUC.R.ambigRNA == [A,G]

Link copied to clipboard

Returns the set of unambiguous RNA nucleotides represented by this NUC, e.g. NUC.R.ambigRNA == [A,G]

Link copied to clipboard
Link copied to clipboard
val char: Char
Link copied to clipboard

DNA analog of a Nucleotide, identity except NUC.U returns NUC.T

Link copied to clipboard

DNA complement of this nucleotide - includes ambiguous

Link copied to clipboard

Weight of nucleotide in Daltons, average weights for ambiguous

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Could this be a DNA nucleotide. True unless NUC.U

Link copied to clipboard

Could this be a RNA nucleotide. True unless NUC.T

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

RNA analog of a Nucleotide, identity except NUC.T returns NUC.U

Link copied to clipboard

DNA complement of this nucleotide - includes ambiguous

Link copied to clipboard

Weight of nucleotide in Daltons, average weights for ambiguous

Link copied to clipboard
Link copied to clipboard
val utf8: <Error class: unknown class>

Functions

Link copied to clipboard
operator fun NUC.div(nuc: NUC): NUC
Link copied to clipboard
operator fun NUC.plus(nuc: NUC): NucSeq
Link copied to clipboard
fun valueOf(value: String): NUC

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<NUC>

Returns an array containing the constants of this enum type, in the order they're declared.