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
bb4bee88
There was an error fetching the commit references. Please try again later.
Commit
bb4bee88
authored
6 years ago
by
Gareth Tribello
Browse files
Options
Downloads
Patches
Plain Diff
Fixed small bug in reading of dissimilarity matrices
parent
6bf25934
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/analysis/ReadDissimilarityMatrix.cpp
+6
-0
6 additions, 0 deletions
src/analysis/ReadDissimilarityMatrix.cpp
src/dimred/SketchMap.cpp
+1
-1
1 addition, 1 deletion
src/dimred/SketchMap.cpp
with
7 additions
and
1 deletion
src/analysis/ReadDissimilarityMatrix.cpp
+
6
−
0
View file @
bb4bee88
...
...
@@ -53,6 +53,8 @@ public:
static
void
registerKeywords
(
Keywords
&
keys
);
ReadDissimilarityMatrix
(
const
ActionOptions
&
ao
);
unsigned
getNumberOfDataPoints
()
const
;
// Return the index of the data point in the base class
unsigned
getDataPointIndexInBase
(
const
unsigned
&
idata
)
const
;
/// This gives an error as if we read in the matrix we dont have the coordinates
DataCollectionObject
&
getStoredData
(
const
unsigned
&
idata
,
const
bool
&
calcdist
);
/// Tell everyone we have dissimilarities
...
...
@@ -141,6 +143,10 @@ unsigned ReadDissimilarityMatrix::getNumberOfDataPoints() const {
return
dissimilarities
.
size
();
}
unsigned
ReadDissimilarityMatrix
::
getDataPointIndexInBase
(
const
unsigned
&
idata
)
const
{
return
idata
;
}
double
ReadDissimilarityMatrix
::
getDissimilarity
(
const
unsigned
&
iframe
,
const
unsigned
&
jframe
)
{
return
dissimilarities
[
iframe
][
jframe
]
*
dissimilarities
[
iframe
][
jframe
];
}
...
...
This diff is collapsed.
Click to expand it.
src/dimred/SketchMap.cpp
+
1
−
1
View file @
bb4bee88
...
...
@@ -82,7 +82,7 @@ ActionShortcut(ao)
std
::
string
imds_line_pw
=
getShortcutLabel
()
+
"_smap1_pw: SKETCHMAP_POINTWISE USE_OUTPUT_DATA_FROM="
+
getShortcutLabel
()
+
"_smap1_cg"
;
imds_line_pw
+=
pw_step_input
+
" MIXPARAM=1.0"
;
readInputLine
(
imds_line_pw
);
// Now sketch-map
unsigned
asteps
;
parse
(
"ANNEAL_STEPS"
,
asteps
);
std
::
string
psmap
=
getShortcutLabel
()
+
"_smap1
.0
_pw"
;
unsigned
asteps
;
parse
(
"ANNEAL_STEPS"
,
asteps
);
std
::
string
psmap
=
getShortcutLabel
()
+
"_smap1_pw"
;
if
(
asteps
>
1
)
{
double
smear
;
parse
(
"ANNEAL_RATE"
,
smear
);
double
old_mix
=
1.0
;
double
new_mix
=
old_mix
*
smear
;
for
(
unsigned
i
=
0
;
i
<
asteps
;
++
i
)
{
...
...
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