conkit.core.distancefile module

Distance prediction file container used throughout ConKit

class DistanceFile(id)[source]

Bases: conkit.core.contactfile.ContactFile

A distance file object representing a single distance prediction file. This class inherits methods and attributes from ContactFile

Examples

>>> from conkit.core import Distogram, DistanceFile
>>> distance_file = DistanceFile("example")
>>> distance_file.add(Distogram("foo"))
>>> distance_file.add(Distogram("bar"))
>>> print(distance_file)
DistanceFile(id="example" ndistograms=2)
author

The author of the ContactFile

Type:str
method

The ContactFile-specific method

Type:list, str
remark

The ContactFile-specific remarks

Type:list, str
target

The target name

Type:str
top_map

The first ContactMap entry in ContactFile

Type:ContactMap
original_file_format

The original file format used to create the Distogram instance

Type:str
add(entity)[source]

Add a child to the Entity

Parameters:entity (Entity) –
author
original_file_format

The original file format used to create the DistanceFile instance

target