genome_spy.Scale

class genome_spy.Scale(align=Undefined, assembly=Undefined, base=Undefined, bins=Undefined, clamp=Undefined, constant=Undefined, domain=Undefined, domainMax=Undefined, domainMid=Undefined, domainMin=Undefined, domainTransition=Undefined, exponent=Undefined, interpolate=Undefined, name=Undefined, nice=Undefined, numberingOffset=Undefined, padding=Undefined, paddingInner=Undefined, paddingOuter=Undefined, range=Undefined, reverse=Undefined, round=Undefined, scheme=Undefined, type=Undefined, zero=Undefined, zoom=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for Scale.

Methods

align(value)

Return a copy with align updated.

assembly(value)

Return a copy with assembly updated.

base(value)

Return a copy with base updated.

bins(value)

Return a copy with bins updated.

clamp(value)

Return a copy with clamp updated.

constant(value)

Return a copy with constant updated.

copy(*[, deep])

Return a copy with optional keyword updates.

domain(value)

Return a copy with domain updated.

domainMax(value)

Return a copy with domainMax updated.

domainMid(value)

Return a copy with domainMid updated.

domainMin(value)

Return a copy with domainMin updated.

domainTransition(value)

Return a copy with domainTransition updated.

exponent(value)

Return a copy with exponent updated.

interpolate(value)

Return a copy with interpolate updated.

name(value)

Return a copy with name updated.

nice(value)

Return a copy with nice updated.

numberingOffset(value)

Return a copy with numberingOffset updated.

padding(value)

Return a copy with padding updated.

paddingInner(value)

Return a copy with paddingInner updated.

paddingOuter(value)

Return a copy with paddingOuter updated.

range(value)

Return a copy with range updated.

resolve_references()

Return this class schema with referenced properties merged in.

reverse(value)

Return a copy with reverse updated.

round(value)

Return a copy with round updated.

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

Return a copy with a SchemeParams scheme.

to_dict(*[, validate])

Serialize this schema wrapper to a JSON-compatible dictionary.

to_json(*[, validate])

Serialize this schema wrapper to formatted JSON.

type(value)

Return a copy with type updated.

validate(instance)

Validate an instance against this wrapper's schema.

zero(value)

Return a copy with zero updated.

zoom([value, extent])

Return a copy with a ZoomParams zoom.

align(value)View on GitHub

Return a copy with align updated.

assembly(value)View on GitHub

Return a copy with assembly updated.

base(value)View on GitHub

Return a copy with base updated.

bins(value)View on GitHub

Return a copy with bins updated.

clamp(value)View on GitHub

Return a copy with clamp updated.

constant(value)View on GitHub

Return a copy with constant updated.

domain(value)View on GitHub

Return a copy with domain updated.

domainMax(value)View on GitHub

Return a copy with domainMax updated.

domainMid(value)View on GitHub

Return a copy with domainMid updated.

domainMin(value)View on GitHub

Return a copy with domainMin updated.

domainTransition(value)View on GitHub

Return a copy with domainTransition updated.

exponent(value)View on GitHub

Return a copy with exponent updated.

interpolate(value)View on GitHub

Return a copy with interpolate updated.

name(value)View on GitHub

Return a copy with name updated.

nice(value)View on GitHub

Return a copy with nice updated.

numberingOffset(value)View on GitHub

Return a copy with numberingOffset updated.

padding(value)View on GitHub

Return a copy with padding updated.

paddingInner(value)View on GitHub

Return a copy with paddingInner updated.

paddingOuter(value)View on GitHub

Return a copy with paddingOuter updated.

range(value)View on GitHub

Return a copy with range updated.

reverse(value)View on GitHub

Return a copy with reverse updated.

round(value)View on GitHub

Return a copy with round updated.

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

Return a copy with a SchemeParams scheme.

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.

type(value)View on GitHub

Return a copy with type updated.

zero(value)View on GitHub

Return a copy with zero updated.

zoom(value=Undefined, /, *, extent=Undefined)View on GitHub

Return a copy with a ZoomParams zoom.

Parameters:

extent (ScalarDomain_T | Sequence[ChromosomalLocus | dict[str, Any]] | Literal['data'] | Literal['unbounded']) – The boundaries that limit zoom and pan interactions. A domain array sets explicit boundaries. "data" derives the boundaries from the data that contributes to the scale domain. For index and quantitative scales, "unbounded" allows zooming and panning without fixed boundaries. Locus scales do not support unbounded zoom. With an unbounded extent, the initial scale domain is used as the reference for the zoomLevel expression parameter. __Default value:__ The initial scale domain, except the whole genome for locus scales.

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.