atomic.number
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
Amber topology atomic number section |
id |
atomic.number |
name |
Amber topology atomic number section |
pattern |
\s*%FLAG\sATOMIC_NUMBER.* |
endPattern |
.*[0-9]\s*$%.* |
endPattern2 |
~ |
endOffset |
1 |
xml:base |
sections/atomic.number.xml |
Input
%FLAG ATOMIC_NUMBER
%FORMAT(10I8)
30 8 8 8 8 8 8 7 7 7
7 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 8 1 1 8 1 1 8
1 1 8 1 1 8 1 1 8 1
1 8 1 1 8 1 1 8 1 1
8 1 1 8 1 1 8 1 1 8
1 8 1 1 8 1 1 8 1 1
8 1 1 8 1 1 8 1 1 8
1 1 8 1 1 8 1 1
%FLAG MASS
Output text
1<comment class="example.output" id="atomic.number">
2 <module cmlx:templateRef="atomic.number">
3 <array dataType="xsd:integer" dictRef="cc:elementType" size="7628">30 8 8 8 8 8 8 7 7 7 7 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1</array>
4 </module>
5 </comment>
Template definition
1<record repeat="2" />
2<record repeat="*">{1_10I,cc:elementType}</record>
3<transform process="joinArrays" xpath=".//cml:array" />
4<transform process="pullup" xpath=".//cml:array" />
5<transform process="delete" xpath=".//cml:list" />