rstoolbox.io.parse_rosetta_fragments

rstoolbox.io.parse_rosetta_fragments(filename, source=None)

Read a Rosetta fragment-file and return the appropiate FragmentFrame.

It supports both old and new fragment formats. Does not support varying size fragment sets. When working with both small and large fragments sets, one would need to call the function twice and save the data of each in a different variable.

Parameters:
  • filename (str) – File containing the Rosetta fragments.
  • source (str) – If provided, add a column source with a source identifier.
Returns:

FragmentFrame.

Raises:
IOError:if filename cannot be found.