skbio.alignment.TabularMSA.write#
- TabularMSA.write(file, format=None, **kwargs)[source]#
Write an instance of
TabularMSA
to a file.This is a convenience method for
skbio.io.registry.write()
. For more information about the I/O system in scikit-bio, please seeskbio.io
.Supported file formats include:
'clustal'
(skbio.io.format.clustal
)'fasta'
(skbio.io.format.fasta
)'fastq'
(skbio.io.format.fastq
)'phylip'
(skbio.io.format.phylip
)'stockholm'
(skbio.io.format.stockholm
)
- Parameters:
- fileopenable (filepath, filehandle, etc.)
The location to write the given format into. Something that is understood by
skbio.io.util.open()
. Filehandles are not automatically closed, it is the responsibility of the caller.- formatstr, optional
The format to write the
TabularMSA
object as. The format must be a registered format name with a writer forTabularMSA
. Default is'fasta'
.- kwargsdict, optional
Additional arguments passed to the writer for
TabularMSA
.