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 = {
'100-120,220',
// un-parenthesized residue index
'20',
],
unsupported: [
// within in the head or the middle of sentence
'within ( 5 , [HEM] ) and backbone',
],
unsupported: [
]
};
......
......@@ -116,7 +116,6 @@ function atomSelectionQuery2(x: any) {
function atomExpressionQuery(x: any[]) {
const [resnorange, resno, inscode, chainname, atomname, altloc] = x[1];
// const [resnorange, inscode, chainname, atomname, altloc] = x[1];
const tests: AtomGroupArgs = {};
if (chainname) {
......@@ -149,7 +148,6 @@ function atomExpressionQuery(x: any[]) {
function resnorangeExpressionQuery(x: any[]) {
const [resnorange, chainname] = x;
// const [resnorange, inscode, chainname, atomname, altloc] = x[1];
const tests: AtomGroupArgs = {};
if (chainname) {
......@@ -326,8 +324,7 @@ const lang = P.MonadicParser.createLanguage({
},
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));
return h.combineOperators(operators, P.MonadicParser.alt(r.Parens, r.Expression, r.Operator));
},
AtomExpression: function (r: any) {
......@@ -372,7 +369,7 @@ const lang = P.MonadicParser.createLanguage({
ResnoRange: function (r: any) {
return P.MonadicParser.regex(/-?[0-9,-]+/).map(listOrRangeMap).desc('resnorange');
// // 123-200
// // -12--3
// // -12--3
},
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