conkit.io.ccmpred module¶
Parser module specific to CCMpred predictions
-
class
CCMpredParser
[source]¶ Bases:
conkit.io._parser.ContactFileParser
Class to parse a CCMpred contact matrix
-
read
(f_handle, f_id='ccmpred')[source]¶ Read a contact file
Parameters: - f_handle – Open file handle [read permissions]
- f_id (str, optional) – Unique contact file identifier
Returns: Return type:
-
write
(f_handle, hierarchy)[source]¶ Write a contact file instance to to file
Parameters: - f_handle – Open file handle [write permissions]
- hierarchy (
ContactFile
,ContactMap
) – orContact
Raises: RuntimeError
– More than one contact map in the hierarchy
-