You are reading the documentation for version 3.0 of ProMod3. You may also want to read the documentation for: 1.3 2.0 2.1

# scoring - Loop Scoring¶

Tools and algorithms to score loops. The scoring system is split between an environment and scorers. Several scorers can be attached to the same environment containing the actual structural data of the current modelling problem. The environment is updated as the modelling proceeds and manages efficient spatial lookups to be used by the attached scorers.

In this example, we load a structure, setup a score environment, link a few scorers to it and finally score some loops:

from ost import io, seq
from promod3 import loop, scoring

ent_seq = seq.SequenceFromChain('A', ent.FindChain('A'))

# setup score environment linked to entity
score_env = scoring.BackboneScoreEnv(ent_seq)
score_env.SetInitialEnvironment(ent)

# setup scorers attached to that env.
clash_scorer = scoring.ClashScorer()
clash_scorer.AttachEnvironment(score_env)
cbeta_scorer.AttachEnvironment(score_env)

# calculate scores for 10 residues starting at residue number 23.
# all required structural information comes from the environment
# that can evolve as the modelling proceeds.
print("Clash-Score", clash_scorer.CalculateScore(23, 10))
print("CBeta-Score", cbeta_scorer.CalculateScore(23, 10))


Contents:

## Search

Enter search terms or a module, class or function name.

## Previous topic

Subrotamer Optimization

## Next topic

Backbone Score Environment