biorat package¶
Submodules¶
biorat.ontology module¶
- biorat.ontology.owl_to_dataframe(owl_location)[source]¶
Extract nodes and their lineages from ontologies as
DataFrame
.Example
from biorat.ontology import ( owl_to_dataframe, ) result_df = owl_to_dataframe( "https://github.com/obophenotype/cell-ontology/releases/download/v2024-09-26/cl.owl" ) print(result_df)
- Parameters:
owl_location (
str
) –Location or the URL of the OWL file.
Supports any argument acceepted by
get_ontology()
.- Returns:
A Pandas DataFrame of the nodes, their labels and lineages.