kg_bacdive.merge_utils package

Submodules

kg_bacdive.merge_utils.merge_kg module

Merging module.

kg_bacdive.merge_utils.merge_kg.load_and_merge(yaml_file, processes=1)

Load and merge sources defined in the config YAML.

Parameters:
  • yaml_file (str) – A string pointing to a KGX compatible config YAML.

  • processes (int) – Number of processes to use.

Return type:

MultiDiGraph

Returns:

networkx.MultiDiGraph: The merged graph.

kg_bacdive.merge_utils.merge_kg.parse_load_config(yaml_file)

Parse load config YAML.

Parameters:

yaml_file (str) – A string pointing to a KGX compatible config YAML.

Return type:

Dict

Returns:

Dict: The config as a dictionary.

Module contents

Merge module.

kg_bacdive.merge_utils.load_and_merge(yaml_file, processes=1)

Load and merge sources defined in the config YAML.

Parameters:
  • yaml_file (str) – A string pointing to a KGX compatible config YAML.

  • processes (int) – Number of processes to use.

Return type:

MultiDiGraph

Returns:

networkx.MultiDiGraph: The merged graph.

kg_bacdive.merge_utils.parse_load_config(yaml_file)

Parse load config YAML.

Parameters:

yaml_file (str) – A string pointing to a KGX compatible config YAML.

Return type:

Dict

Returns:

Dict: The config as a dictionary.