gccount: Count bases in sequence

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.R

Description

Returns the number of 'A', 'C', 'G' and 'T' bases in the 'inseq' sequence string.

Usage

1
gccount(inseq)

Arguments

inseq

a DNA sequence string.

Details

This function calls a C primitive

Value

A numeric of length 4

Author(s)

Laurent Gatto [email protected]

Examples

1
2
3
4
s <- "AAAACCCGGT"
cnt <- gccount(s)
cnt
stopifnot(cnt==table(strsplit(s,"")))

lgatto/sequences documentation built on May 21, 2017, 12:40 p.m.