PEATDB/Base.py
def addProperty(self,protein_name,category,this_dict):
        """Add the properties in dict to the information for protein_name.
        category is the key/name that the info will be associated with"""

        if self.isknownProtein(protein_name):
            if type(this_dict) is type({}):
                self.data[protein_name][category]=this_dict.copy()
            else:
                self.data[protein_name][category]=this_dict
            
            return 1
        return None
Add the properties in dict to the information for protein_name.
        category is the key/name that the info will be associated with
Add the properties in dict to the information for protein_name.
category is the key/name that the info will be associated with
Add the properties in dict to the information for protein_name . category is the key / name that the info will be associated with
def addProperty(self,protein_name,category,this_dict):
        if self.isknownProtein(protein_name):
            if type(this_dict) is type({}):
                self.data[protein_name][category]=this_dict.copy()
            else:
                self.data[protein_name][category]=this_dict
            return 1
        return None
def addProperty ( self , protein_name , category , this_dict ) : if self . isknownProtein ( protein_name ) : if type ( this_dict ) is type ( { } ) : self . data [ protein_name ] [ category ] = this_dict . copy ( ) else : self . data [ protein_name ] [ category ] = this_dict return 1 return None
Add the properties in dict to the information for protein_name.
Add the properties in dict to the information for protein_name .
"""Add the properties in dict to the information for protein_name.
        category is the key/name that the info will be associated with"""
self
protein_name
category
this_dict