www.gusucode.com > bioinfo 案例源码程序 matlab代码 > bioinfo/CountCodonsInNucleotideSeqExample.m
%% Count codons in a nucleotide sequence % This example shows how to count codons in a nucleotide sequence. % Copyright 2015 The MathWorks, Inc. %% % Count the codons in a given nucleotide sequence. codons = codoncount('AAACGTTA') %% % Count the codons in the second frame for the reverse complement of a % given sequence. r2codons = codoncount('AAACGTTA','Frame',2,'Reverse',true) %% % Create a heat map of the codons in a random nucleotide sequence and % overlay a grid that groups the synonymous codons according to the % standard genetic code. a = randseq(1000); codoncount(a,'Figure', true);