GC2 {seqinr}R Documentation

Calculates the fractional GC2 content of nucleic acid sequences

Description

This calculates the fraction of G+C in the second position of the codon bases of the input nucleic acid sequence(s)

Usage

GC2(seq)

Arguments

seq any nucleic acid sequence

Value

It returns the fraction of GC2 as a numeric vector

Author(s)

D. Charif

References

  To have an overview of the seqinR's functionnality, please consult this vignette: Charif, D., Lobry, J.R. (2005) SeqinR: a contributed package to the R project for statistical computing devoted to biological sequences retrieval and analysis. Springer Verlag, Biological and Medical Physics/Biomedical Series, in preparation.

Examples

   s=s2c("agtctggggggccccttttaagtagatagatagctagtcgta")
   GC2(s)

[Package seqinr version 1.0-2 Index]