biotite.sequence.io.save_sequence

biotite.sequence.io.save_sequence(file_path, sequence)[source]

Save a sequence into a sequence file without the need to manually instantiate a File object.

Internally this function uses a File object, based on the given file extension.

Parameters
file_pathstr

The path to structure file.

sequenceSequence

The sequence to be saved.