classmethod, format=None, **kwargs)[source]#

Create a new Sequence instance from a file.

This is a convenience method for For more information about the I/O system in scikit-bio, please see

Supported file formats include:

fileopenable (filepath, URL, filehandle, etc.)

The location to read the given format. Something that is understood by Filehandles are not automatically closed, it is the responsibility of the caller.

formatstr, optional

The format must be a format name with a reader for Sequence. If a format is not provided or is None, it will attempt to guess the format.

kwargsdict, optional

Keyword arguments passed to and the file format reader for Sequence.


A new instance.