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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
88cd6394
Commit
88cd6394
authored
4 years ago
by
McMenemy
Browse files
Options
Downloads
Patches
Plain Diff
add code generated types ion file
parent
0a30ed45
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mol-model/structure/model/types.ts
+1
-36
1 addition, 36 deletions
src/mol-model/structure/model/types.ts
src/mol-model/structure/model/types/ions.ts
+9
-0
9 additions, 0 deletions
src/mol-model/structure/model/types/ions.ts
with
10 additions
and
36 deletions
src/mol-model/structure/model/types.ts
+
1
−
36
View file @
88cd6394
...
@@ -11,6 +11,7 @@ import { mmCIF_Schema } from '../../../mol-io/reader/cif/schema/mmcif';
...
@@ -11,6 +11,7 @@ import { mmCIF_Schema } from '../../../mol-io/reader/cif/schema/mmcif';
import
{
SetUtils
}
from
'
../../../mol-util/set
'
;
import
{
SetUtils
}
from
'
../../../mol-util/set
'
;
import
{
EntitySubtype
,
ChemicalComponent
}
from
'
./properties/common
'
;
import
{
EntitySubtype
,
ChemicalComponent
}
from
'
./properties/common
'
;
import
{
LipidNames
}
from
'
./types/lipids
'
;
import
{
LipidNames
}
from
'
./types/lipids
'
;
import
{
IonNames
}
from
'
./types/ions
'
;
import
{
mmCIF_chemComp_schema
}
from
'
../../../mol-io/reader/cif/schema/mmcif-extras
'
;
import
{
mmCIF_chemComp_schema
}
from
'
../../../mol-io/reader/cif/schema/mmcif-extras
'
;
const
_esCache
=
(
function
()
{
const
_esCache
=
(
function
()
{
...
@@ -432,42 +433,6 @@ export function isProtein(moleculeType: MoleculeType) {
...
@@ -432,42 +433,6 @@ export function isProtein(moleculeType: MoleculeType) {
return
moleculeType
===
MoleculeType
.
Protein
;
return
moleculeType
===
MoleculeType
.
Protein
;
}
}
/**
* TODO write script that read CCD and outputs list of ion names
*
* all chemical components with the word "ion" in their name, Sep 2016
*
* SET SESSION group_concat_max_len = 1000000;
* SELECT GROUP_CONCAT(id_ ORDER BY id_ ASC SEPARATOR '", "') from
* (
* SELECT count(obj_id) as c, id_
* FROM pdb.chem_comp WHERE name LIKE "% ION%"
* GROUP BY id_
* ) AS t1;
*/
export
const
IonNames
=
new
Set
([
'
118
'
,
'
119
'
,
'
1AL
'
,
'
1CU
'
,
'
2FK
'
,
'
2HP
'
,
'
2OF
'
,
'
3CO
'
,
'
3MT
'
,
'
3NI
'
,
'
3OF
'
,
'
3P8
'
,
'
4MO
'
,
'
4PU
'
,
'
543
'
,
'
6MO
'
,
'
ACT
'
,
'
AG
'
,
'
AL
'
,
'
ALF
'
,
'
AM
'
,
'
ATH
'
,
'
AU
'
,
'
AU3
'
,
'
AUC
'
,
'
AZI
'
,
'
BA
'
,
'
BCT
'
,
'
BEF
'
,
'
BF4
'
,
'
BO4
'
,
'
BR
'
,
'
BS3
'
,
'
BSY
'
,
'
CA
'
,
'
CAC
'
,
'
CD
'
,
'
CD1
'
,
'
CD3
'
,
'
CD5
'
,
'
CE
'
,
'
CHT
'
,
'
CL
'
,
'
CO
'
,
'
CO3
'
,
'
CO5
'
,
'
CON
'
,
'
CR
'
,
'
CS
'
,
'
CSB
'
,
'
CU
'
,
'
CU1
'
,
'
CU3
'
,
'
CUA
'
,
'
CUZ
'
,
'
CYN
'
,
'
DME
'
,
'
DMI
'
,
'
DSC
'
,
'
DTI
'
,
'
DY
'
,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
SB
'
,
'
SCN
'
,
'
SE4
'
,
'
SEK
'
,
'
SM
'
,
'
SMO
'
,
'
SO3
'
,
'
SO4
'
,
'
SR
'
,
'
T1A
'
,
'
TB
'
,
'
TBA
'
,
'
TCN
'
,
'
TEA
'
,
'
TH
'
,
'
THE
'
,
'
TL
'
,
'
TMA
'
,
'
TRA
'
,
'
UNX
'
,
'
V
'
,
'
VN3
'
,
'
VO4
'
,
'
W
'
,
'
WO5
'
,
'
Y1
'
,
'
YB
'
,
'
YB2
'
,
'
YH
'
,
'
YT3
'
,
'
ZCM
'
,
'
ZN
'
,
'
ZN2
'
,
'
ZN3
'
,
'
ZNO
'
,
'
ZO3
'
,
// additional ion names
'
OHX
'
]);
export
type
SecondaryStructureType
=
BitFlags
<
SecondaryStructureType
.
Flag
>
export
type
SecondaryStructureType
=
BitFlags
<
SecondaryStructureType
.
Flag
>
export
namespace
SecondaryStructureType
{
export
namespace
SecondaryStructureType
{
export
const
is
:
(
ss
:
SecondaryStructureType
,
f
:
Flag
)
=>
boolean
=
BitFlags
.
has
;
export
const
is
:
(
ss
:
SecondaryStructureType
,
f
:
Flag
)
=>
boolean
=
BitFlags
.
has
;
...
...
This diff is collapsed.
Click to expand it.
src/mol-model/structure/model/types/ions.ts
0 → 100644
+
9
−
0
View file @
88cd6394
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* Code-generated ion names params file. Names extracted from CCD components.
*
* @author molstar/chem-comp-dict/create-table cli
*/
export
const
IonNames
=
new
Set
([
'
118
'
,
'
119
'
,
'
543
'
,
'
1AL
'
,
'
1CU
'
,
'
2FK
'
,
'
2HP
'
,
'
2OF
'
,
'
3CO
'
,
'
3MT
'
,
'
3NI
'
,
'
3OF
'
,
'
3P8
'
,
'
4MO
'
,
'
4PU
'
,
'
4TI
'
,
'
6MO
'
,
'
ACT
'
,
'
AG
'
,
'
AL
'
,
'
ALF
'
,
'
AM
'
,
'
ATH
'
,
'
AU
'
,
'
AU3
'
,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A
'
,
'
OC1
'
,
'
OC2
'
,
'
OC3
'
,
'
OC4
'
,
'
OC5
'
,
'
OC6
'
,
'
OC7
'
,
'
OC8
'
,
'
OCL
'
,
'
OCM
'
,
'
OCN
'
,
'
OCO
'
,
'
OF1
'
,
'
OF2
'
,
'
OF3
'
,
'
OH
'
,
'
OS
'
,
'
OS4
'
,
'
OXL
'
,
'
PB
'
,
'
PBM
'
,
'
PD
'
,
'
PDV
'
,
'
PER
'
,
'
PI
'
,
'
PO3
'
,
'
PO4
'
,
'
PR
'
,
'
PT
'
,
'
PT4
'
,
'
PTN
'
,
'
RB
'
,
'
RH3
'
,
'
RHD
'
,
'
RU
'
,
'
SB
'
,
'
SCN
'
,
'
SE4
'
,
'
SEK
'
,
'
SM
'
,
'
SMO
'
,
'
SO3
'
,
'
SO4
'
,
'
SR
'
,
'
T1A
'
,
'
TB
'
,
'
TBA
'
,
'
TCN
'
,
'
TEA
'
,
'
TH
'
,
'
THE
'
,
'
TL
'
,
'
TMA
'
,
'
TRA
'
,
'
UNX
'
,
'
V
'
,
'
VN3
'
,
'
VO4
'
,
'
W
'
,
'
WO5
'
,
'
Y1
'
,
'
YB
'
,
'
YB2
'
,
'
YH
'
,
'
YT3
'
,
'
ZCM
'
,
'
ZN
'
,
'
ZN2
'
,
'
ZN3
'
,
'
ZNO
'
,
'
ZO3
'
,
'
ZR
'
]);
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