Learn R Programming

vhcub (version 1.0.0)

GC.content: GC content

Description

Calculates overall GC content as well as GC at first, second, and third codon positions.

Usage

GC.content(df.virus)

Arguments

df.virus

data frame with seq_name and its DNA sequence.

Value

A data.frame with overall GC content as well as GC at first, second, and third codon positions of all DNA sequence from df.virus.

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]]
# }
# NOT RUN {
# Calculate GC content
gc.df <- GC.content(fasta.v)

# }

Run the code above in your browser using DataLab