CTN: convert genetic data (nucleotides) to numerical values

Description Usage Arguments Details Examples

Description

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

Usage

1
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

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

Example output

Loading required package: dendextend

---------------------
Welcome to dendextend version 1.5.2
Type citation('dendextend') for how to cite the package.

Type browseVignettes(package = 'dendextend') for the package vignette.
The github page is: https://github.com/talgalili/dendextend/

Suggestions and bug-reports can be submitted at: https://github.com/talgalili/dendextend/issues
Or contact: <tal.galili@gmail.com>

	To suppress this message use:  suppressPackageStartupMessages(library(dendextend))
---------------------


Attaching package: 'dendextend'

The following object is masked from 'package:stats':

    cutree

Loading required package: ggplot2
Loading required package: ggdendro

Attaching package: 'ggdendro'

The following object is masked from 'package:dendextend':

    theme_dendro

Loading required package: seqinr

EnsCat documentation built on May 1, 2019, 8:45 p.m.