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
548c1073
Commit
548c1073
authored
10 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
remove functions that are never used
parent
75371836
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/mol/mm/pymod/export_modeller.cc
+0
-3
0 additions, 3 deletions
modules/mol/mm/pymod/export_modeller.cc
modules/mol/mm/src/modeller.cc
+0
-105
0 additions, 105 deletions
modules/mol/mm/src/modeller.cc
modules/mol/mm/src/modeller.hh
+0
-6
0 additions, 6 deletions
modules/mol/mm/src/modeller.hh
with
0 additions
and
114 deletions
modules/mol/mm/pymod/export_modeller.cc
+
0
−
3
View file @
548c1073
...
...
@@ -10,9 +10,6 @@ void export_Modeller()
class_
<
ost
::
mol
::
mm
::
Modeller
>
(
"MMModeller"
,
no_init
)
.
def
(
"GenerateDisulfidBonds"
,
&
ost
::
mol
::
mm
::
Modeller
::
GenerateDisulfidBonds
,(
arg
(
"ent"
))).
staticmethod
(
"GenerateDisulfidBonds"
)
.
def
(
"GenerateCYSHEMEBonds"
,
&
ost
::
mol
::
mm
::
Modeller
::
GenerateCYSHEMEBonds
,(
arg
(
"ent"
))).
staticmethod
(
"GenerateCYSHEMEBonds"
)
.
def
(
"GenerateHISHEMEBonds"
,
&
ost
::
mol
::
mm
::
Modeller
::
GenerateHISHEMEBonds
,(
arg
(
"ent"
))).
staticmethod
(
"GenerateHISHEMEBonds"
)
.
def
(
"GenerateMETHEMEBonds"
,
&
ost
::
mol
::
mm
::
Modeller
::
GenerateDisulfidBonds
,(
arg
(
"ent"
))).
staticmethod
(
"GenerateMETHEMEBonds"
)
.
def
(
"AssignPDBNaming"
,
&
ost
::
mol
::
mm
::
Modeller
::
AssignPDBNaming
,(
arg
(
"ent"
))).
staticmethod
(
"AssignPDBNaming"
)
.
def
(
"AssignGromacsNaming"
,
&
ost
::
mol
::
mm
::
Modeller
::
AssignGromacsNaming
,(
arg
(
"ent"
))).
staticmethod
(
"AssignGromacsNaming"
)
;
...
...
This diff is collapsed.
Click to expand it.
modules/mol/mm/src/modeller.cc
+
0
−
105
View file @
548c1073
...
...
@@ -46,111 +46,6 @@ void Modeller::GenerateDisulfidBonds(ost::mol::EntityHandle& handle){
}
}
void
Modeller
::
GenerateCYSHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
){
ost
::
mol
::
ResidueHandleList
res_list
=
handle
.
GetResidueList
();
ost
::
mol
::
XCSEditor
ed
=
handle
.
EditXCS
();
for
(
ost
::
mol
::
ResidueHandleList
::
iterator
i
=
res_list
.
begin
();
i
!=
res_list
.
end
();
++
i
){
if
(
i
->
GetName
()
==
"HEM"
||
i
->
GetName
()
==
"HEME"
){
ost
::
mol
::
AtomHandle
fe
=
i
->
FindAtom
(
"FE"
);
if
(
fe
.
IsValid
()){
ost
::
mol
::
AtomHandleList
in_reach
=
handle
.
FindWithin
(
fe
.
GetPos
(),
3.0
);
for
(
ost
::
mol
::
AtomHandleList
::
iterator
j
=
in_reach
.
begin
();
j
!=
in_reach
.
end
();
++
j
){
if
(
j
->
GetName
()
==
"SG"
){
if
(
!
ost
::
mol
::
BondExists
(
fe
,
*
j
)){
ed
.
Connect
(
fe
,
*
j
);
}
ed
.
RenameResidue
(
*
i
,
"HEME"
);
ed
.
RenameResidue
(
j
->
GetResidue
(),
"CYS2"
);
}
}
}
ost
::
mol
::
AtomHandle
cab
=
i
->
FindAtom
(
"CAB"
);
if
(
cab
.
IsValid
()){
ost
::
mol
::
AtomHandleList
in_reach
=
handle
.
FindWithin
(
cab
.
GetPos
(),
0.23
);
for
(
ost
::
mol
::
AtomHandleList
::
iterator
j
=
in_reach
.
begin
();
j
!=
in_reach
.
end
();
++
j
){
if
(
j
->
GetName
()
==
"SG"
){
if
(
!
BondExists
(
cab
,
*
j
)){
ed
.
Connect
(
cab
,
*
j
);
}
ed
.
RenameResidue
(
*
i
,
"HEME"
);
ed
.
RenameResidue
(
j
->
GetResidue
(),
"CYS2"
);
}
}
}
ost
::
mol
::
AtomHandle
cac
=
i
->
FindAtom
(
"CAC"
);
if
(
cac
.
IsValid
()){
ost
::
mol
::
AtomHandleList
in_reach
=
handle
.
FindWithin
(
cac
.
GetPos
(),
0.23
);
for
(
ost
::
mol
::
AtomHandleList
::
iterator
j
=
in_reach
.
begin
();
j
!=
in_reach
.
end
();
++
j
){
if
(
j
->
GetName
()
==
"SG"
){
if
(
!
BondExists
(
cac
,
*
j
)){
ed
.
Connect
(
cac
,
*
j
);
}
ed
.
RenameResidue
(
*
i
,
"HEME"
);
ed
.
RenameResidue
(
j
->
GetResidue
(),
"CYS2"
);
}
}
}
}
}
}
void
Modeller
::
GenerateHISHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
){
ost
::
mol
::
ResidueHandleList
res_list
=
handle
.
GetResidueList
();
ost
::
mol
::
XCSEditor
ed
=
handle
.
EditXCS
();
for
(
ost
::
mol
::
ResidueHandleList
::
iterator
i
=
res_list
.
begin
();
i
!=
res_list
.
end
();
++
i
){
if
(
i
->
GetName
()
==
"HEM"
||
i
->
GetName
()
==
"HEME"
){
ost
::
mol
::
AtomHandle
fe
=
i
->
FindAtom
(
"FE"
);
if
(
fe
.
IsValid
()){
ost
::
mol
::
AtomHandleList
in_reach
=
handle
.
FindWithin
(
fe
.
GetPos
(),
2.5
);
for
(
ost
::
mol
::
AtomHandleList
::
iterator
j
=
in_reach
.
begin
();
j
!=
in_reach
.
end
();
++
j
){
if
(
j
->
GetName
()
==
"NE2"
&&
j
->
GetResidue
().
GetName
()
==
"HIS"
){
if
(
!
ost
::
mol
::
BondExists
(
fe
,
*
j
)){
ed
.
Connect
(
fe
,
*
j
);
}
ed
.
RenameResidue
(
*
i
,
"HEME"
);
ed
.
RenameResidue
(
j
->
GetResidue
(),
"HIS1"
);
}
}
}
}
}
}
void
Modeller
::
GenerateMETHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
){
ost
::
mol
::
ResidueHandleList
res_list
=
handle
.
GetResidueList
();
ost
::
mol
::
XCSEditor
ed
=
handle
.
EditXCS
();
for
(
ost
::
mol
::
ResidueHandleList
::
iterator
i
=
res_list
.
begin
();
i
!=
res_list
.
end
();
++
i
){
if
(
i
->
GetName
()
==
"HEM"
||
i
->
GetName
()
==
"HEME"
){
ost
::
mol
::
AtomHandle
fe
=
i
->
FindAtom
(
"FE"
);
if
(
fe
.
IsValid
()){
ost
::
mol
::
AtomHandleList
in_reach
=
handle
.
FindWithin
(
fe
.
GetPos
(),
2.9
);
for
(
ost
::
mol
::
AtomHandleList
::
iterator
j
=
in_reach
.
begin
();
j
!=
in_reach
.
end
();
++
j
){
if
(
j
->
GetName
()
==
"SD"
&&
j
->
GetResidue
().
GetName
()
==
"MET"
){
if
(
!
ost
::
mol
::
BondExists
(
fe
,
*
j
)){
ed
.
Connect
(
fe
,
*
j
);
}
ed
.
RenameResidue
(
*
i
,
"HEME"
);
}
}
}
}
}
}
void
Modeller
::
LowerPrecision
(
ost
::
mol
::
EntityHandle
&
handle
){
ost
::
mol
::
AtomHandleList
atom_list
=
handle
.
GetAtomList
();
...
...
This diff is collapsed.
Click to expand it.
modules/mol/mm/src/modeller.hh
+
0
−
6
View file @
548c1073
...
...
@@ -34,12 +34,6 @@ public:
static
void
GenerateDisulfidBonds
(
ost
::
mol
::
EntityHandle
&
handle
);
static
void
GenerateCYSHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
);
static
void
GenerateHISHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
);
static
void
GenerateMETHEMEBonds
(
ost
::
mol
::
EntityHandle
&
handle
);
//may sound pretty stupid...
//But this is necessary if we want to compare our energies with
//the energies calculated by gromacs. When ost writes and entity
...
...
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