Skip to content
Snippets Groups Projects
Commit 398ec7f1 authored by Gabriel Studer's avatar Gabriel Studer Committed by Marco Biasini
Browse files

fix naccess binding when chain name is empty

parent 96d67a54
Branches
Tags
No related merge requests found
......@@ -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
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment