www.gusucode.com > bioinfo 案例源码程序 matlab代码 > bioinfo/DisplayASequenceLogoForAlignedAASeqExample.m

    %% Display a Sequence Logo for Aligned Amino Acid Sequences
% This example shows how to display a sequence logo for a set of aligned
% amino acid sequences.

% Copyright 2015 The MathWorks, Inc.


%%
% Create a series of aligned amino acid sequences.
S2 = {'LSGGQRQRVAIARALAL',... 
      'LSGGEKQRVAIARALMN',... 
      'LSGGQIQRVLLARALAA',...
      'LSGGERRRLEIACVLAL',... 
      'FSGGEKKKNELWQMLAL',... 
      'LSGGERRRLEIACVLAL'};
%%
% Display the sequence logo, specifying an amino acid sequence and limiting
% the logo to sequence positions 2 through 10.
seqlogo(S2, 'alphabet', 'aa', 'startAt', 2, 'endAt', 10)