dandelion.polars.tools.clone_degree
- dandelion.polars.tools.clone_degree(vdj, weight=None)[source]
Calculate node degree in BCR/TCR network.
- Parameters:
vdj (DandelionPolars) – DandelionPolars 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.
- Returns:
Modifies
vdj._metadatain place, adding aclone_degreecolumn.- Return type:
DandelionPolars- Raises:
AttributeError – if graph not found.
TypeError – if input is not DandelionPolars class.