SBColorSchemePerSecondaryStructureType#

This class describes a color scheme based on the secondary structure (alpha-helices, beta-sheets, and loops).

Please refer to samson.SBNodeColorScheme.

class samson.SBColorSchemePerSecondaryStructureType(*args, **kwargs)#

Bases: SBColorSchemePerAttribute_SecondaryStructureType

This class describes a color scheme based on the secondary structure (alpha-helices, beta-sheets, and loops).

Overloaded function.

  1. __init__(self: samson.SBColorSchemePerSecondaryStructureType) -> None

  2. __init__(self: samson.SBColorSchemePerSecondaryStructureType, nodeIndexer: samson.SBNodeIndexer, colorPalette: samson.SBPalette = None) -> None

Constructs color scheme for nodeIndexer with the given colorPalette.

The colorization is based on the standard elements of secondary structure: alpha-helix, beta-sheet, loop.

Parameters:
  • nodeIndexer (samson.SBNodeIndexer) – A indexer of nodes to which the color scheme is applied

  • colorPalette (samson.SBPalette, default=None) –

    A color palette.

    If None, then the default color palette associated with this color scheme will be used.