Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
5252923c
"README.md" did not exist on "c89564bc115f5cc464d57c03224b9d6fa5015b88"
Commit
5252923c
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
added option to disable connecting adjacent residues
parent
19bc7445
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/conop/src/heuristic.cc
+2
-1
2 additions, 1 deletion
modules/conop/src/heuristic.cc
modules/conop/src/processor.hh
+8
-1
8 additions, 1 deletion
modules/conop/src/processor.hh
modules/conop/src/rule_based.cc
+2
-1
2 additions, 1 deletion
modules/conop/src/rule_based.cc
with
12 additions
and
3 deletions
modules/conop/src/heuristic.cc
+
2
−
1
View file @
5252923c
...
@@ -70,7 +70,8 @@ void HeuristicProcessor::DoProcess(DiagnosticsPtr diags,
...
@@ -70,7 +70,8 @@ void HeuristicProcessor::DoProcess(DiagnosticsPtr diags,
this
->
FillResidueProps
(
residue
,
compound
);
this
->
FillResidueProps
(
residue
,
compound
);
if
(
this
->
GetConnect
())
{
if
(
this
->
GetConnect
())
{
this
->
ConnectAtomsOfResidue
(
residue
,
compound
,
false
);
this
->
ConnectAtomsOfResidue
(
residue
,
compound
,
false
);
this
->
ConnectResidues
(
prev
,
residue
);
if
(
this
->
GetConnectAminoAcids
())
this
->
ConnectResidues
(
prev
,
residue
);
}
}
prev
=
residue
;
prev
=
residue
;
if
(
!
this
->
GetConnect
())
{
continue
;
}
if
(
!
this
->
GetConnect
())
{
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/conop/src/processor.hh
+
8
−
1
View file @
5252923c
...
@@ -66,7 +66,7 @@ protected:
...
@@ -66,7 +66,7 @@ protected:
mol
::
AtomHandle
LocateAtom
(
const
mol
::
AtomHandleList
&
,
int
ordinal
)
const
;
mol
::
AtomHandle
LocateAtom
(
const
mol
::
AtomHandleList
&
,
int
ordinal
)
const
;
public
:
public
:
Processor
()
:
check_bond_feasibility_
(
false
),
Processor
()
:
check_bond_feasibility_
(
false
),
assign_torsions_
(
false
),
connect_
(
true
),
assign_torsions_
(
false
),
connect_
(
true
),
connect_aa_
(
true
),
zero_occ_treatment_
(
CONOP_SILENT
)
{}
zero_occ_treatment_
(
CONOP_SILENT
)
{}
void
SetConnect
(
bool
connect
)
{
void
SetConnect
(
bool
connect
)
{
connect_
=
connect
;
connect_
=
connect
;
...
@@ -82,6 +82,12 @@ public:
...
@@ -82,6 +82,12 @@ public:
return
assign_torsions_
;
return
assign_torsions_
;
}
}
bool
GetConnectAminoAcids
()
const
{
return
connect_aa_
;
}
void
SetConnectAminoAcids
(
bool
c
)
{
connect_aa_
=
c
;
}
bool
GetCheckBondFeasibility
()
const
{
bool
GetCheckBondFeasibility
()
const
{
return
check_bond_feasibility_
;
return
check_bond_feasibility_
;
}
}
...
@@ -103,6 +109,7 @@ private:
...
@@ -103,6 +109,7 @@ private:
bool
check_bond_feasibility_
;
bool
check_bond_feasibility_
;
bool
assign_torsions_
;
bool
assign_torsions_
;
bool
connect_
;
bool
connect_
;
bool
connect_aa_
;
ConopAction
zero_occ_treatment_
;
ConopAction
zero_occ_treatment_
;
};
};
...
...
This diff is collapsed.
Click to expand it.
modules/conop/src/rule_based.cc
+
2
−
1
View file @
5252923c
...
@@ -73,7 +73,8 @@ void RuleBasedProcessor::DoProcess(DiagnosticsPtr diags,
...
@@ -73,7 +73,8 @@ void RuleBasedProcessor::DoProcess(DiagnosticsPtr diags,
if
(
this
->
GetConnect
())
{
if
(
this
->
GetConnect
())
{
this
->
ConnectAtomsOfResidue
(
residue
,
compound
,
this
->
ConnectAtomsOfResidue
(
residue
,
compound
,
this
->
GetStrictHydrogens
());
this
->
GetStrictHydrogens
());
this
->
ConnectResidues
(
prev
,
residue
);
if
(
this
->
GetConnectAminoAcids
())
this
->
ConnectResidues
(
prev
,
residue
);
for
(
mol
::
AtomHandleList
::
iterator
k
=
atoms_to_connect
.
begin
(),
for
(
mol
::
AtomHandleList
::
iterator
k
=
atoms_to_connect
.
begin
(),
e3
=
atoms_to_connect
.
end
();
k
!=
e3
;
++
k
)
{
e3
=
atoms_to_connect
.
end
();
k
!=
e3
;
++
k
)
{
this
->
DistanceBasedConnect
(
*
k
);
this
->
DistanceBasedConnect
(
*
k
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment