schrodinger.ui.sequencealignment.utils module

schrodinger.ui.sequencealignment.utils.colorGradientBlueWhiteRed(value)[source]

Return an RGB color triple using blue - white - red gradient for a given value. The value is clamped to a [-1..1] range.

Parameters

value (float) – numerical value

Return type

(int int int)

Returns

RGB color triple

schrodinger.ui.sequencealignment.utils.colorGradientGreenRed(value)[source]

Return an RGB color triple using green - red gradient for a given value. The value is clamped to a [-1..1] range.

Parameters

value (float) – numerical value

Return type

(int int int)

Returns

RGB color triple

schrodinger.ui.sequencealignment.utils.matrixValue(matrix, first, second)[source]

Return a similarity matrix vaule for a specified pair of residues.

schrodinger.ui.sequencealignment.utils.print_error(message)[source]