dandelion.tools.clone_degree
- dandelion.tools.clone_degree(vdj_data, weight=None)[source]
Calculate node degree in BCR/TCR network.
- Parameters:
vdj_data (Dandelion) – Dandelion object 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: