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:

Traj2COMCLI

Command Line Tool for Computing Center of Mass Trajectories

Functions:

main

Main function of the traj2com command line tool, which is basically just a wrapper for the traj2com function.

Reference

class Traj2COMCLI[source]

Bases: CLIBase

Command Line Tool for Computing Center of Mass Trajectories

classmethod add_arguments(
parser: _ArgumentParser,
) → None[source]

Adds the arguments to the parser.

Parameters:

parser (_ArgumentParser) – The parser to which the arguments should be added.

classmethod program_name() → str[source]

Returns the name of the program.

Returns:

The name of the program.

Return type:

str

classmethod run(args) → None[source]

Runs the command line tool.

Parameters:

args (_Namespace) – The arguments from the command line.

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().