tools.cpp
268 header_comment.append("#\n# The following comments are reused for identifying\n# user-based mistakes and should not be modified.\n");
void write_pops(std::string filename, std::vector< std::size_t > pops, std::string header_comment, std::map< std::string, float > stringMap)
write populations as column into given file
Definition: tools.cpp:50
std::vector< std::size_t > read_concat_limits(std::string filename)
Definition: tools.cpp:133
Tools mainly for IO and some other functions.
std::map< std::size_t, std::size_t > microstate_populations(std::vector< std::size_t > traj)
compute microstate populations from clustered trajectory
Definition: tools.cpp:176
std::vector< float > read_free_energies(std::string filename)
read free energies from plain text file
Definition: tools.cpp:96
Define global logger.
void check_concat_limits(std::vector< std::size_t > concat_limits, std::size_t n_frames)
check if concat limits were passed correctly
Definition: tools.cpp:189
unsigned int min_multiplicator(unsigned int orig, unsigned int mult)
return minimum multiplicator to fulfill result * mult >= orig
Definition: tools.cpp:36
void write_neighborhood(const std::string filename, const Neighborhood &nh, const Neighborhood &nh_high_dens, std::string header_comment, std::map< std::string, float > stringMap)
Definition: tools.cpp:144
std::map< std::size_t, Clustering::Tools::Neighbor > Neighborhood
map frame id to neighbors
Definition: tools.hpp:66
void read_comments(std::string filename, std::map< std::string, float > &stringMap)
read comments of stringMap from file. Comments should start with #@
Definition: tools.cpp:229
std::pair< Neighborhood, Neighborhood > read_neighborhood(const std::string filename)
Definition: tools.cpp:101
void append_commentsMap(std::string &header_comment, std::map< std::string, float > &stringMap)
append commentsMap to header comment
Definition: tools.cpp:267
void write_fes(std::string filename, std::vector< float > fes, std::string header_comment, std::map< std::string, float > stringMap)
write free energies as column into given file
Definition: tools.cpp:42
void write_clustered_trajectory(std::string filename, std::vector< std::size_t > traj, std::string header_comment, std::map< std::string, float > stringMap)
write state trajectory into plain text file
Definition: tools.cpp:63
std::vector< std::size_t > read_clustered_trajectory(std::string filename)
read states from trajectory (given as plain text file)
Definition: tools.cpp:58
std::string stringprintf(const std::string &str,...)
printf-version for std::string
Definition: tools.cpp:80