genome_spy.IndexedFastaData

class genome_spy.IndexedFastaData(channel=Undefined, debounce=Undefined, debounceDomainChange=Undefined, debounceMode=Undefined, indexUrl=Undefined, type=Undefined, url=Undefined, windowSize=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for IndexedFastaData.

Methods

channel(value)

Return a copy with channel updated.

copy(*[, deep])

Return a copy with optional keyword updates.

debounce([value, expr])

Return a copy with a ExprRef debounce.

debounceDomainChange([value, expr])

Return a copy with a ExprRef debounceDomainChange.

debounceMode(value)

Return a copy with debounceMode updated.

indexUrl([value, expr, template])

Return a copy with indexUrl 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.

type(value)

Return a copy with type updated.

url([value, attach, expr, field, maxValues, ...])

Return a copy with url updated.

validate(instance)

Validate an instance against this wrapper's schema.

windowSize(value)

Return a copy with windowSize updated.

channel(value)View on GitHub

Return a copy with channel updated.

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

Return a copy with a ExprRef debounce.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef debounceDomainChange.

Parameters:

expr (str) – The expression string.

debounceMode(value)View on GitHub

Return a copy with debounceMode updated.

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

Return a copy with indexUrl updated.

Parameters:
  • expr (str) – The expression string.

  • template (str) – URL template for index files. Uses the same values and field placeholder as the url template.

type(value)View on GitHub

Return a copy with type updated.

url(value=Undefined, /, *, attach=Undefined, expr=Undefined, field=Undefined, maxValues=Undefined, onLoadError=Undefined, template=Undefined, values=Undefined)View on GitHub

Return a copy with url updated.

Parameters:
  • attach (bool) – Whether to attach the template value to each loaded datum using field as the datum field name. Disable this when the expanded URL identifies only a file partition and the loaded data already contains the relevant identifiers. __Default value:__ true

  • expr (str) – The expression string.

  • field (FieldName_T) – Field name used as the template placeholder and as the datum field attached to loaded rows.

  • maxValues (float) – Maximum number of distinct resolved values to load. If the limit is exceeded, the source loads no data.

  • onLoadError (Literal['error', 'skip']) – Behavior when loading an expanded URL fails. The default "error" fails the data source. Use "skip" when some expanded URLs are expected to be unavailable, for example when data files for some patients have not been generated yet. __Default value:__ "error"

  • template (str) – URL template. The value from values is substituted for the placeholder named by field, for example {sample}.

  • values (Sequence[Scalar_T] | ExprRef | dict[str, Any]) – Values used for template expansion. Duplicate resolved URLs are loaded once. An ExprRef can reference reactive parameters such as visibleSamples.

windowSize(value)View on GitHub

Return a copy with windowSize 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.