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
a77d9815
Commit
a77d9815
authored
6 years ago
by
Sebastian Bittrich
Browse files
Options
Downloads
Patches
Plain Diff
removes minCaDist criterion
parent
635ed60b
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/utils/secondary-structure.ts
+0
-11
0 additions, 11 deletions
...l/structure/model/properties/utils/secondary-structure.ts
src/tests/browser/render-structure.ts
+1
-1
1 addition, 1 deletion
src/tests/browser/render-structure.ts
with
1 addition
and
12 deletions
src/mol-model/structure/model/properties/utils/secondary-structure.ts
+
0
−
11
View file @
a77d9815
...
...
@@ -216,9 +216,6 @@ namespace DSSPType {
/** max distance between two C-alpha atoms to check for hbond */
const
caMaxDist
=
9.0
;
/** min distance between two C-alpha atoms to check for hbond */
const
caMinDist
=
0.5
;
function
calcAtomicTraceLookup3D
(
hierarchy
:
AtomicHierarchy
,
conformation
:
AtomicConformation
)
{
const
{
x
,
y
,
z
}
=
conformation
;
const
{
moleculeType
,
traceElementIndex
}
=
hierarchy
.
derived
.
residue
...
...
@@ -423,8 +420,6 @@ function calcBackboneHbonds(hierarchy: AtomicHierarchy, conformation: AtomicConf
const
cPosPrev
=
Vec3
.
zero
()
const
oPosPrev
=
Vec3
.
zero
()
// const caMinDistSq = caMinDist * caMinDist
for
(
let
i
=
0
,
il
=
proteinResidues
.
length
;
i
<
il
;
++
i
)
{
const
oPI
=
i
const
oRI
=
proteinResidues
[
i
]
...
...
@@ -446,8 +441,6 @@ function calcBackboneHbonds(hierarchy: AtomicHierarchy, conformation: AtomicConf
const
{
indices
,
count
}
=
lookup3d
.
find
(
caPos
[
0
],
caPos
[
1
],
caPos
[
2
],
caMaxDist
)
for
(
let
j
=
0
;
j
<
count
;
++
j
)
{
// if (squaredDistances[j] < caMinDist * caMinDist) continue
const
nPI
=
indices
[
j
]
// ignore bonds within a residue or to prev or next residue, TODO take chain border into account
...
...
@@ -584,10 +577,6 @@ function calcHbondEnergy(oPos: Vec3, cPos: Vec3, nPos: Vec3, hPos: Vec3) {
const
distCN
=
Vec3
.
distance
(
cPos
,
nPos
)
const
distON
=
Vec3
.
distance
(
oPos
,
nPos
)
if
(
distOH
<
caMinDist
||
distCH
<
caMinDist
||
distCN
<
caMinDist
||
distON
<
caMinDist
)
{
return
hbondEnergyMinimal
}
const
e1
=
Q
/
distOH
-
Q
/
distCH
const
e2
=
Q
/
distCN
-
Q
/
distON
const
e
=
e1
+
e2
...
...
This diff is collapsed.
Click to expand it.
src/tests/browser/render-structure.ts
+
1
−
1
View file @
a77d9815
...
...
@@ -62,7 +62,7 @@ function getCartoonRepr() {
}
async
function
init
()
{
const
cif
=
await
downloadFromPdb
(
'
1acj
'
)
const
cif
=
await
downloadFromPdb
(
'
3j3q
'
)
const
models
=
await
getModels
(
cif
)
console
.
time
(
'
computeModelDSSP
'
)
const
secondaryStructure
=
computeModelDSSP
(
models
[
0
].
atomicHierarchy
,
...
...
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