AlloViz.AlloViz.Elements.Nodes._add_element¶
- Nodes._add_element(nv, prot, node, color, size)[source]¶
Add a network element to the representation
Adds a sphere representing a network node to the passed representation, retrieving the coordinates according to the passed residue/node’s name from the passed structure and using the desired color and size.
- Parameters:
- nv
nglview.NGLWidget
A structure representation into which the shapes representing the chosen network elements will be added.
- prot
Universe
Universe of the chosen structure from which to retrieve atom coordinates.
- nodestr
Name of the node, i.e. of the residues as it is in theselected structure.
- colorlist
RGB values of the element’s color.
- sizefloat
Size of the element.
- nv