results
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
Amber log |
id |
results |
name |
Final results |
pattern |
\s*FINAL\s*RESULTS\s* |
endPattern |
\s*-{20,}.* |
endOffset |
0 |
xml:base |
job/results.xml |
Input
FINAL RESULTS
NSTEP ENERGY RMS GMAX NAME NUMBER
1000 -2.9777E+04 4.2354E-01 1.1992E+01 C20 32
BOND = 2111.5836 ANGLE = 69.3578 DIHED = 14.1882
VDWAALS = 4939.8971 EEL = -36866.1371 HBOND = 0.0000
1-4 VDW = 7.6342 1-4 EEL = -53.5173 RESTRAINT = 0.0000
--------------------------------------------------------------------------------
Output text
1<comment class="example.output" id="results">
2 <module cmlx:templateRef="results">
3 <scalar dataType="xsd:double" dictRef="am:step">1000</scalar>
4 <scalar dataType="xsd:double" dictRef="am:etot" units="nonsi2:kcal.mol-1">-2.9777E+04</scalar>
5 <scalar dataType="xsd:double" dictRef="am:rms">4.2354E-01</scalar>
6 <scalar dataType="xsd:double" dictRef="am:gmax">1.1992E+01</scalar>
7 <scalar dataType="xsd:double" dictRef="am:bond" units="nonsi2:kcal.mol-1">2111.5836</scalar>
8 <scalar dataType="xsd:double" dictRef="am:angle" units="nonsi2:kcal.mol-1">69.3578</scalar>
9 <scalar dataType="xsd:double" dictRef="am:dihed" units="nonsi2:kcal.mol-1">14.1882</scalar>
10 <scalar dataType="xsd:double" dictRef="am:vdwaals" units="nonsi2:kcal.mol-1">4939.8971</scalar>
11 <scalar dataType="xsd:double" dictRef="am:eel" units="nonsi2:kcal.mol-1">-36866.1371</scalar>
12 <scalar dataType="xsd:double" dictRef="am:hbond">0.0000</scalar>
13 <scalar dataType="xsd:double" dictRef="am:vdw14" units="nonsi2:kcal.mol-1">7.6342</scalar>
14 <scalar dataType="xsd:double" dictRef="am:eel14" units="nonsi2:kcal.mol-1">-53.5173</scalar>
15 <scalar dataType="xsd:double" dictRef="am:restraint" units="nonsi2:kcal.mol-1">0.0000</scalar>
16 </module>
17 </comment>
Template definition
1<templateList> <template id="section" pattern="\s*NSTEP.*" endPattern="\s*"> <record /> <record>{I,am:step}{E,am:etot}{E,am:rms}{E,am:gmax}.*</record> <transform process="pullup" xpath=".//cml:scalar" repeat="3" />
2 </template> <template id="section" pattern="(.+=){4}.+" endPattern=".*" endPattern2="~" endOffset="0" repeat="*"> <record>{X,am:name}={F,am:value}{X,am:name}={F,am:value}{X,am:name}={F,am:value}{X,am:name}={F,am:value}</record> <transform process="setValue" xpath=".//cml:scalar[@dictRef='am:name']" value="$string(lower-case(./text()))" /> <transform process="setValue" xpath=".//cml:scalar[@dictRef='am:name']" value="$string(replace(./text(), '[-_ ]', '.'))" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="pullup" xpath=".//cml:scalar" repeat="3" />
3 </template> <template id="section" pattern="(.+=){3}.+" endPattern=".*" endPattern2="~" endOffset="0" repeat="*"> <record>{X,am:name}={F,am:value}{X,am:name}={F,am:value}{X,am:name}={F,am:value}</record> <transform process="setValue" xpath=".//cml:scalar[@dictRef='am:name']" value="$string(lower-case(./text()))" /> <transform process="setValue" xpath=".//cml:scalar[@dictRef='am:name']" value="$string(replace(./text(), '[-_ ]', '.'))" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="createNameValue" xpath="./cml:list/cml:list" name="./cml:scalar[@dictRef='am:name'][position() = 1]" value="./cml:scalar[@dictRef='am:value'][position()= 1]" /> <transform process="pullup" xpath=".//cml:scalar" repeat="3" />
4 </template>
5
6 </templateList>
7<transform process="delete" xpath=".//cml:module" />
8<transform process="delete" xpath=".//cml:list" />
9<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:time(ps)']" name="dictRef" value="am:time" />
10<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:temp(k)']" name="dictRef" value="am:temp" />
11<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:1.4.nb']" name="dictRef" value="am:nb14" />
12<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:1.4.eel']" name="dictRef" value="am:eel14" />
13<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:1.4.vdw']" name="dictRef" value="am:vdw14" />
14<transform process="addUnits" xpath="./cml:scalar[@dictRef='am:time']" value="nonsi:picoseconds" />
15<transform process="addUnits" xpath="./cml:scalar[@dictRef='am:temp']" value="si:k" />
16<transform process="addUnits" xpath="./cml:scalar[@dictRef='am:temp']" value="nonsi:k" />
17<transform process="addUnits" xpath="./cml:scalar[matches(@dictRef, 'am:e.*') ]" value="nonsi2:kcal.mol-1" />
18<transform process="addUnits" xpath="./cml:scalar[matches(@dictRef, 'am:(bond|angle|dihed|nb14|eel14|vdwaals|vdw14|restraint|virial)') ]" value="nonsi2:kcal.mol-1" />
19<transform process="addUnits" xpath="./cml:scalar[matches(@dictRef, 'am:press') ]" value="nonsi2:bar" />
20<transform process="addAttribute" xpath="./cml:scalar" name="dataType" value="xsd:double" />
21<transform process="addAttribute" xpath="./cml:scalar[@dictRef='am:nstep']" name="dataType" value="xsd:integer" />