skbio.io.registry.
IORegistry
[source]¶Create a registry of formats and implementations which map to classes.
Built-ins
__init_subclass__ |
This method is called when a class is subclassed. |
Methods
add_format (format_object) |
Add a format to the registry. |
create_format (*args, **kwargs) |
A simple factory for creating new file formats. |
get_reader (format_name, cls) |
Locate the reader for a format and class. |
get_sniffer (format_name) |
Locate the sniffer for a format. |
get_writer (format_name, cls) |
Locate the writer for a format and class. |
list_read_formats (cls) |
Return a list of available read formats for a given cls type. |
list_write_formats (cls) |
Return a list of available write formats for a given cls type. |
monkey_patch () |
Monkey-patch read and write methods onto registered classes. |
read (file[, format, into, verify]) |
Read file as format into an object. |
sniff (file, **kwargs) |
Detect the format of a given file and suggest kwargs for reading. |
write (obj, format, into, **kwargs) |
Write obj as format into a file. |