scirpy.tl.clonotype_network_igraph

scirpy.tl.clonotype_network_igraph(adata, basis='clonotype_network', airr_mod='airr')

Get an igraph object representing the clonotype network.

Requires running scirpy.tl.clonotype_network() before, to compute the layout.

Parameters
adata : AnnData | MuData | DataHandlerUnion[AnnData, MuData, DataHandler]

AnnData or MuData object that contains AIRR information.

basis

Key in adata.obsm where the network layout is stored.

airr_mod

Name of the modality with AIRR information is stored in the MuData object. if an AnnData object is passed to the function, this parameter is ignored.

Return type

Tuple[Graph, Layout]

Returns

graphGraph

igraph object

layoutLayout

corresponding igraph Layout object.