scglue.graph.check_graph
- scglue.graph.check_graph(graph, adatas, cov='error', attr='error', loop='error', sym='error')[source]
Check if a graph is a valid guidance graph
- Parameters
graph (
Graph
) – Graph to be checkedadatas (
typing.Iterable
[AnnData
]) – AnnData objects where graph nodes are variablescov (
str
) – Action to take if graph nodes does not cover all variables, must be one of {“ignore”, “warn”, “error”}attr (
str
) – Action to take if graph edges does not contain required attributes, must be one of {“ignore”, “warn”, “error”}loop (
str
) – Action to take if graph does not contain self-loops, must be one of {“ignore”, “warn”, “error”}sym (
str
) – Action to take if graph is not symmetric, must be one of {“ignore”, “warn”, “error”}
- Return type