PR2.plot: Parity rule 2 (PR2) plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/PR2.plot.R

Description

Make a Parity rule 2 (PR2) plot, where the AT-bias [A3/(A3 +T3)] at the third codon position of the four-codon amino acids of entire genes is the ordinate and the GC-bias [G3/(G3 +C3)] is the abscissa. The center of the plot, where both coordinates are 0.5, is where A = U and G = C (PR2), with no bias between the influence of the mutation and selection rates.

Usage

1
PR2.plot(fasta.df)

Arguments

fasta.df

a data frame with seq_name and its DNA sequence.

Details

For more information about PR2 plot Butt et al., 2016.

Value

A ggplot object.

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
# read DNA from fasta file
fasta <- fasta.read("virus.fasta", "host.fasta")
fasta.v <- fasta[[1]]
fasta.h <- fasta[[2]]


PR2.plot(fasta.v)

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

Related to PR2.plot in vhcub...