<< btd_basecomp BTD btd_codonusage >>

BTD >> BTD > btd_codoncount

btd_codoncount

Count codons in a nucleotide sequence

Calling Function

y = btd_codoncount(x)

Arguments

x

String of codes specifying a nucleotide sequence

y

Matrix of size [n,2] of text, one row per identified codon: y(:,1) are condons codes. y(:,2) are respective numbers: they can be converted into decimal numbers with evstr(y(:,2)).

Description

To count the number of codon of each type

y = btd_codoncount(x) counts the number of all possible three letter codons in the given DNA sequence x.

Examples

y = btd_codoncount("AAAAAACTC")
evstr(y(:,2))
--> y = btd_codoncount("AAAAAACTC")
 y  = 
!AAA  2  !
!CTC  1  !

--> evstr(y(:,2))
 ans  =
   2.
   1.

See Also


Report an issue
<< btd_basecomp BTD btd_codonusage >>