24#if !defined(LOOS_ENSEMBLES_HPP)
25#define LOOS_ENSEMBLES_HPP
28#include <boost/tuple/tuple.hpp>
30#include <loos_defs.hpp>
31#include <MatrixImpl.hpp>
32#include <MatrixOps.hpp>
34#include <ProgressCounters.hpp>
35#include <ProgressTriggers.hpp>
37#include <AtomicGroup.hpp>
38#include <Trajectory.hpp>
50 AtomicGroup
averageStructure(
const std::vector<AtomicGroup>& ensemble,
const std::vector<XForm>& xforms);
58 AtomicGroup
averageStructure(
const AtomicGroup&,
const std::vector<XForm>&, pTraj& traj,
const std::vector<uint>& indices);
65 AtomicGroup
averageStructure(
const AtomicGroup&,
const std::vector<XForm>&, pTraj& traj);
68 void applyTransforms(std::vector<AtomicGroup>& ensemble, std::vector<XForm>& xforms);
70 void readTrajectory(std::vector<AtomicGroup>& ensemble,
const AtomicGroup& model, pTraj trajectory);
71 void readTrajectory(std::vector<AtomicGroup>& ensemble,
const AtomicGroup& model, pTraj trajectory, std::vector<uint>& frames);
78 RealMatrix
extractCoords(
const std::vector<AtomicGroup>& ensemble);
79 RealMatrix
extractCoords(
const std::vector<AtomicGroup>& ensemble,
const std::vector<XForm>& xforms);
81 void subtractAverage(RealMatrix& M);
88 boost::tuple<RealMatrix, RealMatrix, RealMatrix>
svd(std::vector<AtomicGroup>& ensemble,
const bool align =
true);
95 void appendCoords(std::vector< std::vector<double> >& ensemble,
98 const std::vector<uint>& indices,
102 std::vector< std::vector<double> > readCoords(AtomicGroup& model,
104 const std::vector<uint>& indices,
extractCoords(traj)
Returns the coordinates for an entire trajectory as an MxN numpy matrix where M is 3*natoms and N is ...
Definition ensembles.py:35
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3
boost::tuple< RealMatrix, RealMatrix, RealMatrix > svd(std::vector< AtomicGroup > &ensemble, bool align)
Compute the SVD of an ensemble with optional alignment (note RSVs returned are transposed)
Definition ensembles.cpp:239
AtomicGroup averageStructure(const std::vector< AtomicGroup > &ensemble)
Compute the average structure of a set of AtomicGroup objects.
Definition ensembles.cpp:36