createCodonMatrix {ModCon} | R Documentation

## Create codon matrix from coding nucleotide sequence

### Description

This function creates a codon matrix with 2 rows and as many columns as codons within the sequence.

### Usage

    createCodonMatrix(cds)

### Arguments

`cds` | Character value of nucleotide sequence whose HZEI integral will be calculated. It should be at least 3 nt long and only contain bases 'A', 'G', 'C', 'T'. Length must be a multiple of 3.

### Value

Character matrix holding the encoded codon sequence in both rows.

### Examples

    ## Example to create codon matrix
    createCodonMatrix("ATGAATGATCAAAAGCTAGCC")

[Package ModCon version 1.0.0 Index]