calcGC {HELP} | R Documentation |
Function to calculate GC percent from a nucleotide sequence input
calcGC(x, ...)
x |
characters containing nucleotide sequence (ex: "ATCGGAA") or an object of class ExpressionSet |
... |
Other arguments passed to methods:
\item{allow} { vector of characters specifying what other characters to allow in sequence (default is "N") }
|
Returns a numerical value (from 0 to 1) indicating the C+G content of the sequence, corresponding to the fraction of (C+G)/(A+T+C+G...). A value of NA is returned if the function encounters an error that prevents proper calculation of GC percent.
Reid F. Thompson (rthompso@aecom.yu.edu)
#demo(pipeline,package="HELP") calcGC("AAAACGCG") calcGC(sequence="cXgXcXgXcXgX",allow="X")