namespace tum3#
Overview#
namespace tum3 {
// global functions
int topoUnitMatchingBulk(std::string path, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, molSys::PointCloud<molSys::Point<double>, double>& yCloud, int firstFrame, bool printClusters, bool onlyTetrahedral, std::string templatePath = “templates”);
Eigen::MatrixXd buildRefHC(const std::string& fileName);
Eigen::MatrixXd buildRefDDC(const std::string& fileName);
int shapeMatchHC(molSys::PointCloud<molSys::Point<double>, double>& yCloud, const Eigen::MatrixXd& refPoints, cage::Cage cageUnit, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, std::vector<double>& quat, double& rmsd);
int shapeMatchDDC(molSys::PointCloud<molSys::Point<double>, double>& yCloud, const Eigen::MatrixXd& refPoints, const std::vector<cage::Cage>& cageList, int cageIndex, const std::vector<std::vector<int>>& rings, std::vector<double>& quat, double& rmsd);
int updateRMSDatom(const std::vector<std::vector<int>>& rings, cage::Cage cageUnit, double rmsd, std::vector<double>& rmsdPerAtom, std::vector<int>& noOfCommonAtoms, const std::vector<cage::iceType>& atomTypes);
int averageRMSDatom(std::vector<double>& rmsdPerAtom, std::vector<int>& noOfCommonAtoms);
std::vector<cage::Cage> topoBulkCriteria(std::string path, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, molSys::PointCloud<molSys::Point<double>, double>& yCloud, int firstFrame, int& numHC, int& numDDC, std::vector<ring::strucType>& ringType);
int clusterCages(molSys::PointCloud<molSys::Point<double>, double>& yCloud, std::string path, const std::vector<std::vector<int>>& rings, const std::vector<cage::Cage>& cageList, int numHC, int numDDC);
std::vector<int> atomsFromCages(const std::vector<std::vector<int>>& rings, const std::vector<cage::Cage>& cageList, const std::vector<int>& clusterCages);
} // namespace tum3
Detailed Documentation#
Global Functions#
int topoUnitMatchingBulk(std::string path, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, molSys::PointCloud<molSys::Point<double>, double>& yCloud, int firstFrame, bool printClusters, bool onlyTetrahedral, std::string templatePath = “templates”)
Topological unit matching for bulk water. If printClusters is true, individual clusters of connected cages are printed.
Eigen::MatrixXd buildRefHC(const std::string& fileName)
Build a reference Hexagonal cage, reading in from a template XYZ file.
Eigen::MatrixXd buildRefDDC(const std::string& fileName)
Build a reference Double-Diamond cage, reading in from a template XYZ file.
int shapeMatchHC(molSys::PointCloud<molSys::Point<double>, double>& yCloud, const Eigen::MatrixXd& refPoints, cage::Cage cageUnit, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, std::vector<double>& quat, double& rmsd)
Shape-matching for a target HC.
int shapeMatchDDC(molSys::PointCloud<molSys::Point<double>, double>& yCloud, const Eigen::MatrixXd& refPoints, const std::vector<cage::Cage>& cageList, int cageIndex, const std::vector<std::vector<int>>& rings, std::vector<double>& quat, double& rmsd)
Shape-matching for a target DDC.
int updateRMSDatom(const std::vector<std::vector<int>>& rings, cage::Cage cageUnit, double rmsd, std::vector<double>& rmsdPerAtom, std::vector<int>& noOfCommonAtoms, const std::vector<cage::iceType>& atomTypes)
Calulate the RMSD for each ring, using RMSD values (rmsd) obtained from the shape-matching of each cage
int averageRMSDatom(std::vector<double>& rmsdPerAtom, std::vector<int>& noOfCommonAtoms)
Average the RMSD per atom.
std::vector<cage::Cage> topoBulkCriteria(std::string path, const std::vector<std::vector<int>>& rings, const std::vector<std::vector<int>>& nList, molSys::PointCloud<molSys::Point<double>, double>& yCloud, int firstFrame, int& numHC, int& numDDC, std::vector<ring::strucType>& ringType)
Topological network methods Finds the HCs and DDCs for the system
int clusterCages(molSys::PointCloud<molSys::Point<double>, double>& yCloud, std::string path, const std::vector<std::vector<int>>& rings, const std::vector<cage::Cage>& cageList, int numHC, int numDDC)
Clustering Clusters cages using the Stillinger algorithm and prints out individual XYZ files of clusters.
std::vector<int> atomsFromCages(const std::vector<std::vector<int>>& rings, const std::vector<cage::Cage>& cageList, const std::vector<int>& clusterCages)
Gets the atoms in the cages of a given cluster.