ColorSchemePerSideChainPolarity¶

Please refer to samson.DataModel.DataGraph.ColorScheme.

See also

SAMSON API: sbdcolorschemepersidechainpolarity

class samson.DataModel.Color.ColorSchemePerSideChainPolarity(*args, **kwargs)¶

Bases: samson.DataModel.Color.ColorSchemePerAttribute_SideChainPolarity

This class describes a per side chain polarity color scheme for residues.

Overloaded function.

  1. __init__(self: samson.DataModel.Color.ColorSchemePerSideChainPolarity) -> None
  2. __init__(self: samson.DataModel.Color.ColorSchemePerSideChainPolarity, nodeIndexer: samson.DataModel.DataGraph.NodeIndexer, colorPalette: samson.DataModel.Color.ColorPalette = <samson.DataModel.Color.ColorPaletteSequentialHCL object at 0x7f610658dd50>) -> None

Constructs color scheme for nodeIndexer.

getColor(self: samson.DataModel.DataGraph.ColorScheme, node: samson.DataModel.DataGraph.Node = None) → List[float]¶

Returns a color given a node

static getDefaultColorPalette() → samson.DataModel.Color.ColorPalette¶

Returns a pointer to the default color palette for this color scheme

isSerializable¶

Returns true when the class is serializable