genome_spy.RangeConfig

class genome_spy.RangeConfig(angle=Undefined, diverging=Undefined, heatmap=Undefined, ramp=Undefined, shape=Undefined, size=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for RangeConfig.

Methods

angle(value)

Return a copy with angle updated.

copy(*[, deep])

Return a copy with optional keyword updates.

diverging([value, count, extent, name])

Return a copy with diverging updated.

heatmap([value, count, extent, name])

Return a copy with heatmap updated.

ramp([value, count, extent, name])

Return a copy with ramp updated.

resolve_references()

Return this class schema with referenced properties merged in.

shape(value)

Return a copy with shape updated.

size(value)

Return a copy with size updated.

to_dict(*[, validate])

Serialize this schema wrapper to a JSON-compatible dictionary.

to_json(*[, validate])

Serialize this schema wrapper to formatted JSON.

validate(instance)

Validate an instance against this wrapper's schema.

angle(value)View on GitHub

Return a copy with angle updated.

diverging(value=Undefined, /, *, count=Undefined, extent=Undefined, name=Undefined)View on GitHub

Return a copy with diverging updated.

Parameters:
  • count (float) – The number of colors to use in the scheme. This can be useful for scale types such as "quantize", which use the length of the scale range to determine the number of discrete bins for the scale domain.

  • extent (Sequence[float]) – The extent of the color range to use. For example [0.2, 1] will rescale the color scheme such that color values in the range [0, 0.2) are excluded from the scheme.

  • name (str) – A color scheme name for ordinal scales (e.g., "category10" or "blues"). For the full list of supported schemes, please refer to the Vega Scheme reference.

heatmap(value=Undefined, /, *, count=Undefined, extent=Undefined, name=Undefined)View on GitHub

Return a copy with heatmap updated.

Parameters:
  • count (float) – The number of colors to use in the scheme. This can be useful for scale types such as "quantize", which use the length of the scale range to determine the number of discrete bins for the scale domain.

  • extent (Sequence[float]) – The extent of the color range to use. For example [0.2, 1] will rescale the color scheme such that color values in the range [0, 0.2) are excluded from the scheme.

  • name (str) – A color scheme name for ordinal scales (e.g., "category10" or "blues"). For the full list of supported schemes, please refer to the Vega Scheme reference.

ramp(value=Undefined, /, *, count=Undefined, extent=Undefined, name=Undefined)View on GitHub

Return a copy with ramp updated.

Parameters:
  • count (float) – The number of colors to use in the scheme. This can be useful for scale types such as "quantize", which use the length of the scale range to determine the number of discrete bins for the scale domain.

  • extent (Sequence[float]) – The extent of the color range to use. For example [0.2, 1] will rescale the color scheme such that color values in the range [0, 0.2) are excluded from the scheme.

  • name (str) – A color scheme name for ordinal scales (e.g., "category10" or "blues"). For the full list of supported schemes, please refer to the Vega Scheme reference.

shape(value)View on GitHub

Return a copy with shape updated.

size(value)View on GitHub

Return a copy with size updated.

copy(*, deep=True, **kwds)View on GitHub

Return a copy with optional keyword updates.

classmethod resolve_references()View on GitHub

Return this class schema with referenced properties merged in.

to_dict(*, validate=True)View on GitHub

Serialize this schema wrapper to a JSON-compatible dictionary.

to_json(*, validate=True)View on GitHub

Serialize this schema wrapper to formatted JSON.

classmethod validate(instance)View on GitHub

Validate an instance against this wrapper’s schema.