pypath.core.entity.EntityKey§

class pypath.core.entity.EntityKey(identifier, id_type, entity_type, taxon)§

Bases: tuple

__init__()§

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

entity_type

Alias for field number 2

id_type

Alias for field number 1

identifier

Alias for field number 0

taxon

Alias for field number 3

count(value, /)§

Return number of occurrences of value.

entity_type§

Alias for field number 2

id_type§

Alias for field number 1

identifier§

Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)§

Return first index of value.

Raises ValueError if the value is not present.

taxon§

Alias for field number 3