| | |
- GraphNodeAttribute.GraphNodeAttribute
-
- PianaGraphNodeAttribute
class PianaGraphNodeAttribute(GraphNodeAttribute.GraphNodeAttribute) |
| |
Class that implements attributes for Piana Nodes: accessing node values, setting values, ... |
| |
Methods defined here:
- __deepcopy__(self, memo)
- __getnewargs__(self)
- __getstate__(self)
- __init__(self, proteinPiana_value, piana_access=None, mem_mode='onDemand')
- "proteinPiana_value" is the proteinPiana of this node
"piana_access" is a PianaDBaccess object used to access the database
"mem_mode" can be:
--> onDemand: values are retrieved from DB only when they are needed
--> inMemory: values are retrieved from DB at initilisation
- __setstate__(self, dict)
- get_associated_proteinPianas(self)
- get_descriptions(self)
- returns the list of descriptions for this node
- get_dic_cell_location(self)
- Returns a dictionary {location:None, location:None, ...} with the cellular locations for this node
- get_dic_taxonomies(self)
- Returns a dictionary {tax:None, tax:None, ...} with the taxonomies for this node
- get_expression(self)
- returns the list of descriptions for this node
- get_fitness_scores(self)
- returns the list of user keywords that appear in the name, description or function of this protein
- get_functions(self)
- returns the list of functions for this node
- get_isoelectric_point(self)
- Returns the molecular weight of the protein
- get_keywords_appearing(self)
- returns the list of user keywords that appear in the name, description or function of this protein
- get_molecular_weight(self)
- Returns the molecular weight of the protein from the database
- get_proteinPiana(self)
- merge_attribute(self, attribute_object, ignore_ids=0)
- merges existing attribute with atribute_object passed as argument
certain characteristics of the node will only be merged in ignore_ids is 1,
since we are interested in having those characteristics filled
only when we are unifying the nodes (ie. the operation by which PIANA
decides which name will it use for the protein)
Methods inherited from GraphNodeAttribute.GraphNodeAttribute:
- __eq__(self, other)
- When defining new Attribute classes, the equality operator MUST be overridden.
Otherwise, adding further attributes to existing nodes in the graph may cause
duplicated attributes.
| |