Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Martin Kurečka
Plumed AlphaFold
Commits
45895eac
There was an error fetching the commit references. Please try again later.
Commit
45895eac
authored
11 years ago
by
Carlo Camilloni
Browse files
Options
Downloads
Patches
Plain Diff
added omega as additional symbol for atom selection in proteins
parent
8e9ce48f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tools/MolDataClass.cpp
+10
-0
10 additions, 0 deletions
src/tools/MolDataClass.cpp
src/tools/MolDataClass.h
+1
-1
1 addition, 1 deletion
src/tools/MolDataClass.h
with
11 additions
and
1 deletion
src/tools/MolDataClass.cpp
+
10
−
0
View file @
45895eac
...
...
@@ -124,6 +124,16 @@ void MolDataClass::specialSymbol( const std::string& type, const std::string& sy
numbers
[
1
]
=
mypdb
.
getNamedAtomFromResidue
(
"CA"
,
resnum
);
numbers
[
2
]
=
mypdb
.
getNamedAtomFromResidue
(
"C"
,
resnum
);
numbers
[
3
]
=
mypdb
.
getNamedAtomFromResidue
(
"N"
,
resnum
+
1
);
}
else
if
(
symbol
.
find
(
"omega"
)
!=
std
::
string
::
npos
){
std
::
size_t
dash
=
symbol
.
find_first_of
(
'-'
);
unsigned
resnum
;
Tools
::
convert
(
symbol
.
substr
(
dash
+
1
),
resnum
);
std
::
string
resname
=
mypdb
.
getResidueName
(
resnum
);
if
(
!
allowedResidue
(
type
,
resname
)
||
isTerminalGroup
(
type
,
resname
)
)
return
;
numbers
.
resize
(
4
);
numbers
[
0
]
=
mypdb
.
getNamedAtomFromResidue
(
"CA"
,
resnum
);
numbers
[
1
]
=
mypdb
.
getNamedAtomFromResidue
(
"C"
,
resnum
);
numbers
[
2
]
=
mypdb
.
getNamedAtomFromResidue
(
"N"
,
resnum
+
1
);
numbers
[
3
]
=
mypdb
.
getNamedAtomFromResidue
(
"CA"
,
resnum
+
1
);
}
}
else
{
plumed_merror
(
type
+
" is not a valid molecule type"
);
...
...
This diff is collapsed.
Click to expand it.
src/tools/MolDataClass.h
+
1
−
1
View file @
45895eac
...
...
@@ -43,7 +43,7 @@ public:
static
void
getBackboneForResidue
(
const
std
::
string
&
type
,
const
unsigned
&
residuenum
,
const
PDB
&
mypdb
,
std
::
vector
<
AtomNumber
>&
atoms
);
/// Return true if the residue is a terminal group e.g. ACE, NME for proteins
static
bool
isTerminalGroup
(
const
std
::
string
&
type
,
const
std
::
string
&
residuename
);
/// Used to interpret special symbols - currently phi and psi
/// Used to interpret special symbols - currently phi and psi
and omega
static
void
specialSymbol
(
const
std
::
string
&
type
,
const
std
::
string
&
symbol
,
const
PDB
&
mypdb
,
std
::
vector
<
AtomNumber
>&
numbers
);
};
...
...
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