Reference
A python package for handling and generating OBO.
Functions
|
Build an ontology from parts. |
|
Create a CURIE for an "unqualified" reference. |
|
Download a file if it doesn't exist. |
|
Get the OBO graph from a path. |
|
Get all the terms from a OBO graph. |
|
Get alternative id to primary id mapping. |
|
Get all the ancestors (parents) of the term as CURIEs. |
|
Get all the descendants (children) of the term as CURIEs. |
|
Get the definition for an entity. |
|
Get all the descendants (children) of the term as CURIEs. |
|
Get a list of edge triples. |
|
Get a dataframe of edges triples. |
|
Extract a single property for each term. |
|
Extract a single property for each term as a dictionary. |
|
Extract multiple properties for each term as a dictionary. |
|
Get all the given relation. |
|
Get xrefs to a given target. |
|
Get the relation graph. |
|
Get graph machine learning embeddings. |
|
Get a grounder for the given prefix(es). |
|
Get hierarchy of parents as a directed graph. |
|
Get a mapping of descriptions. |
|
Get the OBO file and output a synonym dictionary. |
|
Get an identifier to name mapping for the OBO file. |
|
Get an identifier to species mapping. |
|
Get the OBO file and output a synonym dictionary. |
|
Get alternate identifiers. |
|
Get the set of identifiers for this prefix. |
|
Get literal mappings. |
|
Get a literal mappings dataframe. |
|
Get a subset of literal mappings under the given ancestors. |
|
Get a list of literal property triples. |
|
Get a dataframe of literal property quads. |
|
Get semantic mappings from a source as an SSSOM dataframe. |
|
Get metadata for the ontology. |
|
Get the name for an entity. |
|
Get the name for a CURIE, if possible. |
|
Get a name to identifier mapping for the OBO file. |
|
Get a list of object property triples. |
|
Get a dataframe of object property triples. |
|
Get the set of obsolete local unique identifiers. |
|
Get the OBO for a given graph. |
|
Get the primary curie for an entity. |
|
Get the primary identifier for an entity. |
|
Get the primary reference for an entity. |
|
Extract a set of properties for the given entity. |
|
Extract properties. |
|
Extract a single property for the given entity. |
|
Get the set of identifiers for this prefix. |
|
Get the target identifier corresponding to the given relationship from the source prefix/identifier pair. |
|
Get relations from identifiers in the source prefix to target prefix with the given relation. |
|
Get all relations from the OBO. |
|
Iterate over entities in a given ontology via |
|
Get an entity linker for usage with |
|
Get a lexical index for usage with |
|
Get metadata for a resource. |
|
Get semantic mappings. |
|
Get the species. |
|
Get an SSSOM dataframe, replaced by |
|
Get the subhierarchy for a given node. |
|
Get the synonyms for an entity. |
|
Get a text embedding for an entity, or return none if no text is available. |
|
Get the pairwise similarity. |
|
Get embeddings for all entities in the resource. |
|
Get an identifier to name mapping for the typedefs in an OBO file. |
|
Get the PyOBO version string, including a git hash. |
|
Get the xref with the new prefix if a direct path exists. |
|
Get xrefs to a given target. |
|
Get all xrefs. |
|
Normalize a string given the prefix's labels and synonyms. |
|
Check that the first identifier has the second as an ancestor. |
|
Check if there's a plugin for converting the prefix. |
|
Check if the refeference is a descendant of the ancestor. |
Get all modules in the PyOBO sources. |
|
|
Get a converted PyOBO source. |
Classes
|
A tuple representing a predicate-object pair. |
|
An OBO document. |
alias of |
|
|
A synonym with optional specificity and references. |
|
A type definition for synonyms in OBO. |
|
A term in OBO. |
|
A type definition in OBO. |
Class Inheritance Diagram
digraph inheritance451d83a020 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "Annotation" [URL="api/pyobo.Annotation.html#pyobo.Annotation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A tuple representing a predicate-object pair."]; "BaseModel" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="!!! abstract \"Usage Documentation\""]; "HasReferencesMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class that can report on the references it contains."]; "ABC" -> "HasReferencesMixin" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NamableReference" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A reference, maybe with a name."]; "Reference" -> "NamableReference" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NormalizedNamableReference" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Extends :class:`curies.NamableReference` to normalize the prefix against the Bioregistry."]; "NormalizedReference" -> "NormalizedNamableReference" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NamableReference" -> "NormalizedNamableReference" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NormalizedReference" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Extends :class:`curies.Reference` to normalize the prefix against the Bioregistry."]; "Reference" -> "NormalizedReference" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Obo" [URL="api/pyobo.Obo.html#pyobo.Obo",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An OBO document."]; "Reference" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A reference to an entity in a given identifier space."]; "BaseModel" -> "Reference" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Referenced" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class that contains a reference."]; "Stanza" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A high-level class for stanzas."]; "Referenced" -> "Stanza" [arrowsize=0.5,style="setlinewidth(0.5)"]; "HasReferencesMixin" -> "Stanza" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Synonym" [URL="api/pyobo.Synonym.html#pyobo.Synonym",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A synonym with optional specificity and references."]; "HasReferencesMixin" -> "Synonym" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SynonymTypeDef" [URL="api/pyobo.SynonymTypeDef.html#pyobo.SynonymTypeDef",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A type definition for synonyms in OBO."]; "Referenced" -> "SynonymTypeDef" [arrowsize=0.5,style="setlinewidth(0.5)"]; "HasReferencesMixin" -> "SynonymTypeDef" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Term" [URL="api/pyobo.Term.html#pyobo.Term",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A term in OBO."]; "Stanza" -> "Term" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TypeDef" [URL="api/pyobo.TypeDef.html#pyobo.TypeDef",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A type definition in OBO."]; "Stanza" -> "TypeDef" [arrowsize=0.5,style="setlinewidth(0.5)"]; }Constants for PyOBO.
Functions
|
Determine whether caching should be done based on generic keyword arguments. |
|
Determine whether caching should be forced based on generic keyword arguments. |
|
Determine whether caching should be done based on generic keyword arguments. |
|
Get metadata for a resource. |
Classes
Keyword arguments for database CLI functions. |
|
Represents the optional keyword arguments passed to |
|
Represents arguments needed when iterating over all ontologies. |
|
|
A format and path tuple. |
Keyword arguments for database CLI functions. |