Skip to content
Snippets Groups Projects
Commit 5c479ed0 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

Merge branch 'develop' into experimental

parents d48b2524 6aae24e2
Branches
Tags
No related merge requests found
......@@ -299,6 +299,12 @@ The BackboneList class
Remove all residues from this list.
.. method:: Copy()
Creates and returns a deep copy of this :class:`BackboneList`. This can be
useful, since Python uses reference assignments.
:rtype: :class:`BackboneList`
.. method:: ReconstructCBetaPositions()
......
......
......@@ -66,6 +66,11 @@ BackboneListPtr FullInitWrapperRHList(const String& sequence,
return p;
}
BackboneListPtr WrapCopy(BackboneListPtr p){
BackboneListPtr return_p(new BackboneList(*p));
return return_p;
}
void InsertInto_int(BackboneListPtr p, ost::mol::ChainHandle& chain,
uint start_resnum) {
p->InsertInto(chain, start_resnum);
......@@ -156,6 +161,7 @@ void export_Backbone() {
.def(init<const String&>())
.def("__init__", make_constructor(&FullInitWrapper))
.def("__init__", make_constructor(&FullInitWrapperRHList))
.def("Copy", &WrapCopy)
.def("ToDensity", &BackboneList::ToDensity,
(arg("padding")=10.0, arg("sampling")=geom::Vec3(1.0,1.0,1.0),
......
......
......@@ -160,7 +160,7 @@ def _CloseLoopFrame(mhandle, gap_orig, actual_candidates, actual_extended_gaps,
start_index = actual_extended_gaps[i].before.GetNumber().GetNum()\
- min_before_resnum
for j, loop_candidate in enumerate(loop_candidates):
actual_frame_backbone_list = frame_backbone_list
actual_frame_backbone_list = frame_backbone_list.Copy()
actual_frame_backbone_list.ReplaceFragment(
loop_candidate, start_index, False)
final_loop_candidates.Add(actual_frame_backbone_list)
......@@ -911,11 +911,6 @@ def FillLoopsByMonteCarlo(mhandle, torsion_sampler, max_loops_to_search=6,
if not IsBackboneScoringSetUp(mhandle):
SetupDefaultBackboneScoring(mhandle)
# disable AllAtom scoring here
if score_variant == 3:
score_variant = 0
ost.LogInfo("AllAtom scoring disabled for FillLoopsByMonteCarlo.")
# point to the current gap
gap_idx = 0
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment