AlloViz.AlloViz.Elements.Edges._add_element¶
- Edges._add_element(nv, prot, edge, color, size)[source]¶
Add a network element to the representation
Adds a cylinder representing a network edge to the passed representation, retrieving the coordinates according to the participating residues included in the element’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.
- edgestr
Name of the edge: contains the name of the participating residues in the selected structure.
- colorlist
RGB values of the element’s color.
- sizefloat
Size of the element.
- nv