Skip to content

Commit c4aac4f

Browse files
committed
ihm select
1 parent 44736a6 commit c4aac4f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rcsb/rcsb-molstar",
3-
"version": "2.11.4",
3+
"version": "2.11.5-dev-js-ihm.1",
44
"description": "RCSB PDB apps and props based on Mol*.",
55
"homepage": "https://github.com/molstar/rcsb-molstar#readme",
66
"repository": {
@@ -25,7 +25,7 @@
2525
"preversion": "npm run test",
2626
"version": "npm run build",
2727
"postversion": "git push && git push --tags",
28-
"publish-app": "npm publish"
28+
"publish-app": "npm publish --tag dev-js-ihm"
2929
},
3030
"publishConfig": {
3131
"registry": "https://registry.npmjs.org/"

src/viewer/helpers/selection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ function targetToExpression(target: Target): Expression {
253253
} else if (target.labelSeqId) {
254254
residueTests.push(MS.core.rel.eq([target.labelSeqId, MS.ammp('label_seq_id')]));
255255
} else if (target.labelSeqRange) {
256-
residueTests.push(MS.core.rel.inRange([MS.ammp('label_seq_id'), target.labelSeqRange.beg, target.labelSeqRange.end ?? target.labelSeqRange.beg]));
256+
residueTests.push(MS.struct.atomProperty.ihm.overlapsSeqIdRange({
257+
beg: target.labelSeqRange.beg,
258+
end: (target.labelSeqRange.end ?? target.labelSeqRange.beg)
259+
}));
257260
}
258261
if (target.labelCompId) {
259262
residueTests.push(MS.core.rel.eq([target.labelCompId, MS.ammp('label_comp_id')]));

0 commit comments

Comments
 (0)