|
@@ -10,7 +10,10 @@ export type Target = {
|
|
|
readonly label_seq_id?: number
|
|
|
readonly label_comp_id?: string
|
|
|
readonly label_asym_id?: string
|
|
|
- // TODO add support for 'operators'
|
|
|
+ /**
|
|
|
+ * Mol*-internal representation, like 'ASM_2'. Enumerated in the order of appearance in the source file.
|
|
|
+ */
|
|
|
+ readonly operatorName?: string
|
|
|
}
|
|
|
|
|
|
export type Range = {
|
|
@@ -157,7 +160,9 @@ function targetToExpression(target: Target): Expression {
|
|
|
if (target.label_asym_id) {
|
|
|
chainTests.push(MS.core.rel.eq([target.label_asym_id, MS.ammp('label_asym_id')]));
|
|
|
}
|
|
|
- // TODO add support for 'operators'
|
|
|
+ if (target.operatorName) {
|
|
|
+ chainTests.push(MS.core.rel.eq([target.operatorName, MS.acp('operatorName')]));
|
|
|
+ }
|
|
|
|
|
|
if (chainTests.length === 1) {
|
|
|
tests['chain-test'] = chainTests[0];
|