| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
S = multialignread(File)
[Headers, Sequences]
= multialignread(File)
... = multialignread(File,
'IgnoreGaps', IgnoreGapsValue)
| File | Multiple sequence alignment file specified by one of the following:
You can read common multiple sequence alignment file types, such as ClustalW (.aln), GCG (.msf), and PHYLIP. |
| IgnoreGapsValue | Controls removing gap symbols, such as '-' or '.', from the sequences. Choices are true or false (default). |
| S | MATLAB structure array containing the following fields:
|
| Headers | Cell array containing the header information from the file. |
| Sequences | Cell array containing the amino acid or nucleotide sequences. |
S = multialignread(File) reads a multiple sequence alignment file. The file contains multiple sequence lines that start with a sequence header followed by an optional number (not used by multialignread) and a section of the sequence. The multiple sequences are broken into blocks with the same number of blocks for every sequence. To view an example multiple sequence alignment file, type open aagag.aln at the MATLAB command line.
The output, S, is a structure array where S.Header contains the header information and S.Sequence contains the amino acid or nucleotide sequences.
[Headers, Sequences] = multialignread(File) reads the file into separate variables, Headers and Sequences, which are cell arrays containing header information and amino acid or nucleotide sequences, respectively.
... = multialignread(File, 'IgnoreGaps', IgnoreGapsValue) controls the removal of any gap symbol, such as '-' or '.', from the sequences. Choices are true or false (default).
Read a multiple sequence alignment of the gag polyprotein for several HIV strains.
gagaa = multialignread('aagag.aln')
gagaa =
1x16 struct array with fields:
Header
SequenceBioinformatics Toolbox functions: fastaread, gethmmalignment, multialign, multialignviewer, multialignwrite, seqconsensus, seqdisp, seqprofile
![]() | multialign | multialignviewer | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |