genome_spy.RangeConfig¶
- class genome_spy.RangeConfig(angle=Undefined, diverging=Undefined, heatmap=Undefined, ramp=Undefined, shape=Undefined, size=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
RangeConfig.Methods
angle(value)Return a copy with
angleupdated.copy(*[, deep])Return a copy with optional keyword updates.
diverging([value, count, extent, name])Return a copy with
divergingupdated.heatmap([value, count, extent, name])Return a copy with
heatmapupdated.ramp([value, count, extent, name])Return a copy with
rampupdated.Return this class schema with referenced properties merged in.
shape(value)Return a copy with
shapeupdated.size(value)Return a copy with
sizeupdated.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
angleupdated.
- diverging(value=Undefined, /, *, count=Undefined, extent=Undefined, name=Undefined)View on GitHub¶
Return a copy with
divergingupdated.- 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
heatmapupdated.- 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
rampupdated.- 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
shapeupdated.
- size(value)View on GitHub¶
Return a copy with
sizeupdated.
- 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.