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
cb213038
Commit
cb213038
authored
6 years ago
by
Alexander Rose
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into bond-repr
parents
8d570b19
fdb62e6a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mol-model/structure/model/properties/sequence.ts
+9
-0
9 additions, 0 deletions
src/mol-model/structure/model/properties/sequence.ts
src/mol-model/structure/structure/element.ts
+4
-1
4 additions, 1 deletion
src/mol-model/structure/structure/element.ts
with
13 additions
and
1 deletion
src/mol-model/structure/model/properties/sequence.ts
+
9
−
0
View file @
cb213038
...
...
@@ -12,6 +12,12 @@ interface Sequence {
readonly
byEntityKey
:
{
[
key
:
number
]:
Sequence
.
Entity
}
}
// TODO lift to model/sequence/ folder
// TODO add one letter code sequence string
// TODO add mapping support to other sequence spaces, e.g. uniprot
// TODO add sequence kind, e.g. protein, dna, rna (alphabets?)
// TODO sequence alignment (take NGL code as starting point)
namespace
Sequence
{
export
interface
Entity
{
readonly
entityId
:
string
,
...
...
@@ -27,6 +33,9 @@ namespace Sequence {
const
byEntityKey
:
Sequence
[
'
byEntityKey
'
]
=
{};
// TODO get min/max of label_seq_id to handle missing residues at start and in between
// note that this assumes label_seq_id is monotonically increasing
const
chainCount
=
hierarchy
.
chains
.
_rowCount
for
(
let
i
=
0
;
i
<
chainCount
;
++
i
)
{
const
entityId
=
label_entity_id
.
value
(
i
)
...
...
This diff is collapsed.
Click to expand it.
src/mol-model/structure/structure/element.ts
+
4
−
1
View file @
cb213038
...
...
@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import
{
Tuple
}
from
'
mol-data/int
'
import
{
Tuple
,
SortedArray
}
from
'
mol-data/int
'
import
Unit
from
'
./unit
'
import
Structure
from
'
./structure
'
...
...
@@ -35,6 +35,9 @@ namespace Element {
}
export
function
property
<
T
>
(
p
:
Property
<
T
>
)
{
return
p
;
}
/** Represents multiple element locations */
export
type
Loci
=
ReadonlyArray
<
{
unit
:
Unit
,
elements
:
SortedArray
}
>
}
export
default
Element
\ No newline at end of file
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