20package denoptim.programs.moldecularmodelbuilder;
22import java.lang.reflect.Field;
23import java.util.ArrayList;
24import java.util.HashMap;
26import denoptim.exception.DENOPTIMException;
27import denoptim.integration.tinker.TinkerUtils;
28import denoptim.molecularmodeling.MMBuilderUtils;
29import denoptim.programs.RunTimeParameters;
42 protected boolean debug =
false;
296 switch (key.toUpperCase())
307 case "FORCEFIELDFILE=":
323 msg =
"Unable to understand value " + key +
"'" + value +
"'";
330 case "PSSROTPARAMS=":
333 case "RCPSSROTPARAMS=":
336 case "KEEPDUMMYATOMS":
339 case "ATOMORDERINGSCHEME=":
346 msg =
"Unable to understand value " + key +
"'" + value +
"'";
366 msg =
"Keyword " + key +
" is not a known keyword for the "
367 +
"3d-molecular model builder. Check input files.";
407 if (atomOrderingScheme < 1 || atomOrderingScheme > 2)
409 throw new Error(
"ERROR! Parameter 'atomOrderingScheme' can only "
425 StringBuilder sb =
new StringBuilder(1024);
427 for (Field f : this.getClass().getDeclaredFields())
431 sb.append(f.getName()).append(
" = ").append(
432 f.get(
this)).append(
NL);
437 +
" parameters. Cause: " + t);
443 sb.append(otherCollector.getPrintedList());
445 return sb.toString();
468 +
"ring-closing PSSROT jobs.");
473 +
"ring-closing PSSROT key file.");
Toolbox of utilities for Tinker style molecular representation.
static HashMap< String, Integer > readTinkerAtomTypes(String filename)
Read the Tinker atom mapping from Tinker Force Field.
static void readPSSROTParams(String filename, ArrayList< String > initPars, ArrayList< String > restPars)
Read the parameter settings to be used by PSSROT.
Utilities for molecular models builder.
static void readKeyFileParams(String filename, ArrayList< String > data)
Read the parameter settings to be used by PSSROT.
Collection of parameters controlling the behavior of the software.
Map< ParametersType, RunTimeParameters > otherParameters
Collection of other parameters by type.
void ensureFileExists(String pathname)
Ensures a pathname does lead to an existing file or triggers an error.
void ensureNotNull(String paramName, String param, String paramKey)
Ensures that a parameter is not null or triggers an error.
String paramTypeName()
Returns a string defining the type the parameters collected here.
void checkOtherParameters()
Checks any of the parameter collections contained in this instance.
String workDir
Working directory.
final String NL
New line character.
void processOtherParameters()
Processes any of the parameter collections contained in this instance.
int verbosity
Verbosity level for logger.
Parameters for the conformer generator (3D builder).
String keyFile
Pathname to keywords file for Tinker's conformational search.
boolean debug
Flag controlling debug verbosity.
ArrayList< String > keyFileParams
Keywords for Tinker's conformational search.
String toolXYZINT
Pathname to Tinker's xyzint executable.
void processParameters()
Processes all parameters and initialize related objects.
ArrayList< String > getKeyFileParams()
ArrayList< String > rsKeyFileParams
Keywords for Tinker's ring-closing conformational search.
String getPrintedList()
Returns the list of parameters in a string with newline characters as delimiters.
ArrayList< String > getRSRestPSSROTParams()
ArrayList< String > pssrotParams_Init
Parameters for PSS part of Tinker's PSSROT step.
MMBuilderParameters()
Constructor.
ArrayList< String > getInitPSSROTParams()
String pssrotFile
Pathname to parameters file for PSS part of Tinker's PSSROT.
String getOutputSDFFile()
String outSDFFile
Pathname of ouput SDF file.
String rsPssrotFile
Pathname to parameters file for PSS part of Tinker's ring-closing PSSROT.
int taskID
Unique task identifier.
ArrayList< String > getRSInitPSSROTParams()
void checkParameters()
Check all parameters.
boolean getKeepDummyFlag()
String getWorkingDirectory()
String toolINTXYZ
Pathname to Tinker's intxyz executable.
ArrayList< String > getRestPSSROTParams()
HashMap< String, Integer > getTinkerMap()
String forceFieldFile
Pathname to force field parameters file for Tinker.
String inpSDFFile
Pathname of input SDF file.
ArrayList< String > rsPssrotParams_Init
Parameters for PSS part of Tinker's ring-closing PSSROT step.
int atomOrderingScheme
Flag controlling the criterion used to reorder atom lists.
HashMap< String, Integer > TINKER_MAP
Atom type map.
void interpretKeyword(String key, String value)
Processes a keyword/value pair and assign the related parameters.
ArrayList< String > pssrotParams_Rest
Parameters for linear search part of Tinker's PSSROT step.
boolean keepDummy
Flag controlling removal of dummy atoms from output geometry.
ArrayList< String > rsPssrotParams_Rest
Parameters for linear search part of Tinker's ring-closing PSSROT step.
String rsKeyFile
Pathname to keywords file for Tinker's ring-closing conformational search.
ArrayList< String > getRSKeyFileParams()
int getAtomOrderingScheme()
String toolPSSROT
Pathname to Tinker's pssrot executable.
Identifier of the type of parameters.
MMB_PARAM
Parameters pertaining the construction of three-dimensional molecular models using the Tinker-based m...
RC_PARAMS
Parameters pertaining to ring closures in graphs.