GC | R Documentation |

Calculate G and C content of nucleotide sequences. The number of G and C in sequence is divided by length of sequence(when totalnt is TRUE) or the number of all A,T,C,G and ambiguous base.

GC(ntseq, ambiguous = FALSE, totalnt = TRUE)

`ntseq` |
Sequence (5' to 3') of one strand of the nucleic acid duplex as string or vector of characters. |

`ambiguous` |
Ambiguous bases are taken into account to compute the G and C content when ambiguous is TRUE. |

`totalnt` |
Sum of 'G' and 'C' bases divided by the length of the sequence when totalnt is TRUE. |

Content of G and C(range from 0 to 100

Junhui Li

GC(c("a","t","c","t","g","g","g","c","c","a","g","t","a"))#53.84615 GC("GCATSWSYK",ambiguous = TRUE)#55.55556

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.