is_descendent

pyobo.is_descendent(prefix, identifier, ancestor_prefix, ancestor_identifier)[source]

Check that the first identifier has the second as a descendent.

Check that go:0070246 ! natural killer cell apoptotic process is a descendant of go:0006915 ! apoptotic process:: >>> assert is_descendent(‘go’, ‘0070246’, ‘go’, ‘0006915’)

Return type:

bool