dandelion.base.tools.clone_degree

dandelion.base.tools.clone_degree(vdj, weight=None)[source]

Calculate node degree in BCR/TCR network.

Parameters:
  • vdj (Dandelion) – Dandelionect after tl.generate_network has been run.

  • weight (str | None, optional) – Attribute name for retrieving edge weight in graph. None defaults to ignoring this. See networkx.Graph.degree.

Raises:
  • AttributeError – if graph not found.

  • TypeError – if input is not Dandelion class.

Return type:

Dandelion