genome_spy.SelectionPredicateDefinition¶
- class genome_spy.SelectionPredicateDefinition(and_=Undefined, empty=Undefined, not_=Undefined, or_=Undefined, param=Undefined, project=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
SelectionPredicateDefinition.Methods
and_(value)Return a copy with
andupdated.copy(*[, deep])Return a copy with optional keyword updates.
empty(value)Return a copy with
emptyupdated.not_([value, and_, empty, not_, or_, param, ...])Return a copy with a
SelectionPredicateOperandnot.or_(value)Return a copy with
orupdated.param(value)Return a copy with
paramupdated.project([value, x, y])Return a copy with
projectupdated.Return this class schema with referenced properties merged in.
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.
- and_(value)View on GitHub¶
Return a copy with
andupdated.
- empty(value)View on GitHub¶
Return a copy with
emptyupdated.
- not_(value=Undefined, /, *, and_=Undefined, empty=Undefined, not_=Undefined, or_=Undefined, param=Undefined, project=Undefined)View on GitHub¶
Return a copy with a
SelectionPredicateOperandnot.- Parameters:
and_ (Sequence[SelectionPredicateOperand | dict[str, Any]]) – Schema-defined
andproperty.empty (bool) – For selection parameters, the predicate of empty selections returns true by default. Override this behavior, by setting this property
empty: false.not_ (SelectionPredicateOperand | dict[str, Any]) – Schema-defined
notproperty.or_ (Sequence[SelectionPredicateOperand | dict[str, Any]]) – Schema-defined
orproperty.param (str) – Filter using a parameter name.
project (dict[str, Any]) – Bind interval selection components to positional channels of this mark. For example,
{ "x": "x2" }tests the selected x interval against x2 alone. Each selected component must be mapped when this is provided. The target must be an unconditional field encoding of the same data type.
- or_(value)View on GitHub¶
Return a copy with
orupdated.
- param(value)View on GitHub¶
Return a copy with
paramupdated.
- project(value=Undefined, /, *, x=Undefined, y=Undefined)View on GitHub¶
Return a copy with
projectupdated.- Parameters:
x (Literal['x', 'x2']) – Schema-defined
xproperty.y (Literal['y', 'y2']) – Schema-defined
yproperty.
- 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.