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

Methods

read(f_handle[, f_id]) Read a contact file
write(f_handle, hierarchy) Write a contact file instance to to file
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:

ContactFile

write(f_handle, hierarchy)[source]

Write a contact file instance to to file

Parameters:

f_handle

Open file handle [write permissions]

hierarchy : ContactFile, ContactMap

Raises:

RuntimeError

More than one contact map in the hierarchy

TypeError

Python3 requires f_handle to be in ‘wb’ or ‘ab’ mode