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
25706486
Commit
25706486
authored
13 years ago
by
Niklaus Johner
Browse files
Options
Downloads
Patches
Plain Diff
Function to change residue number
parent
d6e931b0
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/base/pymod/export_editors.cc
+1
-0
1 addition, 0 deletions
modules/mol/base/pymod/export_editors.cc
modules/mol/base/src/editor_base.cc
+6
-0
6 additions, 0 deletions
modules/mol/base/src/editor_base.cc
modules/mol/base/src/editor_base.hh
+3
-1
3 additions, 1 deletion
modules/mol/base/src/editor_base.hh
with
10 additions
and
1 deletion
modules/mol/base/pymod/export_editors.cc
+
1
−
0
View file @
25706486
...
@@ -215,6 +215,7 @@ void export_Editors()
...
@@ -215,6 +215,7 @@ void export_Editors()
.
def
(
"SetChainType"
,
&
EditorBase
::
SetChainType
)
.
def
(
"SetChainType"
,
&
EditorBase
::
SetChainType
)
.
def
(
"SetChainDescription"
,
&
EditorBase
::
SetChainDescription
)
.
def
(
"SetChainDescription"
,
&
EditorBase
::
SetChainDescription
)
.
def
(
"RenameResidue"
,
&
EditorBase
::
RenameResidue
)
.
def
(
"RenameResidue"
,
&
EditorBase
::
RenameResidue
)
.
def
(
"SetResidueNumber"
,
&
EditorBase
::
SetResidueNumber
)
.
def
(
"RenameAtom"
,
&
EditorBase
::
RenameAtom
)
.
def
(
"RenameAtom"
,
&
EditorBase
::
RenameAtom
)
.
def
(
"AddTorsion"
,
&
EditorBase
::
AddTorsion
)
.
def
(
"AddTorsion"
,
&
EditorBase
::
AddTorsion
)
.
def
(
"ReorderResidues"
,
&
EditorBase
::
ReorderResidues
)
.
def
(
"ReorderResidues"
,
&
EditorBase
::
ReorderResidues
)
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/editor_base.cc
+
6
−
0
View file @
25706486
...
@@ -76,6 +76,12 @@ void EditorBase::RenameResidue(ResidueHandle res, const String& new_name)
...
@@ -76,6 +76,12 @@ void EditorBase::RenameResidue(ResidueHandle res, const String& new_name)
res
.
Impl
()
->
SetKey
(
new_name
);
res
.
Impl
()
->
SetKey
(
new_name
);
}
}
void
EditorBase
::
SetResidueNumber
(
ResidueHandle
res
,
const
ResNum
&
new_num
)
{
CheckHandleValidity
(
res
);
res
.
Impl
()
->
SetNumber
(
new_num
);
}
void
EditorBase
::
RenameChain
(
ChainHandle
chain
,
const
String
&
new_name
)
void
EditorBase
::
RenameChain
(
ChainHandle
chain
,
const
String
&
new_name
)
{
{
CheckHandleValidity
(
chain
);
CheckHandleValidity
(
chain
);
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/editor_base.hh
+
3
−
1
View file @
25706486
...
@@ -153,7 +153,9 @@ public:
...
@@ -153,7 +153,9 @@ public:
unsigned
char
bond_order
);
unsigned
char
bond_order
);
void
RenameResidue
(
ResidueHandle
res
,
const
String
&
new_name
);
void
RenameResidue
(
ResidueHandle
res
,
const
String
&
new_name
);
void
SetResidueNumber
(
ResidueHandle
res
,
const
ResNum
&
num
);
void
RenameChain
(
ChainHandle
chain
,
const
String
&
new_name
);
void
RenameChain
(
ChainHandle
chain
,
const
String
&
new_name
);
/// \brief Assign type of chain according to ChainType.
/// \brief Assign type of chain according to ChainType.
...
...
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