scirpy.io.from_dandelion#
- scirpy.io.from_dandelion(dandelion, transfer=False, **kwargs)#
Import data from Dandelion ([SRB+21]).
Internally calls
scirpy.io.read_airr()
.Note
Since scirpy v0.13, there are no restrictions on the AIRR data that can be stored in the scirpy data structure, except that each receptor chain needs to be associated with a cell.
The scirpy Immune receptor (IR) model is now applied in later step using the
index_chains()
function.For more information, see Storing AIRR rearrangement data in AnnData.
- Parameters:
dandelion – a
dandelion.Dandelion
instancetransfer (
bool
(default:False
)) – Whether to executedandelion.tl.transfer
to transfer all data to theanndata.AnnData
instance.**kwargs – Additional arguments passed to
scirpy.io.read_airr()
.
- Return type:
- Returns:
AnnData object with AIRR data in
obsm["airr"]
for each cell. For more details see Storing AIRR rearrangement data in AnnData.