SBColorSchemePerSideChainPolarity#

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

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemePerSideChainPolarity

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

Bases: SBColorSchemePerAttribute_SideChainPolarity

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

Overloaded function.

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

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

Constructs color scheme for nodeIndexer with the given colorPalette.

The colorization is based on the standard side chain polarity: nonpolar, polar, acidic polar, basic polar.

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.