<< btd_codoncount BTD btd_entropydna >>

BTD >> BTD > btd_codonusage

btd_codonusage

Frequency of each codon type

Calling Function

y = btd_codonusage(x1, x2)

Arguments

x1

String of single-letter codes specifying a DNA/RNA sequence

x2

integer: Reading Frame (1/2/3/4/5/6)

y

Frequency of each codon type. 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 frequency of each codon type

y = btd_codonusage(x1, x2) count the frequency of each codon type in the given nucleotide sequence x1 in a given Reading Frame x2.

Examples

y = btd_codonusage("ATCGATCGATCGTATATGCTAGCTA",1)
evstr(y(:,2))'
--> y = btd_codonusage("ATCGATCGATCGTATATGCTAGCTA",1)
 y  = 
!UCG  1  !
!UAU  1  !
!GCU  1  !
!GAU  1  !
!CUA  1  !
!CGA  1  !
!AUG  1  !
!AUC  1  !

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

See Also


Report an issue
<< btd_codoncount BTD btd_entropydna >>