graph

Construction and Manipulation of Package/Recipe Graphs

Functions

build(recipes, config[, blacklist, restrict])

Returns the DAG of recipe paths and a dictionary that maps package names to lists of recipe paths to all defined versions of the package.

build_from_recipes(recipes)

filter(dag, packages)

filter_recipe_dag(dag, include, exclude)

Reduces dag to packages in names and their requirements

Documentation

bioconda_utils.graph.build(recipes, config, blacklist=None, restrict=True)[source]

Returns the DAG of recipe paths and a dictionary that maps package names to lists of recipe paths to all defined versions of the package. defined versions.

Parameters
  • recipes (iterable) – An iterable of recipe paths, typically obtained via get_recipes()

  • blacklist (set) – Package names to skip

  • restrict (bool) – If True, then dependencies will be included in the DAG only if they are themselves in recipes. Otherwise, include all dependencies of recipes.

Returns

  • dag (nx.DiGraph) – Directed graph of packages – nodes are package names; edges are dependencies (both run and build dependencies)

  • name2recipe (dict) – Dictionary mapping package names to recipe paths. These recipe path values are lists and contain paths to all defined versions.

bioconda_utils.graph.filter_recipe_dag(dag, include, exclude)[source]

Reduces dag to packages in names and their requirements