Skip to content

graphkb.types

Type annotations used for static type checking in this module

Record

Record: TypedDict = TypedDict('Record', {'@rid': str, '@class': str})

Attributes

  • @rid (str)
  • @class (str)

EmbeddedRecord

EmbeddedRecord: TypedDict = TypedDict('EmbeddedRecord', {'@class': str})

Attributes

  • @class (str)
RecordLink = Union[str, Record]
OntologyLink = Union[str, Ontology]

Position

Position = Union[BasicPosition, CytobandPosition]

CategoryBaseTermMapping

CategoryBaseTermMapping = List[Tuple[str, List[str]]]

class Ontology

inherits Record

Attributes

  • sourceId (str)
  • name (str)
  • source (RecordLink)
  • displayName (str)

class BasicPosition

inherits EmbeddedRecord

Attributes

  • pos (int)

class CytobandPosition

inherits EmbeddedRecord

Attributes

  • arm (str)
  • majorBand (str)
  • minorBand (str)

class Variant

inherits Record

Attributes

class PositionalVariant

inherits Variant

Attributes

class ParsedVariant

inherits TypedDict

Attributes

class Statement

inherits Record

Attributes

Back to top