GC.content: GC content

Description Usage Arguments Value Author(s) Examples

View source: R/GC.content.R

Description

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

Usage

1
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.

Author(s)

Ali Mostafa Anwar ali.mo.anwar@std.agr.cu.edu.eg and Mohmed Soudy MohmedSoudy2009@gmail.com

Examples

1
2
3
4
5
6
7
8
# read DNA from fasta file
fasta <- fasta.read("virus.fasta", "host.fasta")
fasta.v <- fasta[[1]]
fasta.h <- fasta[[2]]


# Calculate GC content
gc.df <- GC.content(fasta.v)

vhcub documentation built on Nov. 15, 2019, 5:10 p.m.

Related to GC.content in vhcub...