CTN {EnsCat}R Documentation

convert genetic data (nucleotides) to numerical values

Description

This function converts genetic data (nucleotides) to numeric data.

Usage

CTN(x)

Arguments

x

x should be a dataset in fasta format

Details

R is more efficient with numerical data and storage of data via numerical values takes less memory. Genetic data consists of nucleotide data A,T,C,G and are usually saved in Fasta format. After downloading the data from one of the bioinformatics repositories and importing it to R, this function converts the data to numerical values.

Examples

### import fasta data to R.
##x.dna0 <- read.fasta("dna.fasta")
###  convert data to numerical values
##x.dna<-CTN(x.dna0)

[Package EnsCat version 1.1 Index]