torchcell.ontology.print_ontology_structure
- print_ontology_structure(schema_config_path: str = 'biocypher/config/torchcell_schema_config.yaml', full: bool = False, to_disk: str | None = None) None[source]
Print the BioCypher ontology structure from schema config.
- Parameters:
schema_config_path – Path to the schema config YAML file relative to project root
full – If True, show complete ontology; if False, show only schema-relevant parts
to_disk – Optional path to save GraphML file for external visualization tools
Example
>>> from torchcell.ontology import print_ontology_structure >>> # Print focused view of your schema >>> print_ontology_structure() >>> # Print complete ontology >>> print_ontology_structure(full=True) >>> # Export for visualization in Cytoscape/Gephi >>> print_ontology_structure(to_disk="path/to/output")