conkit.core.contact module

Contact container used throughout ConKit

class Contact(res1_seq, res2_seq, raw_score, distance_bound=(0, 8))[source]

Bases: conkit.core.entity.Entity

A contact pair template to store all associated information

Examples

>>> from conkit.core import Contact
>>> contact = Contact(1, 25, 1.0)
>>> print(contact)
Contact(id="(1, 25)" res1="A" res1_seq=1 res2="A" res2_seq=25 raw_score=1.0)
distance_bound

The lower and upper distance boundary values of a contact pair in Ångstrom [Default: 0-8Å].

Type:tuple
id

A unique identifier

Type:str
true_positive

A boolean status for the contact

Type:bool
true_negative

A boolean status for the contact

Type:bool
false_positive

A boolean status for the contact

Type:bool
false_negative

A boolean status for the contact

Type:bool
status_unknown

A boolean status for the contact

Type:bool
lower_bound

The lower distance boundary value

Type:int
raw_score

The prediction score for the contact pair

Type:float
res1

The amino acid of residue 1 [default: X]

Type:str
res2

The amino acid of residue 2 [default: X]

Type:str
res1_chain

The chain for residue 1

Type:str
res2_chain

The chain for residue 2

Type:str
res1_seq

The residue sequence number of residue 1

Type:int
res2_seq

The residue sequence number of residue 2

Type:int
res1_altseq

The alternative residue sequence number of residue 1

Type:int
res2_altseq

The alternative residue sequence number of residue 2

Type:int
scalar_score

The raw_score scaled according to its average

Type:float
status

An indication of the residue status

Type:int
upper_bound

The upper distance boundary value

Type:int
weight

A separate internal weight factor for the contact pair

Type:float
define_match(**kwargs)
define_mismatch(**kwargs)
define_unknown(**kwargs)
distance_bound

0-8Å].

Type:The lower and upper distance boundary values of a contact pair in Ångstrom [Default
false_negative
false_positive
is_match
is_mismatch
is_unknown
lower_bound

The lower distance boundary value

raw_score
res1

X]

Type:The amino acid of residue 1 [default
res1_altseq

The alternative residue sequence number of residue 1

res1_chain
res1_seq

The residue sequence number of residue 1

res2

X]

Type:The amino acid of residue 2 [default
res2_altseq

The alternative residue sequence number of residue 2

res2_chain
res2_seq

The residue sequence number of residue 2

scalar_score
status

An indication of the residue status

status_unknown
true_negative
true_positive
upper_bound

The upper distance boundary value

weight