Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
398ec7f1
Commit
398ec7f1
authored
14 years ago
by
Gabriel Studer
Committed by
Marco Biasini
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix naccess binding when chain name is empty
parent
96d67a54
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/bindings/pymod/naccess.py
+5
-2
5 additions, 2 deletions
modules/bindings/pymod/naccess.py
with
5 additions
and
2 deletions
modules/bindings/pymod/naccess.py
+
5
−
2
View file @
398ec7f1
...
...
@@ -75,7 +75,7 @@ def _ParseAsaFile(entity, file, asa_atom):
res_number
=
l
[
22
:
27
]
asa
=
l
[
54
:
63
]
atom_name
=
atom_name
.
strip
()
chain_id
=
chain_id
.
strip
()
chain_id
=
chain_id
res_number
=
res_number
.
strip
()
asa
=
asa
.
strip
()
#print "res_number:", res_number
...
...
@@ -88,7 +88,10 @@ def _ParseAsaFile(entity, file, asa_atom):
resNum
=
mol
.
ResNum
(
int
(
di
[
"
num
"
]),
di
[
"
ins
"
])
#print res_number, resNum.num, resNum.ins
a
=
entity
.
FindAtom
(
chain_id
,
resNum
,
atom_name
)
a
.
SetFloatProp
(
asa_atom
,
float
(
asa
))
if
(
a
.
IsValid
()):
a
.
SetFloatProp
(
asa_atom
,
float
(
asa
))
else
:
print
chain_id
,
resNum
,
atom_name
## \brief Reads Area file (.rsa) and attach asa (absolute + relative) per residue to an entitiy
#
...
...
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