Skip to content
Snippets Groups Projects
Commit fbaa9d9e authored by yakomaxa's avatar yakomaxa
Browse files

Finally enabled selection by negative-valued residue index in RasMol

parent ba78a855
No related branches found
No related tags found
No related merge requests found
...@@ -36,10 +36,10 @@ const general = { ...@@ -36,10 +36,10 @@ const general = {
'100-120,220', '100-120,220',
// un-parenthesized residue index // un-parenthesized residue index
'20', '20',
],
unsupported: [
// within in the head or the middle of sentence // within in the head or the middle of sentence
'within ( 5 , [HEM] ) and backbone', 'within ( 5 , [HEM] ) and backbone',
],
unsupported: [
] ]
}; };
......
...@@ -116,7 +116,6 @@ function atomSelectionQuery2(x: any) { ...@@ -116,7 +116,6 @@ function atomSelectionQuery2(x: any) {
function atomExpressionQuery(x: any[]) { function atomExpressionQuery(x: any[]) {
const [resnorange, resno, inscode, chainname, atomname, altloc] = x[1]; const [resnorange, resno, inscode, chainname, atomname, altloc] = x[1];
// const [resnorange, inscode, chainname, atomname, altloc] = x[1];
const tests: AtomGroupArgs = {}; const tests: AtomGroupArgs = {};
if (chainname) { if (chainname) {
...@@ -149,7 +148,6 @@ function atomExpressionQuery(x: any[]) { ...@@ -149,7 +148,6 @@ function atomExpressionQuery(x: any[]) {
function resnorangeExpressionQuery(x: any[]) { function resnorangeExpressionQuery(x: any[]) {
const [resnorange, chainname] = x; const [resnorange, chainname] = x;
// const [resnorange, inscode, chainname, atomname, altloc] = x[1];
const tests: AtomGroupArgs = {}; const tests: AtomGroupArgs = {};
if (chainname) { if (chainname) {
...@@ -326,8 +324,7 @@ const lang = P.MonadicParser.createLanguage({ ...@@ -326,8 +324,7 @@ const lang = P.MonadicParser.createLanguage({
}, },
Operator: function (r: any) { Operator: function (r: any) {
return h.combineOperators(operators, P.MonadicParser.alt(r.Parens, r.Expression, r.Operator)); return h.combineOperators(operators, P.MonadicParser.alt(r.Parens, r.Expression, r.Operator));
//return h.combineOperators(operators, P.MonadicParser.alt(r.Parens, r.Expression));
}, },
AtomExpression: function (r: any) { AtomExpression: function (r: any) {
...@@ -372,7 +369,7 @@ const lang = P.MonadicParser.createLanguage({ ...@@ -372,7 +369,7 @@ const lang = P.MonadicParser.createLanguage({
ResnoRange: function (r: any) { ResnoRange: function (r: any) {
return P.MonadicParser.regex(/-?[0-9,-]+/).map(listOrRangeMap).desc('resnorange'); return P.MonadicParser.regex(/-?[0-9,-]+/).map(listOrRangeMap).desc('resnorange');
// // 123-200 // // 123-200
// // -12--3 // // -12--3
}, },
Keywords: () => P.MonadicParser.alt(...h.getKeywordRules(keywords)), Keywords: () => P.MonadicParser.alt(...h.getKeywordRules(keywords)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment