conkit.io.ncont module

Parser module specific to ncont contact comparison

class NcontParser[source]

Bases: conkit.io._parser.ContactFileParser

Class to parse a Ncont contact file

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=’ncont’)[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:

NotImplementedError

Write function not available

Notes

Creating a :func`write` function for the Ncont parser would come with a lot of issues, such as the parallel/antiparallel direction, scoring etc.

Thus, no write() method is available.