genome_spy.RulerInitMapping

class genome_spy.RulerInitMapping(x=Undefined, y=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for RulerInitMapping.

Methods

copy(*[, deep])

Return a copy with optional keyword updates.

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.

x([value, chrom, pos])

Return a copy with x updated.

y([value, chrom, pos])

Return a copy with y updated.

x(value=Undefined, /, *, chrom=Undefined, pos=Undefined)View on GitHub

Return a copy with x updated.

Parameters:
  • chrom (str) – The name of the chromosome. For example: "chr1", "CHR1", or "1".

  • pos (float) – The zero-based position inside the chromosome or contig.

y(value=Undefined, /, *, chrom=Undefined, pos=Undefined)View on GitHub

Return a copy with y updated.

Parameters:
  • chrom (str) – The name of the chromosome. For example: "chr1", "CHR1", or "1".

  • pos (float) – The zero-based position inside the chromosome or contig.

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.