genome_spy.DynamicCallbackData

class genome_spy.DynamicCallbackData(description=Undefined, dynamicCallbackSource=Undefined, format=Undefined, name=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for DynamicCallbackData.

Methods

copy(*[, deep])

Return a copy with optional keyword updates.

description(value)

Return a copy with description updated.

dynamicCallbackSource(value)

Return a copy with dynamicCallbackSource updated.

format([value, columns, delimiter, parse, ...])

Return a copy with format updated.

name(value)

Return a copy with name updated.

resolve_references()

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.

description(value)View on GitHub

Return a copy with description updated.

dynamicCallbackSource(value)View on GitHub

Return a copy with dynamicCallbackSource updated.

format(value=Undefined, /, *, columns=Undefined, delimiter=Undefined, parse=Undefined, property=Undefined, type=Undefined)View on GitHub

Return a copy with format updated.

Parameters:
  • columns (Sequence[str]) – Schema-defined columns property.

  • delimiter (str) – The delimiter between records. The delimiter must be a single character (i.e., a single 16-bit code unit); so, ASCII delimiters are fine, but emoji delimiters are not.

  • parse (Parse | ParseKwds | None) – Schema-defined parse property.

  • property (str) – The JSON property containing the desired data. This parameter can be used when the loaded JSON file may have surrounding structure or meta-data. For example "property": "values.features" is equivalent to retrieving json.values.features from the loaded JSON object.

  • type (Literal['csv', 'tsv'] | Literal['dsv'] | Literal['json'] | Literal['bed'] | Literal['bedpe'] | Literal['wig'] | Literal['vcf'] | str) – Schema-defined type property.

name(value)View on GitHub

Return a copy with name updated.

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.