Also, please use the syntax :issue:`number` to reference issues on GitLab, without the
a space between the colon and number!
-gmx msd has been migrated to the trajectoryanalysis framework
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+``gmx msd`` has been migrated to the trajectoryanalysis framework
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
The tool now uses the |Gromacs| selection syntax. Rather than piping selections via stdin,
selections are now made using the "-sel" option.
- System COM removal with -rmcomm has not yet been implemented.
- B-factor writing using the -pdb option is not yet supported.
-:issue:`2368`
\ No newline at end of file
+:issue:`2368`
+
+``gmx chi`` no longer needs ``residuetypes.dat`` entries for custom residues
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+The need to add the names of custom residues to ``residuetypes.dat`` has been
+removed, because it served no purpose. This makes ``gmx chi`` easier to use.
#include "gromacs/topology/topology.h"
#include "gromacs/utility/fatalerror.h"
-std::vector<t_dlist> mk_dlist(FILE* log,
- const t_atoms* atoms,
- gmx_bool bPhi,
- gmx_bool bPsi,
- gmx_bool bChi,
- gmx_bool bHChi,
- int maxchi,
- int r0,
- const ResidueTypeMap& residueTypeMap)
+std::vector<t_dlist> mk_dlist(FILE* log,
+ const t_atoms* atoms,
+ gmx_bool bPhi,
+ gmx_bool bPsi,
+ gmx_bool bChi,
+ gmx_bool bHChi,
+ int maxchi,
+ int r0)
{
int i, j, ii;
t_dihatms atm, prev;
nc[6]++;
}
- /* Prevent use of unknown residues. If one adds a custom residue to
- * residuetypes.dat but somehow loses it, changes it, or does analysis on
- * another machine, the residue type will be unknown. */
- if (residueTypeMap.find(thisres) == residueTypeMap.end())
- {
- gmx_fatal(FARGS,
- "Unknown residue %s when searching for residue type.\n"
- "Maybe you need to add a custom residue in residuetypes.dat.",
- thisres);
- }
dl[nl].residueName = thisres;
sprintf(dl[nl].name, "%s%d", thisres, ires + r0);
#include "gromacs/math/units.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
-#include "gromacs/topology/residuetypes.h"
#include "gromacs/topology/topology.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/cstringutil.h"
}
// Build a list of unique residue names found in the dihedral
- // list, so we can loop over those unique names conveniently. The
- // names are the same as the residue names found in residueTypeMap in the
- // caller, but ResidueTypeMap doesn't yet have a way to loop over its
- // contents.
+ // list, so we can loop over those unique names conveniently.
std::unordered_set<std::string> uniqueResidueNames;
for (const auto& dihedral : dlist)
{
}
fprintf(log, "Title: %s\n", name);
- ResidueTypeMap residueTypeMap = residueTypeMapFromLibraryFile("residuetypes.dat");
- std::vector<t_dlist> dlist =
- mk_dlist(log, &atoms, bPhi, bPsi, bChi, bHChi, maxchi, r0, residueTypeMap);
+ std::vector<t_dlist> dlist = mk_dlist(log, &atoms, bPhi, bPsi, bChi, bHChi, maxchi, r0);
fprintf(stderr, "%zu residues with dihedrals found\n", dlist.size());
if (dlist.empty())
#include "gromacs/commandline/pargs.h"
#include "gromacs/topology/index.h"
-#include "gromacs/topology/residuetypes.h"
struct gmx_output_env_t;
* the residues, and a mapping from chemical peptide atom names to
* atom indices based on the atom names. Many fields of t_dlist are
* not yet filled. */
-std::vector<t_dlist> mk_dlist(FILE* log,
- const t_atoms* atoms,
- gmx_bool bPhi,
- gmx_bool bPsi,
- gmx_bool bChi,
- gmx_bool bHChi,
- int maxchi,
- int r0,
- const ResidueTypeMap& rt);
+std::vector<t_dlist> mk_dlist(FILE* log,
+ const t_atoms* atoms,
+ gmx_bool bPhi,
+ gmx_bool bPsi,
+ gmx_bool bChi,
+ gmx_bool bHChi,
+ int maxchi,
+ int r0);
void pr_dlist(FILE* fp,
gmx::ArrayRef<const t_dlist> dlist,