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

give pymol the ability to deal with negatively indexed residue numbering

parent 93e107f3
Branches
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ function listOrRangeMap(x: string) { ...@@ -37,7 +37,7 @@ function listOrRangeMap(x: string) {
for (let i = min; i <= max; i++) { for (let i = min; i <= max; i++) {
res.push(i); res.push(i);
} }
}else if (x.includes('-') && x.startsWith("-") && !x.match(/[0-9]+-[0-9]+/)) { }else if (x.includes('-') && x.startsWith("-") && !x.match(/[0-9]+-[-0-9]+/)) {
res.push(parseInt(x)); res.push(parseInt(x));
}else{ }else{
res.push(parseInt(x)); res.push(parseInt(x));
...@@ -63,7 +63,7 @@ function listOrRangeMap(x: string) { ...@@ -63,7 +63,7 @@ function listOrRangeMap(x: string) {
for (let i = min; i <= max; i++) { for (let i = min; i <= max; i++) {
res.push(i); res.push(i);
} }
}else if (x.startsWith("-") && !x.match(/[0-9]+-[0-9]+/)) { }else if (x.startsWith("-") && !x.match(/[0-9]+-[-0-9]+/)) {
res.push(parseInt(x)); res.push(parseInt(x));
}else{ }else{
res.push(parseInt(x)); res.push(parseInt(x));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment