pypath.internals.annot_formats.AnnotOp§
- class pypath.internals.annot_formats.AnnotOp(annots, op=<method 'union' of 'set' objects>)[source]§
Bases:
AnnotOpBase
Annotation operations consist of list of annotation definitions or names as they can be looked up in the
class_definitions
of theCustomAnnotation
object and an operator to be called on the sets (union, intersection or difference).- __init__()§
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
Attributes
Alias for field number 0
Alias for field number 1
- annots§
Alias for field number 0
- count(value, /)§
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)§
Return first index of value.
Raises ValueError if the value is not present.
- op§
Alias for field number 1