liana.resource.explode_complexes

liana.resource.explode_complexes#

liana.resource.explode_complexes(resource, SOURCE='ligand', TARGET='receptor')#

Function to explode ligand-receptor complexes

Parameters:
  • resource (DataFrame) – Ligand-receptor resource

  • SOURCE (str (default: 'ligand')) – Name of the source (typically ‘ligand’) column

  • TARGET (str (default: 'receptor')) – Name of the target (typically ‘receptor’) column

Return type:

DataFrame

Returns:

A resource with exploded complexes