genome_spy.SequenceParams

class genome_spy.SequenceParams(as_=Undefined, start=Undefined, step=Undefined, stop=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for SequenceParams.

Methods

as_([value, expr])

Return a copy with as updated.

copy(*[, deep])

Return a copy with optional keyword updates.

resolve_references()

Return this class schema with referenced properties merged in.

start([value, expr])

Return a copy with a ExprRef start.

step([value, expr])

Return a copy with a ExprRef step.

stop([value, expr])

Return a copy with a ExprRef stop.

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.

as_(value=Undefined, /, *, expr=Undefined)View on GitHub

Return a copy with as updated.

Parameters:

expr (str) – The expression string.

start(value=Undefined, /, *, expr=Undefined)View on GitHub

Return a copy with a ExprRef start.

Parameters:

expr (str) – The expression string.

step(value=Undefined, /, *, expr=Undefined)View on GitHub

Return a copy with a ExprRef step.

Parameters:

expr (str) – The expression string.

stop(value=Undefined, /, *, expr=Undefined)View on GitHub

Return a copy with a ExprRef stop.

Parameters:

expr (str) – The expression string.

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.