gc3: Calculate GC3 value of a codon sequence

Description Usage Arguments Value Examples

View source: R/gc3.r

Description

Outputs an array of numbers, representing the proportion of codons with G/C bases in the third position

Usage

1
gc3(x)

Arguments

x

a list of KZsqns objects.

Value

a number array of GC3s.

Examples

1
2
3
4
5
6
7
8
data('CodonTable0')
x = vector('list', 5) # Creating an empty list of length 5
for(i in 1:5){
  x[[i]] = CodonTable0[sample(1:64, 10*i, TRUE),1]
  attr(x[[i]], 'class') = 'KZsqns'
}

cat(gc3(x))

HVoltBb/kondonz documentation built on Jan. 11, 2020, 3:30 a.m.