Skip to content

Commit

Permalink
Adding MRCA example to expression docs (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall authored May 30, 2024
1 parent 55c2709 commit e1d29b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/howtos/use-oak-expression-language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,21 @@ The ``.filter`` operator allows you to provide arbitrary python filters.
NR
^^

The ``.nr`` operator takes a set of terms are returns the non-redundant set of terms
The ``.nr`` operator takes a set of terms and returns the non-redundant set of terms
from that list (parameterized by a predicate or predicates).

MRCA
^^^^

The ``.mrca`` operator takes a set of terms are returns the most recent common ancestors (:term:`MRCA`).
Parameterized by a predicate or predicates.

Example:

.. code-block::
runoak -i sqlite:obo:uberon info .mrca//p=i,p .idfile my_terms.txt
Others
^^^^^^

Expand Down

0 comments on commit e1d29b5

Please sign in to comment.