skbio.io.registry.write#
- skbio.io.registry.write(self, obj, format, into, **kwargs)[source]#
- Write an object as certain format into a file. - Parameters:
- objobject
- The object to write as - format.
- formatstr
- The format to write - objas.
- intoopenable (filepath, URL, filehandle, etc.)
- What to write - objto. Something that is understood by- skbio.io.open.
- kwargsdict, optional
- Keyword arguments will be passed to their respective handlers ( - skbio.io.openand the writer for- format).
 
- Returns:
- openable (filepath, URL, filehandle, etc.)
- Will pass back the user argument for - intoas a convenience.
 
- Raises:
- UnrecognizedFormatError
- Raised when a writer for writing - objas- formatcould not be found.