Count codons in a nucleotide sequence
y = btd_codoncount(x)
String of codes specifying a nucleotide sequence
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))
.
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.
y = btd_codoncount("AAAAAACTC") evstr(y(:,2)) | ![]() | ![]() |
--> y = btd_codoncount("AAAAAACTC") y = !AAA 2 ! !CTC 1 ! --> evstr(y(:,2)) ans = 2. 1.