Darwin Help

Back to Index

BaseCount

Function BaseCount - Counts the number of DNA bases in a sequence

Calling Sequence  BaseCount(sequ)
Parameters
NameTypeDescription

sequ stringDNA sequence
Return Type  list
Synopsis BaseCount counts the number of each base in a DNA sequence and returns a vector of length 6 with the number of each kind of base A, C, G, T, U, and X in place numbers 1 through 6 respectively.
Examples
> BaseCount('ACCGGGTTTUUX');
[1, 2, 3, 3, 2, 1]