sugar._io.clustal module

Clustal IO

sugar._io.clustal.is_clustal(f, **kw)[source]
sugar._io.clustal.read_clustal(f)[source]

Read Clustal alignment from file into BioBasket

Warning

This function should NOT be called directly, it registers via read() and iter_(), call this instead.

sugar._io.clustal.write_clustal(seqs, f, header_sugar=True, header=None)[source]

Write BioBasket to Clustal format

Parameters:
  • header_sugar (bool) – Append header with sugar version to the first line, default is True

  • header (str) – More information appended to the first line

Warning

This function should NOT be called directly, it registers via BioBasket.write(), call this instead.