TmCalculator (version 1.0.0)

GC: Calculate G and C content of nucleotide sequences

Description

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.

Usage

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

Arguments

ntseq

The primer/probe sequence 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

Value

Content of G and C(range from 0 to 100)

Examples

Run this code
# NOT RUN {
GC(c("a","t","c","t","g","g","g","c","c","a","g","t","a"))#53.84615
GC("GCATSWSYK",ambiguous = TRUE)#55.55556
# }

Run the code above in your browser using DataCamp Workspace