transform: Convert biological sequences into binary code
Description
Biological sequences are categorical variables. With this function the four nucleotides are coded with two bits, 0 and 1 (binary numeral system) for being used by almost all modern computers.
Usage
transform(x)
Value
The returned list has two component ($AT, $CG). Both of them containing a matrix with values about their critical points (maximum and minimum), and their lower and upper 95% confidence intervals.
AT
Variable A and T with binary system.
CG
Variable C and G with binary system.
Arguments
x
The object obtained with read.all or read.genbank functions is the argument required for transform. The nature of the sequence is DNA. Sequences are returned as a vector of single characters.