skbio.io.get_reader

skbio.io.get_reader(format, cls=None)[source]

Return a reader for a format.

Parameters:

format : str

A registered format string.

cls : type, optional

The class which the reader will return an instance of. If cls is None, the reader will return a generator. Default is None.

Returns:

function or None

Returns a reader function if one exists for a given fmt and cls. Otherwise it will return None.