Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
441 commits
Select commit Hold shift + click to select a range
f3b491e
DRR - Cpptraj: Use epsilon sieve restore for dpeaks. Dont do output s…
Feb 19, 2019
1556e25
DRR - Cpptraj: Allow density peaks to restart
Feb 19, 2019
6f041a8
DRR - Cpptraj: Some code cleanup. Update dependencies.
Feb 19, 2019
14d4fb7
DRR - Cpptraj: More cleanup
Feb 19, 2019
c7d42dc
Merge branch 'master' into clusterrevamp
Feb 28, 2019
8239be3
Merge branch 'master' into clusterrevamp
Mar 4, 2019
2015409
Merge branch 'master' into clusterrevamp
drroe Mar 28, 2019
d5fcad6
DRR - Cpptraj: Fix use of integer data set
drroe Mar 28, 2019
a4b24f1
Merge branch 'master' into clusterrevamp
May 9, 2019
17e4f6b
Merge branch 'master' into clusterrevamp
drroe Jul 18, 2019
1a957c5
DRR - Cpptraj: Fix calls to PrepareTrajWrite.
drroe Jul 18, 2019
6f50bb5
Merge branch 'master' into clusterrevamp
drroe Jul 20, 2019
199b5a7
Merge branch 'master' into clusterrevamp
Jul 31, 2019
67e341a
Merge branch 'master' into clusterrevamp
drroe Oct 10, 2019
115c02c
Merge branch 'master' into clusterrevamp
drroe Nov 11, 2019
ef0ef08
Merge branch 'master' into clusterrevamp
Nov 22, 2019
afde897
Merge branch 'master' into clusterrevamp
Nov 25, 2019
6719c9e
Merge branch 'master' into clusterrevamp
drroe Jun 19, 2020
1f35b31
Add a few missing depends.
drroe Jun 19, 2020
5c55ee8
Merge branch 'master' into clusterrevamp
Sep 16, 2020
489dd84
Merge branch 'master' into clusterrevamp-mastermerge
drroe Sep 2, 2021
5700629
Add init
drroe Sep 2, 2021
16d1a6a
Use forward declarations
drroe Sep 2, 2021
814e27b
More forward declares
drroe Sep 2, 2021
0a4fe86
Fixes for fwd declare
drroe Sep 2, 2021
7535677
Make non-static class; use fwd declares
drroe Sep 2, 2021
339b77a
Fwd declares
drroe Sep 2, 2021
858320d
Start updating dependencies
drroe Sep 2, 2021
7f4ab84
More and more fwd delcares
drroe Sep 2, 2021
3d74148
Finish up initial round of forward declares
drroe Sep 2, 2021
d36bae2
Finishing fixing up dependencies
drroe Sep 2, 2021
07b0183
Assign to clusters noise instead of having a separate output routine.
drroe Sep 3, 2021
7cf352a
If no clusters found with dpeaks, exit early; prevents a segfault
drroe Sep 3, 2021
225e53d
Protect against going too far into the tgtMask array
drroe Sep 3, 2021
d897c1f
Note but do not mark sievetoframe option in DBscan setup so that Control
drroe Sep 3, 2021
c0a0da6
Add build for cluster stuff
drroe Sep 3, 2021
c823d5e
Enable libcpptraj_cluster.a target
drroe Sep 3, 2021
3219374
Have findDepend depend on FindDepend.cpp
drroe Sep 3, 2021
7b08f54
Simplify directory prefixes to cut down on redundant dependencies
drroe Sep 3, 2021
eca5b00
Start adding DrawGraph
drroe Sep 3, 2021
078a59d
Use new classes for drawgraph
drroe Sep 4, 2021
8519831
Add GraphType
drroe Sep 4, 2021
f83db20
Start incorporating drawgraph
drroe Sep 4, 2021
9cf950a
Update dependencies, set debug level for cluster
drroe Sep 4, 2021
64ea9e4
Add parsing of drawgraph options
drroe Sep 4, 2021
0067526
Ensure Cluster subdir is always made
drroe Sep 5, 2021
1ccf1a0
Start adding an assignrefs test
drroe Sep 5, 2021
65a305c
Assign refs
drroe Sep 5, 2021
7168fa6
Add test comparison
drroe Sep 5, 2021
cf6db6e
Add assign refs to cluster function
drroe Sep 5, 2021
374b91b
Add to files and depends
drroe Sep 5, 2021
60b8eda
Add assignrefs options to Results_Coords
drroe Sep 6, 2021
945503b
Return type, usemass, mask
drroe Sep 6, 2021
2d4633c
Set defaults from metric if needed
drroe Sep 6, 2021
eec786d
Move assignrefs routine to Results_Coords. Create separate function
drroe Sep 6, 2021
38dd136
assignrefs now in Results_Coords
drroe Sep 6, 2021
e79e71d
Fix GetOptions call, add CalcResults call.
drroe Sep 6, 2021
04a7701
Create single unified setup routine instead of two separate ones
drroe Sep 6, 2021
b5518fb
Use the new setup interface for clustering
drroe Sep 6, 2021
54479c6
CalcResults needs to come first since the results are used in Summary
drroe Sep 6, 2021
aca0ef8
Enable assignrefs test
drroe Sep 6, 2021
93d6385
Add 'nocoords' keyword to tests
drroe Sep 7, 2021
731a2f8
Provide feedback when no coordinates given for results
drroe Sep 7, 2021
0e0eb21
Protect tests that require netcdf
drroe Sep 7, 2021
9402116
Start adding more in depth pairwise cache tests
drroe Sep 7, 2021
568e1ac
Add missing comma
drroe Sep 7, 2021
722d8a3
Add test for disk cache and no cache
drroe Sep 7, 2021
27810fe
Add pairwise cache with sieve 5 test
drroe Sep 7, 2021
ad442d4
Add the remainder of the sieve pairwise cache tests
drroe Sep 7, 2021
ca84d6f
Add some feedback about the pairwise cache
drroe Sep 7, 2021
dacbc64
Enable pairwise cache test
drroe Sep 7, 2021
2004f8f
Get rid of old test code
drroe Sep 7, 2021
34f2a35
Test singlerepfmt keyword
drroe Sep 7, 2021
4af0193
Add cumulative best rep test
drroe Sep 7, 2021
26659a7
Add centroid and cumulative_nosieve option tests for bestrep
drroe Sep 7, 2021
a3502aa
Add pwrecalc option test
drroe Sep 7, 2021
d663d31
Add mismatch fatal option
drroe Sep 7, 2021
2352d00
Add pwrecalc option
drroe Sep 7, 2021
ae313b2
Hide some debug info.
drroe Sep 7, 2021
ad2ccda
Get rid of wrong sizeInBytes routine (does not account for different
drroe Sep 7, 2021
e331dc7
Add est. disk usage in bytes calc
drroe Sep 7, 2021
e8b6f75
Add pairwise cache in memory estimation, catch bad alloc error
drroe Sep 8, 2021
568e777
Fix output messages
drroe Sep 8, 2021
dfbe43e
Better description of the pairwise cache in Info
drroe Sep 8, 2021
9e564aa
Put COORDS set for results in Results info routine
drroe Sep 8, 2021
d206134
Test loading previously written pairwise disk cache
drroe Sep 8, 2021
818250a
Have masks report number selected
drroe Sep 8, 2021
6ff4c02
Get rid of old code
drroe Sep 8, 2021
5c26e0d
Start adding help function
drroe Sep 8, 2021
29f49a0
Add cluster restart from info file test
drroe Sep 8, 2021
088c720
Enable cluster restart test
drroe Sep 8, 2021
3dec404
Add more help args
drroe Sep 8, 2021
97f3b62
Clean up hieragglo help. Start working on sieve options help
drroe Sep 9, 2021
8dec998
Fix up sieve options
drroe Sep 9, 2021
d288cbb
Add output and coords output args
drroe Sep 9, 2021
b2f4779
Add graph args.
drroe Sep 9, 2021
ad39a91
Add missing help keywords.
drroe Sep 9, 2021
47cdc71
Fix cluster code when no netcdf
drroe Sep 9, 2021
b05dea8
Make it so cluster tests do not need netcdf trajectory. Protect the
drroe Sep 9, 2021
12e2124
Remove netcdf requirement
drroe Sep 9, 2021
84eec4f
Remove netcdf requirement. Ensure leftover files from old versions are
drroe Sep 9, 2021
51015a9
Remove netcdf requirement
drroe Sep 9, 2021
b520ee0
Remove netcdf dependency
drroe Sep 9, 2021
8a4dd0b
Remove netcdf dependency
drroe Sep 9, 2021
252f831
Protect test when no netcdf
drroe Sep 9, 2021
ca6abc5
Add missing include
drroe Sep 9, 2021
856e4cf
Fix openmp compile
drroe Sep 9, 2021
bd6f6ed
Return to previous analysis name for pytraj
drroe Sep 9, 2021
83cd14a
Ensure data set name is the last argument.
drroe Sep 9, 2021
909a607
To maintain compatibility with pytraj, ensure the cache is allocated
drroe Sep 9, 2021
b8a0a16
Create an AllocateSet routine that will allocate a DataSet but not add
drroe Sep 9, 2021
5ada179
Only add the cache if it was actually allocated
drroe Sep 9, 2021
94476c2
Improve code docs.
drroe Sep 9, 2021
15c4940
Add more description to cluster help.
drroe Sep 9, 2021
c02bed6
Update the cluster manual entry.
drroe Sep 9, 2021
503ac66
Add info about cluster pairwise matrix files; add cluster example using
drroe Sep 9, 2021
d5847b8
Major revision increase to 6.0.0. Complete overhaul of the clustering…
drroe Sep 9, 2021
588ea5e
loadpairdist unnecessary here
drroe Sep 10, 2021
d5c53cf
If starting with more clusters than target # clusters in kmeans, remove
drroe Sep 10, 2021
17c86d7
Start trying to handle kmeans restart when target # clusters > current
drroe Sep 10, 2021
19fe45b
Add kmeans restart test
drroe Sep 10, 2021
e981bc7
Handle case where kmeans restart target # clusters is greater than ex…
drroe Sep 10, 2021
0df0c3e
Make messages clearer
drroe Sep 10, 2021
73105c5
Add test for kmeans restart where target clusters > existing clusters.
drroe Sep 10, 2021
6d31b77
Add note.
drroe Sep 10, 2021
f136daf
Compare info.dat
drroe Sep 10, 2021
0ad6d7a
Ensure existing clusters are removed for restart DBscan, will be
drroe Sep 10, 2021
c73d9f2
Add DBscan restart test
drroe Sep 10, 2021
442427f
Hide some debug info
drroe Sep 10, 2021
fbf36eb
Add ability to read initial clusters from cnumvtime set
drroe Sep 10, 2021
d84b44d
Comment out debug statement
drroe Sep 10, 2021
b003ba6
Add readinfo cnvtset test
drroe Sep 10, 2021
3778b00
Clean up savepairdist/loadpairdist entries. Add cnvtset keyword
drroe Sep 10, 2021
2414a8c
Start creating Node versions of bestrep functions
drroe Sep 10, 2021
ca1e70a
Create Node versions of the bestrep functions
drroe Sep 10, 2021
950ca08
Create separate print routine for debug; some cleanup
drroe Sep 10, 2021
118aafd
Make print function take a node
drroe Sep 10, 2021
9df9727
Best reps function for a node
drroe Sep 10, 2021
185c2eb
Add best rep frames output to summary by parts.
drroe Sep 10, 2021
4b1ea58
Ensure assignrefs output comes last
drroe Sep 10, 2021
d0e1249
Add info on how assignrefs output is written to summary/summarysplit
drroe Sep 10, 2021
5585a6b
Add blurb about SSR/SST
drroe Sep 10, 2021
8265898
Summary by parts now has best rep output
drroe Sep 10, 2021
de8db65
Update CMakeLists.txt with most recent versions from Amber gitlab
drroe Sep 11, 2021
e0c6d3e
Add file that can be used to test cmake
drroe Sep 11, 2021
d6109da
Ensure installdir is created
drroe Sep 11, 2021
5a21c4f
targets_include_directories is missing in the cmake submodule
drroe Sep 11, 2021
d51b1b8
Start trying to add cmake file for cluster subdir
drroe Sep 11, 2021
fd05288
Rename library to cpptraj_cluster to be consistent with make. Add
drroe Sep 11, 2021
1733778
libcpptraj_cluster needs netcdf includes
drroe Sep 11, 2021
80f1b0d
Use breaks where appropriate instead of continue. Address some comments.
drroe Sep 11, 2021
fa63269
Args were in the wrong order
drroe Sep 11, 2021
fd16641
Resolve FIXMEs that should be TODOs
drroe Sep 11, 2021
f4466d9
Fix printf arg types
drroe Sep 11, 2021
87cd6f0
Try to resolve ordering issue.
drroe Sep 11, 2021
d9363f5
Fix printf format
drroe Sep 11, 2021
0e291cb
Add arrays for metrics and centroids
drroe Sep 12, 2021
2be8f65
Add copy/assignment
drroe Sep 12, 2021
0fdde86
Start Metric_Scalar
drroe Sep 13, 2021
fbfc7df
Start implementation of Metric_Scalar
drroe Sep 13, 2021
9a5b0ea
Start using Centroid_Num
drroe Sep 13, 2021
8573ce4
Start adding centroid calcs.
drroe Sep 13, 2021
e350a87
Finish Metric_Scalar implementation
drroe Sep 13, 2021
18a36c1
Add Metric_Torsion
drroe Sep 13, 2021
2e2ae6f
Start adding init to MetricArray
drroe Sep 13, 2021
442933e
Add call to Init for allocated metric
drroe Sep 13, 2021
4ea3584
Parse euclid and manhattan args
drroe Sep 13, 2021
a764498
Add recognized keywords
drroe Sep 13, 2021
78a2b20
Add metric weights
drroe Sep 13, 2021
6ff33ee
Remove old metric files
drroe Sep 13, 2021
a1ba34e
Remove obsolete metric types
drroe Sep 13, 2021
4aea9a7
Add Info routine for MetricArray
drroe Sep 13, 2021
61d9807
Add setup for metrics
drroe Sep 13, 2021
e093dcc
Really remove obsolete metric types
drroe Sep 13, 2021
429bf52
Ensure # of points covered by Metrics is the same
drroe Sep 13, 2021
d73d178
Add tool to check for missing source files from make/cmake
drroe Sep 13, 2021
3048d0c
Start incorporating MetricArray
drroe Sep 13, 2021
521d46d
Add destruct, assign and copy to CentroidArray
drroe Sep 13, 2021
78a0b10
Add missing vars to copy/assign
drroe Sep 13, 2021
a047f79
Add new centroid calc
drroe Sep 13, 2021
066e906
Add CentroidArray
drroe Sep 13, 2021
b37a14b
Add CalculateCentroid
drroe Sep 13, 2021
82b1de0
Add the difference distance calcs
drroe Sep 13, 2021
53c19ae
Frame to centroids distance
drroe Sep 13, 2021
b2cb3c5
Convert to use CentroidArray/MetricArray
drroe Sep 13, 2021
c8aa805
Add empty()
drroe Sep 13, 2021
84e135f
Update code comments, delete commented out code
drroe Sep 13, 2021
41da926
Fold PairwiseMatrix functionality into MetricArray
drroe Sep 14, 2021
dcec581
Add keywords strings for pairwise
drroe Sep 14, 2021
42040b0
Need to pass in two data set lists; one for sets to cluster, the other
drroe Sep 14, 2021
d4db263
Centroid_Multi now unused (covered by CentroidArray). PairwiseMatrix
drroe Sep 14, 2021
0addb5d
Add info about cache to Info() print
drroe Sep 14, 2021
6faf6bc
Make coordsMetricType a class var
drroe Sep 14, 2021
5df23a7
Replace coords metric type var with function that returns first
drroe Sep 14, 2021
483b50e
Use MetricArray
drroe Sep 14, 2021
fdf28e3
Change name to better reflect what it is
drroe Sep 14, 2021
35f3481
Add routines for accessing the pairwise cache from outside MetricArray
drroe Sep 14, 2021
ffb00e1
Start switching to MetricArray
drroe Sep 14, 2021
d6dcc9f
Create a copy of MetricArray itself for OpenMP
drroe Sep 14, 2021
2fc44d0
Add CentroidDist
drroe Sep 14, 2021
b86d8ea
Use MetricArray
drroe Sep 14, 2021
8bca61e
Switch from PairwiseMatrix to MetricArray
drroe Sep 14, 2021
545e8b2
Convert to use MetricArray
drroe Sep 14, 2021
c27ce6e
Convert from Metric*/PairwiseMatrix to MetricArray
drroe Sep 14, 2021
abd6dbb
Use MetricArray in place of PairwiseMatrix
drroe Sep 14, 2021
2d71205
Finish removing PairwiseMatrix
drroe Sep 14, 2021
04fa60e
Last changes to MetricArray
drroe Sep 14, 2021
c8d6112
Update main depends. Remove duplicate Info() call.
drroe Sep 14, 2021
a496a19
Remove obsolete comment
drroe Sep 14, 2021
397af8b
double* form of the distance routines is not needed.
drroe Sep 14, 2021
086f60e
Update code comments
drroe Sep 14, 2021
13f73a3
Uncached distance calc can be private
drroe Sep 14, 2021
03643eb
Remove unneeded fwd declare
drroe Sep 14, 2021
3306124
Update version for cmake
drroe Sep 15, 2021
f28b8b0
Add test clustering on RMSD and data
drroe Sep 15, 2021
28bc4d0
Add error message when no frames to cluster.
drroe Sep 15, 2021
dae59fb
Move the error message to Control
drroe Sep 15, 2021
153a912
Add calculation for determining how much each metric contributes to
drroe Sep 15, 2021
1b36dfa
Write out description for Info instead of just the legend again
drroe Sep 15, 2021
1ccada8
Add metricstats keyword
drroe Sep 15, 2021
454491c
Improve output message
drroe Sep 15, 2021
6915f0a
Add metricstats keyword
drroe Sep 15, 2021
781c895
Fix up help
drroe Sep 15, 2021
3a29a80
Update manual entry with ability to cluster on any combo of coords/1d
drroe Sep 15, 2021
d99b1ae
Enable coords/1d clustering test
drroe Sep 15, 2021
2b58846
Add weights to distance contribution calc
drroe Sep 15, 2021
19fa2eb
Add entry for wgt keyword
drroe Sep 15, 2021
613f4c2
Test the wgt keyword
drroe Sep 15, 2021
3d10905
Have metricstats and wgt reference each other
drroe Sep 15, 2021
45497f9
Put all coords results setup in the same place
drroe Sep 16, 2021
228a936
Redirect metric stats to a file
drroe Sep 16, 2021
74660eb
Add metricstats test save
drroe Sep 16, 2021
15f1122
Add metricstats save files
drroe Sep 16, 2021
71eadd3
Adjust metric summation based on distance calculation type
drroe Sep 16, 2021
21cba23
Add test with manhattan distance
drroe Sep 16, 2021
863b85e
Metric stats calc now takes manhattan/euclid into account
drroe Sep 16, 2021
9fc2758
Calculate average and SD of individual metric contributions. Change
drroe Sep 16, 2021
4150dbe
Use OnlineVarT to calculate frac averages. Report frac SD as well.
drroe Sep 16, 2021
750efe5
Update for new format
drroe Sep 16, 2021
9e40342
Update help text
drroe Sep 16, 2021
cc8f400
Update metricstats entry.
drroe Sep 16, 2021
a156451
Update dependencies
drroe Sep 16, 2021
b077218
Add some const
drroe Sep 16, 2021
8f61cd7
Add some feedback for frameSelect_ var in Info()
drroe Sep 16, 2021
1f7ee8a
Fix up some of the descriptions.
drroe Sep 16, 2021
df77062
Merge branch 'master' into clusterrevamp
drroe Sep 16, 2021
56a6a85
Add min and max distance contribution to metricstats calc
drroe Sep 17, 2021
73d77d2
Min and max contributions now reported
drroe Sep 17, 2021
62e346a
Add Min and Max description to metricstats help entry
drroe Sep 17, 2021
d3a291d
Improve help text.
drroe Sep 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ project(cpptraj NONE)

#version number
#---------------------------------------------------------------------------------------------------------------------------------------------------------------------
set(cpptraj_MAJOR_VERSION 4)
set(cpptraj_MINOR_VERSION 3)
set(cpptraj_TWEAK_VERSION 4)
set(cpptraj_MAJOR_VERSION 6)
set(cpptraj_MINOR_VERSION 0)
set(cpptraj_TWEAK_VERSION 0)

set(cpptraj_VERSION "${cpptraj_MAJOR_VERSION}.${cpptraj_MINOR_VERSION}.${cpptraj_TWEAK_VERSION}")

Expand Down Expand Up @@ -49,10 +49,12 @@ if(NOT INSIDE_AMBER)
set(BUNDLE_SIGNATURE CPTJ)
include(Packaging)

# header installation option
# build options
option(INSTALL_HEADERS "Copy headers to the include/cpptraj folder of the install directory. Useful for building with pytraj." FALSE)

option(BUILD_PARALLEL_COMBINATIONS "If true, then combinations of all enabled parallelizations will be built, e.g. cpptraj.OMP.MPI and cpptraj.OMP.MPI.cuda" FALSE)

option(INSTALL_TESTS "Copy tests to the test/ folder of the install directory" FALSE)
else()
set(INSTALL_HEADERS FALSE)
set(BUILD_PARALLEL_COMBINATIONS FALSE)
Expand All @@ -67,4 +69,4 @@ add_subdirectory(test)
#--------------------------------------------------------------
if(NOT INSIDE_AMBER)
print_build_report()
endif()
endif()
30 changes: 30 additions & 0 deletions devtools/CheckForMissingSource.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

MAKE_SOURCES=`ls *files`
if [ -z "$MAKE_SOURCES" ] ; then
MAKE_SOURCES=Makefile
fi
CMAKE_SOURCES=CMakeLists.txt

echo "Make sources : $MAKE_SOURCES"
echo "Cmake sources : $CMAKE_SOURCES"

if [ ! -f "$MAKE_SOURCES" ] ; then
echo "Make sources not found."
exit 1
fi

if [ ! -f "$CMAKE_SOURCES" ] ; then
echo "Cmake sources not found."
exit 1
fi

SOURCES=`ls *.cpp *.c *.F90 2> /dev/null`

for FILE1 in $MAKE_SOURCES $CMAKE_SOURCES ; do
for FILE2 in $SOURCES ; do
if [ -z "`grep $FILE2 $FILE1`" ] ; then
echo "$FILE2 appears to be missing from $FILE1"
fi
done
done
24 changes: 24 additions & 0 deletions devtools/RunCmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Can be used to test the cmake install.
# Assumes 'git submodule update --init --recursive' has been run in top dir.

if [ -z "$CPPTRAJHOME" ] ; then
echo "CPPTRAJHOME must be set."
exit 1
fi
HOME=$CPPTRAJHOME

installdir=$HOME/install
if [ ! -d "$installdir" ] ; then
mkdir $installdir
fi

#export BUILD_FLAGS="-DOPENMP=TRUE"
#export BUILD_FLAGS="-DMPI=TRUE ${BUILD_FLAGS}"
#-DNetCDF_LIBRARIES_C=$HOME/lib/libnetcdf.so -DNetCDF_INCLUDES=$HOME/include
COMPILER=gnu
cmake .. $BUILD_FLAGS -DCOMPILER=${COMPILER^^} -DINSTALL_HEADERS=FALSE \
-DCMAKE_INSTALL_PREFIX=$installdir -DCMAKE_LIBRARY_PATH=$HOME/lib \
-DPRINT_PACKAGING_REPORT=TRUE

Loading