skbio.metadata.IntervalMetadata.write

IntervalMetadata.write(file, format='gff3', **kwargs)[source]

Write an instance of IntervalMetadata 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 see skbio.io.

Supported file formats include:

Parameters:
  • file (openable (filepath, URL, 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.
  • format (str) – The format must be a registered format name with a writer for IntervalMetadata. Default is ‘gff3’.
  • kwargs (dict, optional) – Keyword arguments passed to skbio.io.registry.write() and the file format writer.