multialignread
Read multiple sequence alignment file
Syntax
S
= multialignread(File
)
[Headers
, Sequences
]
= multialignread(File
)
... = multialignread(File
,
'IgnoreGaps', IgnoreGapsValue
)
... = multialignread(File
,
'TimeOut', TimeOutValue
)
Input Arguments
File | Multiple sequence alignment file specified by one of the following:
You can read common multiple sequence alignment
file types, such as ClustalW ( |
IgnoreGapsValue | Controls removing gap symbols, such as '-' or '.' ,
from the sequences. Choices are true or false (default). |
TimeOutValue | Connection timeout in seconds, specified as a positive scalar. The default value is 5. For details, see here. |
Output Arguments
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. |
Description
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 S
= multialignread(File
)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
contains
the header information and S
.Header
contains
the amino acid or nucleotide sequences.S
.Sequence
[
reads
the file into separate variables, Headers
, Sequences
]
= multialignread(File
)Headers
and Sequences
,
which are cell arrays containing header information and amino acid
or nucleotide sequences, respectively.
... = multialignread(
controls
the removal of any gap symbol, such as File
,
'IgnoreGaps', IgnoreGapsValue
)'-'
or '.'
,
from the sequences. Choices are true
or false
(default).
... = multialignread(
sets the connection timeout (in seconds) to read data from a remote file or URL.File
,
'TimeOut', TimeOutValue
)
Examples
Read a multiple sequence alignment of the gag polyprotein for several HIV strains.
gagaa = multialignread('aagag.aln') gagaa = 1x16 struct array with fields: Header Sequence
Version History
Introduced before R2006a
See Also
fastaread
| gethmmalignment
| multialign
| seqalignviewer
| multialignwrite
| seqconsensus
| seqdisp
| seqprofile