GC {seqinr} | R Documentation |
This calculates the fraction of G+C bases of the input nucleic acid sequence(s) It reads in nucleic acid sequences, sums the number of 'G' and 'C' bases and writes out the result as the fraction (in the interval 0.0 to 1.0) of the length of the whole sequence.
GC(seq)
seq |
any nucleic acid sequence |
It returns the fraction of G+C as a numeric vector
D. Charif
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.
s=s2c("agtctggggggccccttttaagtagatagatagctagtcgta") GC(s)