Learn R Programming

vhcub (version 1.0.0)

RSCU.values: Relative Synonymous Codon Usage (RSCU)

Description

Measure the Relative Synonymous Codon Usage (RSCU) of DNA sequence.

Usage

RSCU.values(df.fasta)

Arguments

df.fasta

a data frame with seq_name and its DNA sequence.

Value

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

Details

For more information about ENc Sharp et al., 1986.

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 RSCU
# }
# NOT RUN {
RSCU.H <- RSCU.values(fasta.h)
# }
# NOT RUN {
RSCU.V <- RSCU.values(fasta.v)

# }

Run the code above in your browser using DataLab