scglue.graph.check_graph

scglue.graph.check_graph(graph, adatas, cov='error', attr='error', loop='error', sym='error')[源代码]

Check if a graph is a valid guidance graph

参数:
  • graph (Graph) – Graph to be checked

  • adatas (typing.Iterable[AnnData]) – AnnData objects where graph nodes are variables

  • cov (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”}

返回类型:

None