torchcell.knowledge_graphs.incremental_import.discover_csv_groups

discover_csv_groups(out_dir: Path) → list[CsvGroup][source]

Group a BioCypher output directory’s files by label, sorted by label.

A header with a :ID column is a node file; one with :START_ID is an edge file. A header with no part files is an error (BioCypher never writes one without the other), as is a part file with no header.