genome_spy.Encoding¶
- class genome_spy.Encoding(angle=Undefined, color=Undefined, direction=Undefined, dx=Undefined, dy=Undefined, facetIndex=Undefined, fill=Undefined, fillOpacity=Undefined, key=Undefined, opacity=Undefined, order=Undefined, sample=Undefined, search=Undefined, semanticScore=Undefined, shape=Undefined, size=Undefined, stroke=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, text=Undefined, tooltip=Undefined, uniqueId=Undefined, x=Undefined, x2=Undefined, x2Offset=Undefined, xOffset=Undefined, y=Undefined, y2=Undefined, y2Offset=Undefined, yOffset=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
Encoding.Methods
angle([value, band, condition, datum, ...])Return a copy with
angleupdated.color([value, band, condition, datum, ...])Return a copy with
colorupdated.copy(*[, deep])Return a copy with optional keyword updates.
direction([value, band, datum, description, ...])Return a copy with a
DirectionDefdirection.dx([value, band, condition, datum, ...])Return a copy with
dxupdated.dy([value, band, condition, datum, ...])Return a copy with
dyupdated.facetIndex([value, description, field, title])Return a copy with a
FieldDefWithoutScalefacetIndex.fill([value, band, condition, datum, ...])Return a copy with
fillupdated.fillOpacity([value, band, condition, datum, ...])Return a copy with
fillOpacityupdated.key([value, description, field, title])Return a copy with
keyupdated.opacity([value, band, condition, datum, ...])Return a copy with
opacityupdated.order([value, condition])Return a copy with a
OrderDeforder.Return this class schema with referenced properties merged in.
sample([value, description, field, title])Return a copy with a
FieldDefWithoutScalesample.search([value, description, field, title])Return a copy with
searchupdated.semanticScore([value, description, field, ...])Return a copy with
semanticScoreupdated.shape([value, band, condition, datum, ...])Return a copy with
shapeupdated.size([value, band, condition, datum, ...])Return a copy with
sizeupdated.stroke([value, band, condition, datum, ...])Return a copy with
strokeupdated.strokeOpacity([value, band, condition, ...])Return a copy with
strokeOpacityupdated.strokeWidth([value, band, condition, datum, ...])Return a copy with
strokeWidthupdated.text([value, band, datum, description, ...])Return a copy with
textupdated.to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
tooltip([value, band, datum, description, ...])Return a copy with
tooltipupdated.uniqueId([value, description, field, title])Return a copy with a
FieldDefWithoutScaleuniqueId.validate(instance)Validate an instance against this wrapper's schema.
x([value, axis, band, buildIndex, chrom, ...])Return a copy with
xupdated.x2([value, axis, band, chrom, datum, ...])Return a copy with a
Position2Defx2.x2Offset([value, band, datum, description, ...])Return a copy with a
SecondaryOffsetDefx2Offset.xOffset([value, band, condition, datum, ...])Return a copy with
xOffsetupdated.y([value, axis, band, chrom, datum, ...])Return a copy with
yupdated.y2([value, axis, band, chrom, datum, ...])Return a copy with a
Position2Defy2.y2Offset([value, band, datum, description, ...])Return a copy with a
SecondaryOffsetDefy2Offset.yOffset([value, band, condition, datum, ...])Return a copy with
yOffsetupdated.- angle(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
angleupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- color(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
colorupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef | Sequence[ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- direction(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, field=Undefined, format=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with a
DirectionDefdirection.- Parameters:
band (float) – Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to
0, and at the middle of the band if set to0.5.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – A description of the encoded value. Can be used for documentation and to explain the meaning of the channel mapping.
domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falsefield (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.resolutionChannel (ChannelWithScale_T) – An alternative channel for scale resolution. This is mainly for internal use and allows using
colorchannel to resolvefillandstrokechannels under certain circumstances.scale (Scale | ScaleKwds | None) – An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If
null, the scale will be disabled and the data value will be directly encoded. __Default value:__ If undefined, default scale properties are applied. __See also:__scaledocumentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- dx(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
dxupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – Schema-defined
exprproperty.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- dy(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
dyupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – Schema-defined
exprproperty.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- facetIndex(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined)View on GitHub¶
Return a copy with a
FieldDefWithoutScalefacetIndex.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.
- fill(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
fillupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef | Sequence[ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- fillOpacity(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
fillOpacityupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- key(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined)View on GitHub¶
Return a copy with
keyupdated.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.
- opacity(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
opacityupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- order(value=Undefined, /, *, condition=Undefined)View on GitHub¶
Return a copy with a
OrderDeforder.- Parameters:
condition (OrderCondition | dict[str, Any]) – Selection condition that determines the matching level.
- sample(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined)View on GitHub¶
Return a copy with a
FieldDefWithoutScalesample.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.
- search(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined)View on GitHub¶
Return a copy with
searchupdated.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.
- semanticScore(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
semanticScoreupdated.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- shape(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
shapeupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef | Sequence[ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef] | ConditionalParameterMarkPropFieldDefTypeForShape | ConditionalTestMarkPropFieldDefTypeForShape | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefTypeForShape | ConditionalTestMarkPropExprDefTypeForShape) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (TypeForShape_T | Type_T) – Schema-defined
typeproperty.
- size(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
sizeupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- stroke(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
strokeupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef | Sequence[ConditionalParameterValueDefStringNullExprRef | dict[str, Any] | ConditionalTestValueDefStringNullExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- strokeOpacity(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
strokeOpacityupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- strokeWidth(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
strokeWidthupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- text(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
textupdated.- Parameters:
band (float) – Schema-defined
bandproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – Schema-defined
fieldproperty.format (str) – Schema-defined
formatproperty.resolutionChannel (ChannelWithScale_T) – An alternative channel for scale resolution. This is mainly for internal use and allows using
colorchannel to resolvefillandstrokechannels under certain circumstances.scale (Scale | ScaleKwds | None) – An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If
null, the scale will be disabled and the data value will be directly encoded. __Default value:__ If undefined, default scale properties are applied. __See also:__scaledocumentation.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- tooltip(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
tooltipupdated.- Parameters:
band (float) – Schema-defined
bandproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – Schema-defined
fieldproperty.format (str) – Schema-defined
formatproperty.resolutionChannel (ChannelWithScale_T) – An alternative channel for scale resolution. This is mainly for internal use and allows using
colorchannel to resolvefillandstrokechannels under certain circumstances.scale (Scale | ScaleKwds | None) – An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If
null, the scale will be disabled and the data value will be directly encoded. __Default value:__ If undefined, default scale properties are applied. __See also:__scaledocumentation.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- uniqueId(value=Undefined, /, *, description=Undefined, field=Undefined, title=Undefined)View on GitHub¶
Return a copy with a
FieldDefWithoutScaleuniqueId.- Parameters:
description (str) – A description of the encoded field. Can be used for documentation and to explain the meaning of the channel mapping.
field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.
- x(value=Undefined, /, *, axis=Undefined, band=Undefined, buildIndex=Undefined, chrom=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, offset=Undefined, pos=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
xupdated.- Parameters:
axis (GenomeAxis | GenomeAxisKwds | None) – Schema-defined
axisproperty.band (float) – Schema-defined
bandproperty.buildIndex (bool) – Schema-defined
buildIndexproperty.chrom (FieldName_T) – The field having the chromosome or contig.
datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.offset (float) – An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions. GenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to
1. Default:0pos (FieldName_T) – The field having an intra-chromosomal position.
resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T | Literal['locus']) – Schema-defined
typeproperty.
- x2(value=Undefined, /, *, axis=Undefined, band=Undefined, chrom=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, offset=Undefined, pos=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with a
Position2Defx2.- Parameters:
axis (GenomeAxis | GenomeAxisKwds | None) – An object defining properties of axis’s gridlines, ticks and labels. If
null, the axis for the encoding channel will be removed. __Default value:__ If undefined, default axis properties are applied. __See also:__axisdocumentation.band (float) – Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to
0, and at the middle of the band if set to0.5.chrom (FieldName_T) – The field having the chromosome or contig.
datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – A description of the encoded value. Can be used for documentation and to explain the meaning of the channel mapping.
domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.offset (float) – An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions. GenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to
1. Default:0pos (FieldName_T) – The field having an intra-chromosomal position.
resolutionChannel (ChannelWithScale_T) – An alternative channel for scale resolution. This is mainly for internal use and allows using
colorchannel to resolvefillandstrokechannels under certain circumstances.scale (Scale | ScaleKwds | None) – An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If
null, the scale will be disabled and the data value will be directly encoded. __Default value:__ If undefined, default scale properties are applied. __See also:__scaledocumentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- x2Offset(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with a
SecondaryOffsetDefx2Offset.- Parameters:
band (float) – Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to
0, and at the middle of the band if set to0.5.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – A description of the encoded value. Can be used for documentation and to explain the meaning of the channel mapping.
domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- xOffset(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
xOffsetupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – Schema-defined
exprproperty.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- y(value=Undefined, /, *, axis=Undefined, band=Undefined, chrom=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, offset=Undefined, pos=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
yupdated.- Parameters:
axis (GenomeAxis | GenomeAxisKwds | None) – Schema-defined
axisproperty.band (float) – Schema-defined
bandproperty.chrom (FieldName_T) – The field having the chromosome or contig.
datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.offset (float) – An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions. GenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to
1. Default:0pos (FieldName_T) – The field having an intra-chromosomal position.
resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T | Literal['locus']) – Schema-defined
typeproperty.
- y2(value=Undefined, /, *, axis=Undefined, band=Undefined, chrom=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, offset=Undefined, pos=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with a
Position2Defy2.- Parameters:
axis (GenomeAxis | GenomeAxisKwds | None) – An object defining properties of axis’s gridlines, ticks and labels. If
null, the axis for the encoding channel will be removed. __Default value:__ If undefined, default axis properties are applied. __See also:__axisdocumentation.band (float) – Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to
0, and at the middle of the band if set to0.5.chrom (FieldName_T) – The field having the chromosome or contig.
datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – A description of the encoded value. Can be used for documentation and to explain the meaning of the channel mapping.
domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.offset (float) – An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions. GenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to
1. Default:0pos (FieldName_T) – The field having an intra-chromosomal position.
resolutionChannel (ChannelWithScale_T) – An alternative channel for scale resolution. This is mainly for internal use and allows using
colorchannel to resolvefillandstrokechannels under certain circumstances.scale (Scale | ScaleKwds | None) – An object defining properties of the channel’s scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels. If
null, the scale will be disabled and the data value will be directly encoded. __Default value:__ If undefined, default scale properties are applied. __See also:__scaledocumentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- y2Offset(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with a
SecondaryOffsetDefy2Offset.- Parameters:
band (float) – Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to
0, and at the middle of the band if set to0.5.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – A description of the encoded value. Can be used for documentation and to explain the meaning of the channel mapping.
domainInert (bool) – Whether the field or evaluated expr should be excluded from the scale’s domain. Prefer the view-level
domainInertwhen an entire subtree should be excluded. Default value:falseexpr (str) – An expression. Properties of the data can be accessed through the
datumobject.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.title (str | None) – A title for the field. If
null, the title will be removed.type (Type_T) – Schema-defined
typeproperty.
- yOffset(value=Undefined, /, *, band=Undefined, condition=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, resolutionChannel=Undefined, scale=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
yOffsetupdated.- Parameters:
band (float) – Schema-defined
bandproperty.condition (ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef | Sequence[ConditionalParameterValueDefNumberExprRef | dict[str, Any] | ConditionalTestValueDefNumberExprRef] | ConditionalParameterMarkPropFieldDefType | ConditionalTestMarkPropFieldDefType | ConditionalParameterScaleDatumDef | ConditionalTestScaleDatumDef | ConditionalParameterMarkPropExprDefType | ConditionalTestMarkPropExprDefType) – Schema-defined
conditionproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – A constant value in data domain.
description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.expr (str) – Schema-defined
exprproperty.field (str) – __Required.__ A string defining the name of the field from which to pull a data value. __See also:__
fielddocumentation. __Notes:__ 1) Dots (.) and brackets ([and]) can be used to access nested objects (e.g.,"field": "foo.bar"and"field": "foo['bar']"). If field names contain dots or brackets but are not nested, you can use\to escape dots and brackets (e.g.,"a\.b"and"a\[0\]"). See more details about escaping in the Vega-Lite field documentation.format (str) – When used with the default
"number"format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. - If the format type is"number"(e.g., for quantitative fields), this is D3’s number format pattern. See the Vega-Lite format documentation for more examples.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.title (str | None) – Schema-defined
titleproperty.type (Type_T) – Schema-defined
typeproperty.
- 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.