Jump to content

NEEMP:Modes: Difference between revisions

From WebChemistry Wiki
Francesco (talk | contribs)
No edit summary
Francesco (talk | contribs)
No edit summary
Line 35: Line 35:
<br style="clear:both" />
<br style="clear:both" />


=Cross-validation==
==Cross-validation==


To assess the quality of the EEM parameters on a different set than one they were based on, '''NEEMP''''s ''cross mode'' can be used.  
To assess the quality of the EEM parameters on a different set than one they were based on, '''NEEMP''''s ''cross mode'' can be used.  

Revision as of 15:15, 13 June 2016

NEEMP features three modes: calculation, parametrization and validation mode. Each mode can be selected specifying one of the following keywords after the option --mode or -m:

Calculation mode : charges (calculate EEM charges)

Parametrization mode : params (calculate EEM parameters)

Validation mode : cover (display how many molecules are covered by the given parameters set) and cross (perform cross-validation)

Calculation mode

Figure 3: The percentage of covered molecules in the set is extremely low because of the absence of parameters for C1. All the molecules containing this atom types are automatically discarded.

To compute EEM charges with NEEMP, it is necessary to provide the SDF file with molecules for which the charges will be computed (option --sdf-file) and the PAR file with EEM parameters (option --par-file). EEM charges will be written into the file specified by --chg-out-file option.

NEEMP checks if the matrix is well-conditioned (note that this won't apply for GNU version) by estimating its condition number. If its reciprocal is lower than WARN_MIN_RCOND defined in config.h, warning about possible bad charges for a particular molecule is issued.

The user should keep in mind that, because of the EEM method itself, the EEM charges cannot be computed for elements or element types for which the parameters are missing. This situation is well depicted by Figure 3, where a modified version of the parameters set examples/ElemBond.par lacking the parameters for C1 (carbon presenting only single bonds), has been employed to compute the EEM charges for the set examples/set01.sdf (for details on the syntax, see the examples or option list section).

Parametrization mode

Info (-m info)

The first mode shows information about the training set provided as argument to the --sdf-file option. Specifically, number of molecules, the total number of atoms and number of atoms for each type are printed; the latter being defined by default as the chemical element and the maximum bond order. To override this behaviour in all NEEMP's modes and group the atoms only by chemical element, use the option --atom-types-by Element. Figure 1 displays the output for set01 in the examples directory, with default grouping, specified by ElemBond keyword (for details on the syntax, see the examples or option list paragraph).

Figure 1: Information on training set examples/set01.sdf. NB: Information about the execution time and the percentage of loaded molecules is issued as well.

Validation mode

Coverage

Figure 2: Percentage of molecules in set examples/set02.sdf covered by the displayed parameters set examples/Element.par

To see how many molecules from the set are covered by the provided parameters, simply pass NEEMP those two files (options --sdf-file and --par-file). Figure 2 shows a close-up from the cover mode output for set02.sdf and the parameters set Element.par, both present in the examples directory (for details on the syntax and the complete output, see the examples or option list paragraph)

Cross-validation

To assess the quality of the EEM parameters on a different set than one they were based on, NEEMP's cross mode can be used.

Required input files are: EEM parameters (passed as argument of option --par-file) and a new set of molecular structures (argument of --sdf-file) for which ab-initio charges have been computed (argument of --chg-file).

For details on the syntax and additional output, see the examples or option list section.

Figure 4: Cross mode output for structures file examples/set02.sdf, charge file examples/charges.chg and parameters set examples/Element.par . Note the block at the bottom where the statistics descriptors for the whole set and for each chemical element are displayed.