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
9430784b
Commit
9430784b
authored
8 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes in doc and unusable default parameter in svd_superpose
parent
322f73bd
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
modules/mol/alg/src/svd_superpose.cc
+2
-2
2 additions, 2 deletions
modules/mol/alg/src/svd_superpose.cc
modules/mol/mm/doc/forcefield.rst
+3
-1
3 additions, 1 deletion
modules/mol/mm/doc/forcefield.rst
with
5 additions
and
3 deletions
modules/mol/alg/src/svd_superpose.cc
+
2
−
2
View file @
9430784b
...
@@ -434,7 +434,7 @@ SuperpositionResult MeanSquareMinimizer::IterativeMinimize(int ncycles, Real dis
...
@@ -434,7 +434,7 @@ SuperpositionResult MeanSquareMinimizer::IterativeMinimize(int ncycles, Real dis
SuperpositionResult
SuperposeAtoms
(
const
mol
::
AtomViewList
&
atoms1
,
SuperpositionResult
SuperposeAtoms
(
const
mol
::
AtomViewList
&
atoms1
,
const
mol
::
AtomViewList
&
atoms2
,
const
mol
::
AtomViewList
&
atoms2
,
bool
apply_transform
=
true
)
bool
apply_transform
)
{
{
MeanSquareMinimizer
msm
=
MeanSquareMinimizer
::
FromAtomLists
(
atoms1
,
atoms2
);
MeanSquareMinimizer
msm
=
MeanSquareMinimizer
::
FromAtomLists
(
atoms1
,
atoms2
);
SuperpositionResult
result
=
msm
.
MinimizeOnce
();
SuperpositionResult
result
=
msm
.
MinimizeOnce
();
...
@@ -454,7 +454,7 @@ SuperpositionResult SuperposeAtoms(const mol::AtomViewList& atoms1,
...
@@ -454,7 +454,7 @@ SuperpositionResult SuperposeAtoms(const mol::AtomViewList& atoms1,
SuperpositionResult
SuperposeSVD
(
const
mol
::
EntityView
&
ev1
,
SuperpositionResult
SuperposeSVD
(
const
mol
::
EntityView
&
ev1
,
const
mol
::
EntityView
&
ev2
,
const
mol
::
EntityView
&
ev2
,
bool
apply_transform
=
true
)
{
bool
apply_transform
)
{
AtomViewList
atoms1
=
ev1
.
GetAtomList
();
AtomViewList
atoms1
=
ev1
.
GetAtomList
();
AtomViewList
atoms2
=
ev2
.
GetAtomList
();
AtomViewList
atoms2
=
ev2
.
GetAtomList
();
...
...
This diff is collapsed.
Click to expand it.
modules/mol/mm/doc/forcefield.rst
+
3
−
1
View file @
9430784b
...
@@ -149,12 +149,14 @@ results into :class:`~ost.mol.mm.Forcefield` objects.
...
@@ -149,12 +149,14 @@ results into :class:`~ost.mol.mm.Forcefield` objects.
from ost.mol import mm
from ost.mol import mm
# create parameters for
TYR
using PDB's component dictionary
# create parameters for
RVP
using PDB's component dictionary
mm.antechamber.RunAntechamber('RVP', 'components.cif', base_out_dir='ligands')
mm.antechamber.RunAntechamber('RVP', 'components.cif', base_out_dir='ligands')
# create force field
# create force field
ff = mm.Forcefield()
ff = mm.Forcefield()
ff = mm.antechamber.AddFromPath(ff, 'ligands/RVP')
ff = mm.antechamber.AddFromPath(ff, 'ligands/RVP')
# equivalent: ff = mm.antechamber.AddFromFiles(ff, 'ligands/RVP/frcmod',
# 'ligands/RVP/out.mpdb')
# since Antechamber cannot deal with ions, you can do it manually
# since Antechamber cannot deal with ions, you can do it manually
ff = mm.antechamber.AddIon(ff, 'CL', 'CL', 35.45, -1.0, 0.4401, 0.4184)
ff = mm.antechamber.AddIon(ff, 'CL', 'CL', 35.45, -1.0, 0.4401, 0.4184)
# save it
# save it
...
...
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