scirpy.io.from_dandelion¶
-
scirpy.io.
from_dandelion
(dandelion, transfer=False)¶ Import data from Dandelion ([SRB+21]).
Note
- Reading data into Scirpy has the following constraints:
Each cell can have up to four productive chains chains (Dual IR): two VJ and two VDJ chains.
Excess chains are ignored (those with lowest read count/UMI count) and cells flagged as Multichain-cell.
Non-productive chains are ignored.
Chain loci must be valid IGMT locus names.
Excess chains, non-productive chains, or chains with invalid loci are serialized to JSON and stored in the
extra_chains
column. They are not used by scirpy except when exporting theAnnData
object to AIRR format.
For more information, see Immune receptor (IR) model.
- Parameters
- dandelion
a
dandelion.Dandelion
instance- transfer
Whether to execute
dandelion.tl.transfer
to transfer all data to theanndata.AnnData
instance.
- Return type
- Returns
A
AnnData
instance with AIRR information stored inobs
.