Bond attributes#
Bond attributes are defined in the bond attribute space (short name: b). Bond attributes may only match bond nodes.
The following bond attributes are available in NSL:
| Attribute name | Short name | Possible values | Examples |
|---|---|---|---|
| customType | ct |
integers | b.ct 1b.ct 1, 2 |
| length | len |
length | b.len > 1.2 Ab.len 0.12nm:0.17nm |
| order | o |
floats | b.o >= 1b.o 1:1.5 |
| type | t |
single (s, 1),double (d, 2),triple (t, 3),amide (am),aromatic (ar),dummy (du),undefined (un) |
b.t sb.t s, d |
customType#
The bond.customType attribute (short name: b.ct) matches bonds with specific custom types.
Possible values: integers.
Examples:
bond.customType 0(short version:b.ct 0): matches bonds with custom type 0bond.customType >= 0(short version:b.ct >= 0): matches bonds with custom type larger than 0bond.customType 0:2(short version:b.ct 0:2): matches bonds with custom type between 0 and 2
length#
The bond.length attribute (short name: b.len) matches bonds with specific bond length.
Possible values: floating-point values.
Examples:
bond.length >= 1.5A(short version:b.len >= 1.5A): matches bonds with length larger than 1.5 angstromsbond.length 1.2A:1.4A(short version:b.len 1.2A:1.4A): matches bonds with length between 1.2 and 1.4 angstromsbond.length 0.15nm:2.1nm(short version:b.len 0.15nm:2.1nm): matches bonds with length between 0.15 and 2.1 nanometers
order#
The bond.order attribute (short name: b.o) matches bonds with specific orders.
Possible values: floating-point values.
Examples:
bond.order >= 2(short version:b.o >= 2): matches bonds with order larger than 2bond.order 1.5:3(short version:b.o 1.5:3): matches bonds with order between 1.5 and 3
type#
The bond.type attribute (short name: b.t) matches bonds with one of the specific types:
| Attribute name | Short name | Meaning |
|---|---|---|
single |
s, 1 |
single bond |
double |
d, 2 |
double bond |
triple |
t, 3 |
triple bond |
amide |
am |
amide bond |
aromatic |
ar |
aromatic bond |
dummy |
du |
dummy bond |
undefined |
un |
undefined bonds |
Note, that to use this a bond needs to have its bond type defined.
Examples:
bond.type single(short name:b.t s): matches single bondsbond.type single, double(short name:b.t s,d): matches single and double bondsbond.type dummy, undefined(short name:b.t du,un): matches dummy and undefined bonds