initial checking for ontology

This commit is contained in:
Marat Valiev 2012-02-08 02:41:03 +00:00
parent dec9058455
commit 34ee83a8a1

View file

@ -0,0 +1,60 @@
'''
Created on Feb 7, 2012
@author: marat
'''
class AtomOntology:
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
pass
@staticmethod
def atomName(mydict):
if mydict.has_key("name"):
name = mydict["name"]
else:
name = None
return name
@staticmethod
def resName(mydict):
if mydict.has_key("resname"):
name = mydict["resname"]
else:
name = None
return name
@staticmethod
def resId(mydict):
if mydict.has_key("resid"):
i = mydict["resid"]
else:
i = None
return i
@staticmethod
def atomId(mydict):
if mydict.has_key("atomid"):
i = mydict["atomid"]
else:
i = None
return i
@staticmethod
def atomCoords(mydict):
if mydict.has_key("coords"):
coords = mydict["coords"]
else:
coords = None
return coords