scirpy.tl.clonotype_network_igraph#
- scirpy.tl.clonotype_network_igraph(adata, basis='clonotype_network', airr_mod='airr')#
Get an
igraphobject representing the clonotype network.Requires running
scirpy.tl.clonotype_network()before, to compute the layout.- Parameters:
adata (
Union[AnnData,MuData,DataHandler]) – AnnData or MuData object that contains AIRR information.basis (default:
'clonotype_network') – Key inadata.obsmwhere the network layout is stored.airr_mod (default:
'airr') – Name of the modality with AIRR information is stored in theMuDataobject. if anAnnDataobject is passed to the function, this parameter is ignored.
- Return type:
tuple[Graph,Layout]- Returns:
- graph
igraph object
- layout
corresponding igraph Layout object.