Source code for promod3.loop
'''__init__.py of the loop module
'''
from _loop import *
# not the best style, but as long as we only have a single function in
# __init__.py lets ignore this flaw... if there are more general functions
# coming up, start sth like a 'base.py' and import here properly
[docs]def SetupBackboneScorer(raw_model):
'''Get a scorer for medling with backbones.
This one is already tailored towards a certain modelling job.
:param raw_model: The raw model this scorer should be dedicated to.
:type raw_model: :class:`~promod3.rawmodel.RawModelingResult`
:return: A scorer instance.
:rtype: :class:`~promod3.loop.BackboneLoopScorer`
'''
scorer = LoadBackboneLoopScorer()
seqres = list()
for s in raw_model.seqres:
seqres.append(s.GetString())
scorer.Initialize(seqres)
scorer.SetEnvironment(raw_model.model)
return scorer