ContactFile container used throughout ConKit
ContactFile
(id)[source]¶Bases: conkit.core._entity._Entity
A contact file object representing a single prediction file
The contact file class represents a data structure to hold all predictions with a single contact map file. It contains functions to store, manipulate and organise contact maps.
Examples
>>> from conkit.core import ContactMap, ContactFile
>>> contact_file = ContactFile("example")
>>> contact_file.add(ContactMap("foo"))
>>> contact_file.add(ContactMap("bar"))
>>> print(contact_file)
ContactFile(id="example" nseq=2)
Attributes
author |
The author of the ContactFile |
method |
The ContactFile -specific method |
remark |
The ContactFile -specific remarks |
target |
The target name |
top_map |
The first ContactMap entry in ContactFile |
Methods
add (entity) |
Add a child to the Entity |
copy () |
Create a shallow copy of Entity |
deepcopy () |
Create a deep copy of Entity |
remove (id) |
Remove a child |
sort (kword[, reverse, inplace]) |
Sort the ContactFile |
The author of the ContactFile
method
¶The ContactFile
-specific method
remark
¶The ContactFile
-specific remarks
sort
(kword, reverse=False, inplace=False)[source]¶Sort the ContactFile
Parameters: | kword : str
reverse : bool, optional
inplace : bool, optional
|
---|---|
Returns: | obj
|
Raises: | ValueError
|
target
¶The target name
top_map
¶The first ContactMap
entry in ContactFile