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
525f32fe
Commit
525f32fe
authored
5 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
use elementLabel() for sequence widget dropdown
parent
cdb698f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mol-plugin/ui/sequence.tsx
+3
-6
3 additions, 6 deletions
src/mol-plugin/ui/sequence.tsx
with
3 additions
and
6 deletions
src/mol-plugin/ui/sequence.tsx
+
3
−
6
View file @
525f32fe
...
@@ -20,6 +20,8 @@ import { HeteroSequenceWrapper } from './sequence/hetero';
...
@@ -20,6 +20,8 @@ import { HeteroSequenceWrapper } from './sequence/hetero';
import
{
State
,
StateSelection
}
from
'
../../mol-state
'
;
import
{
State
,
StateSelection
}
from
'
../../mol-state
'
;
import
{
ChainSequenceWrapper
}
from
'
./sequence/chain
'
;
import
{
ChainSequenceWrapper
}
from
'
./sequence/chain
'
;
import
{
ElementSequenceWrapper
}
from
'
./sequence/element
'
;
import
{
ElementSequenceWrapper
}
from
'
./sequence/element
'
;
import
{
elementLabel
}
from
'
../../mol-theme/label
'
;
import
{
stripTags
}
from
'
../../mol-util/string
'
;
const
MaxDisplaySequenceLength
=
5000
const
MaxDisplaySequenceLength
=
5000
...
@@ -123,12 +125,7 @@ function getUnitOptions(structure: Structure, modelEntityId: string) {
...
@@ -123,12 +125,7 @@ function getUnitOptions(structure: Structure, modelEntityId: string) {
// TODO handle special cases
// TODO handle special cases
// - more than one chain in a unit
// - more than one chain in a unit
// - chain spread over multiple units
// - chain spread over multiple units
let
label
=
''
let
label
=
stripTags
(
elementLabel
(
l
,
'
chain
'
,
true
))
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.
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