Write multiple alignment to file
multialignwrite(..., 'Format', FormatValue, ...)
multialignwrite(..., 'Header', HeaderValue, ...)
multialignwrite(..., 'WriteCount', WriteCountValue, ...)
multialignwrite(File, Alignment) writes the contents of an alignment to a ClustalW ALN-formatted (default) or MSF-formatted file.
multialignwrite(..., 'PropertyName', PropertyValue, ...) calls multialignwrite with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Enclose each PropertyName in single quotation marks. Each PropertyName is case insensitive. These property name/property value pairs are as follows:
multialignwrite(..., 'Format', FormatValue, ...) specifies the format of the file. FormatValue can be 'ALN' (default) or 'MSF'.
multialignwrite(..., 'Header', HeaderValue, ...) specifies the first line of the file. The default for HeaderValue is 'MATLAB multiple sequence alignment'.
multialignwrite(..., 'WriteCount', WriteCountValue, ...) specifies whether to add the residue counts to the end of each line. WriteCountValue can be true (default) or false.
An alignment, such as returned by the multialign function, represented by either a:
String specifying either a file name or a path and file name for saving the data. If you specify only a file name, the file is saved to the MATLAB® Current Folder browser.
Below the columns of the ClustalW ALN-formatted file, symbols can appear that denote:
For more information on these symbols and the groups of residues considered conserved and semiconserved, see section 12 in "Changes since version 1.6" at http://web.mit.edu/seven/src/clustalw-1.82/README.
String that specifies the format of File. Choices are 'ALN' (default) or 'MSF'.
String that specifies the first line of the file.
Default: 'MATLAB multiple sequence alignment'
Specifies whether to add the residue counts to the end of each line. Choices are true (default) or false.
Use the fastaread function to read p53samples.txt, a FASTA-formatted file included with the Bioinformatics Toolbox™ software, which contains seven cellular tumor antigen p53 sequences.
p53 = fastaread('p53samples.txt') p53 = 7x1 struct array with fields: Header Sequence
Use the multialign function to align the seven cellular tumor antigen p53 sequences.
ma = multialign(p53,'verbose',true);
Write the alignment to a file named p53.aln.