Parser module specific to Pcons predictions
This module can be used to parse all versions of the Pcons programs, i.e. PconsC, PconsC2, and PconsC3.
PconsParser
[source]¶Bases: conkit.io._ParserIO._ContactFileParser
Class to parse a Pcons output
This module can be used to parse all versions of the Pcons programs, i.e. PconsC, PconsC2, and PconsC3.
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='pcons')[source]¶Read a contact file
Parameters: | f_handle
f_id : str, optional
|
---|---|
Returns: |
write
(f_handle, hierarchy)[source]¶Write a contact file instance to to file
Default format is PconsC3
style, including comments
and sequence information (if provided).
Parameters: | f_handle
hierarchy :
|
---|---|
Raises: | RuntimeError
|