``distmat`` =========== Description ----------- This tool can be used to calculate: **Average distance matrix:** It can be used to calculate average minimum-distance matrix of residues between two atom-groups. **MSF/RMSF in distance-matrix:** It can be used to calculate either variance (representing MSF) or standard-deviation (representing RMSF) of distance-matrices. **Contact map:** It can be used to calculate contact-frequency map over the trajectory for the residues that are within a minimum distance given by ``-ct`` option value. **Fluctuation in second trajectory with reference to average of first trajectory:** To calculate fluctuations (MSF - variance or RMSF - std. deviation in distance-matrix) in a trajectory with respect to average distances from another trajectory, use ``-f traj_for_average.xtc`` and ``-f2 traj_for_rmsf.xtc``. The averages will be calculated from first trajectory ``traj_for_average.xtc``. Subsequently, variances and deviation will be calculated for ``traj_for_variance.xtc`` with respect to previously calculated averages. **Trajectory and pdb for distance-matrix PCA:** To speed up the calculation, it uses all available cores of the CPU using multi-threading. Number of threads/cores could be change by "-nt" option. Command summary ---------------- .. code-block:: bash gmx_clusterByFeatures distmat [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]] [-f2 [<.xtc/.trr/...>]] [-mean [<.dat>]] [-var [<.dat>]] [-std [<.dat>]] [-cmap [<.dat>]] [-pca [<.xtc>]] [-b