Changes between dragonX 1.2 and dragonX 1.4
The main dragonX commands are the following:
Usage: dragonX [-h|-v|-c|-l [licensefile]|-d|-w|-s scriptfile]
-h, --help show usage message
-v, --version show version
-c, --citation show how to cite
-l, --license [licensefile] show license information (if licensefile is specified show license information of licensefile otherwise show license information on dragonX)
-d, --descriptors show the list of molecular descriptors
-w, --weights show the atom weights
-s, --script scriptfile run dragonX using scriptfile
./dragonX script.txt [draghist.log]
where script.txt is a script file name and draghist.log is the file name for the log produced by dragonX; if the log file is omitted the logs are wrote to the standard output. Analogously, in order to run dragonX version 1.4 the command line should be:
./dragonX –s script.txt
The logs are redirected to the standard error; in order to capture them it is possible to use a command line like this:
./dragonX –s script.txt 2>draghist.log
in dragonX version 1.4 you can directly use the standard input to provide the molecules to dragonX; in order to do that the /fm line in the script file must be changed to
/fm <stdinput
dragonX ver. 1.4 can also write the results on the standard output; in order to do that the /fo line in the script file should be changed to
/fo >stdoutput
An example of the usage of dragonX with standard input and standard output options activated is:
cat moleculefile | dragonX script.txt >output.txt 2>draghist.log
Have a look to the script.txt file down here.
Another new feature introduced in dragonX version 1.4 is related to the script file; dragonX is able to interpret script files where not all the /d GetBnn lines are specified.
It means that the two following script files are interpreted in the same way:
DRAGON script Ver 2
/d GetB1 All /PCno
/d GetB2 All /PCno
/d GetB3 None /PCno
/d GetB4 None /PCno
/d GetB5 None /PCno
/d GetB6 None /PCno
/d GetB7 None /PCno
/d GetB9 None /PCno
/d GetB10 None /PCno
/d GetB11 None /PCno
/d GetB12 None /PCno
/d GetB13 All /PCno
/d GetB14 All /PCno
/d GetB15 All /PCno
/d GetB16 All /PCno
/d GetB17 All /PCno
/d GetB18 All /PCno
/d GetB19 All /PCno
/d GetB20 All /PCno
/d GetB21 None /PCno
/d GetB22 None /PCno
/fm <stdinput -f5 -i1 -Hy -3D
/fy None
/fo >stdoutput -f1 -k -m -999
DRAGON script Ver 2
/d GetB1 All /PCno
/d GetB2 All /PCno
/d GetB13 All /PCno
/d GetB14 All /PCno
/d GetB15 All /PCno
/d GetB16 All /PCno
/d GetB17 All /PCno
/d GetB18 All /PCno
/d GetB19 All /PCno
/d GetB20 All /PCno
/fm <stdinput -f5 -i1 -Hy -3D
/fy None
/fo >stdoutput -f1 -k -m -99