Learn R Programming

vhcub (version 1.0.0)

SiD.value: Similarity Index (SiD)

Description

Measure the Similarity Index (SiD) between a virus and its host codon usage.

Usage

SiD.value(rscu.host,rscu.virus)

Arguments

rscu.host

a data frame with RSCU a host codon values.

rscu.virus

a data frame with RSCU a virus codon values.

Value

A numeric represent a SiD value.

Details

For more information about SiD Zhou et al., 2013.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
# read DNA from fasta file
fasta <- fasta.read("virus.fasta", "host.fasta")
fasta.v <- fasta[[1]]
fasta.h <- fasta[[2]]
RSCU.H <- RSCU.values(fasta.h)
RSCU.V <- RSCU.values(fasta.v)
# }
# NOT RUN {
# Calculate SiD
SiD <- SiD.value(RSCU.host, RSCU.virus)

# }

Run the code above in your browser using DataLab