has_ancestor

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

Check that the first identifier has the second as an ancestor.

Check that go:0008219 ! cell death is an ancestor of go:0006915 ! apoptotic process:: >>> assert has_ancestor(‘go’, ‘0006915’, ‘go’, ‘0008219’)

Return type:

bool