conkit.io.freecontact module

Parser module specific to FreeContact predictions

class FreeContactParser[source]

Bases: conkit.io._parser.ContactFileParser

Class to parse a FreeContact contact file

read(f_handle, f_id='freecontact')[source]

Read a contact file

Parameters:
  • f_handle – Open file handle [read permissions]
  • f_id (str, optional) – Unique contact file identifier
Returns:

Return type:

ContactFile

write(f_handle, hierarchy)[source]

Write a contact file instance to to file

Parameters:
Raises:

RuntimeError – More than one contact map in the hierarchy