Learn R Programming

vhcub (version 1.0.0)

RCDI.values: Relative Codon Deoptimization Index (RCDI)

Description

Measure the Relative Codon Deoptimization Index (RCDI) of DNA sequence.

Usage

RCDI.values(fasta.virus, fasta.host, enc.host, set.len= 5)

Arguments

fasta.virus

a data frame with virus seq_name and its DNA sequence.

fasta.host

a data frame with host seq_name and its DNA sequence.

enc.host

a data frame of a hosts' ENc values.

set.len

a number represents a percent that will be used as reference genes from the total host genes.

Value

A data.frame containing the computed ENc values for each DNA sequences within df.fasta.

Details

For more information about RCDI Puigb<U+00F2> et al., 2010

Examples

Run this code
# NOT RUN {
# read DNA from fasta file
fasta <- fasta.read("virus.fasta", "host.fasta")
fasta.v <- fasta[[1]]
fasta.h <- fasta[[2]]
# }
# NOT RUN {
# Calculate RCDI
# }
# NOT RUN {
enc.df.host <- ENc.values(fasta.h)
# }
# NOT RUN {
rcdi.df <- RCDI.values(fasta.v, fasta.h, enc.df.host)

# }

Run the code above in your browser using DataLab