Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
e226f270
Commit
e226f270
authored
5 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
fixed wrong property use in seq widget
parent
804a04d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mol-plugin/ui/sequence.tsx
+7
-2
7 additions, 2 deletions
src/mol-plugin/ui/sequence.tsx
src/mol-plugin/ui/sequence/polymer.ts
+1
-1
1 addition, 1 deletion
src/mol-plugin/ui/sequence/polymer.ts
with
8 additions
and
3 deletions
src/mol-plugin/ui/sequence.tsx
+
7
−
2
View file @
e226f270
...
@@ -10,7 +10,7 @@ import { PluginUIComponent } from './base';
...
@@ -10,7 +10,7 @@ import { PluginUIComponent } from './base';
import
{
StateTreeSpine
}
from
'
../../mol-state/tree/spine
'
;
import
{
StateTreeSpine
}
from
'
../../mol-state/tree/spine
'
;
import
{
PluginStateObject
as
SO
}
from
'
../state/objects
'
;
import
{
PluginStateObject
as
SO
}
from
'
../state/objects
'
;
import
{
Sequence
}
from
'
./sequence/sequence
'
;
import
{
Sequence
}
from
'
./sequence/sequence
'
;
import
{
Structure
,
StructureElement
,
StructureProperties
as
SP
}
from
'
../../mol-model/structure
'
;
import
{
Structure
,
StructureElement
,
StructureProperties
as
SP
,
Unit
}
from
'
../../mol-model/structure
'
;
import
{
SequenceWrapper
}
from
'
./sequence/wrapper
'
;
import
{
SequenceWrapper
}
from
'
./sequence/wrapper
'
;
import
{
PolymerSequenceWrapper
}
from
'
./sequence/polymer
'
;
import
{
PolymerSequenceWrapper
}
from
'
./sequence/polymer
'
;
import
{
StructureElementSelectionManager
}
from
'
../util/structure-element-selection
'
;
import
{
StructureElementSelectionManager
}
from
'
../util/structure-element-selection
'
;
...
@@ -75,7 +75,12 @@ function getChainOptions(structure: Structure, entityId: string) {
...
@@ -75,7 +75,12 @@ function getChainOptions(structure: Structure, entityId: string) {
const
id
=
unit
.
invariantId
const
id
=
unit
.
invariantId
if
(
seen
.
has
(
id
))
continue
if
(
seen
.
has
(
id
))
continue
let
label
=
`
${
SP
.
chain
.
label_asym_id
(
l
)}
:
${
SP
.
chain
.
auth_asym_id
(
l
)}
`
let
label
=
''
if
(
Unit
.
isAtomic
(
unit
))
{
label
=
`
${
SP
.
chain
.
label_asym_id
(
l
)}
:
${
SP
.
chain
.
auth_asym_id
(
l
)}
`
}
else
{
label
=
`
${
SP
.
coarse
.
asym_id
(
l
)}
`
}
if
(
SP
.
entity
.
type
(
l
)
===
'
water
'
)
{
if
(
SP
.
entity
.
type
(
l
)
===
'
water
'
)
{
const
count
=
water
.
get
(
label
)
||
1
const
count
=
water
.
get
(
label
)
||
1
water
.
set
(
label
,
count
+
1
)
water
.
set
(
label
,
count
+
1
)
...
...
This diff is collapsed.
Click to expand it.
src/mol-plugin/ui/sequence/polymer.ts
+
1
−
1
View file @
e226f270
...
@@ -72,7 +72,7 @@ export class PolymerSequenceWrapper extends SequenceWrapper<StructureUnit> {
...
@@ -72,7 +72,7 @@ export class PolymerSequenceWrapper extends SequenceWrapper<StructureUnit> {
this
.
missing
=
data
.
unit
.
model
.
properties
.
missingResidues
this
.
missing
=
data
.
unit
.
model
.
properties
.
missingResidues
this
.
modelNum
=
data
.
unit
.
model
.
modelNum
this
.
modelNum
=
data
.
unit
.
model
.
modelNum
this
.
asymId
=
SP
.
chain
.
label_asym_id
(
l
)
this
.
asymId
=
Unit
.
isAtomic
(
data
.
unit
)
?
SP
.
chain
.
label_asym_id
(
l
)
:
SP
.
coarse
.
asym_id
(
l
)
const
missing
:
number
[]
=
[]
const
missing
:
number
[]
=
[]
for
(
let
i
=
0
;
i
<
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
length
;
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment