traj2com¶
Command Line Tool for Computing Center of Mass Trajectories¶
Computes the center of mass trajectory of trajectory files. The center of mass is computed for all selected atoms, for groups of consecutive atoms (–group) or for every molecule (–by-residue). Molecules are defined by a restart file together with a moldescriptor file. The format is inferred from the file extension: an xyz file gives the positions of the centers of mass, a vel file their velocities, a force file their forces and a charge file their charges.
Summary¶
Classes:
Command Line Tool for Computing Center of Mass Trajectories |
Functions:
Main function of the traj2com command line tool, which is basically just a wrapper for the traj2com function. |
Reference¶
- class Traj2COMCLI[source]¶
Bases:
CLIBaseCommand Line Tool for Computing Center of Mass Trajectories
- classmethod add_arguments(
- parser: _ArgumentParser,
Adds the arguments to the parser.
- Parameters:
parser (_ArgumentParser) – The parser to which the arguments should be added.
- main()[source]¶
Main function of the traj2com command line tool, which is basically just a wrapper for the traj2com function. For more information on the traj2com function please visit
PQAnalysis.tools.traj_to_com_traj.traj2com().