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 (
Union
[AnnData
,MuData
,DataHandler
]) – AnnData or MuData object that contains AIRR information.basis (default:
'clonotype_network'
) – Key inadata.obsm
where the network layout is stored.airr_mod (default:
'airr'
) – Name of the modality with AIRR information is stored in theMuData
object. if anAnnData
object is passed to the function, this parameter is ignored.
- Return type:
tuple
[Graph
,Layout
]- Returns:
- graph
igraph object
- layout
corresponding igraph Layout object.