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
- 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 IMGT locus names.
Excess chains, non-productive chains, chains without a CDR3 sequence, or chains with invalid loci are serialized to JSON and stored in the
extra_chainscolumn. They are not used by scirpy except when exporting theAnnDataobject to AIRR format.
For more information, see Immune receptor (IR) model.
- Parameters
- dandelion
a
dandelion.Dandelioninstance- transfer :
bool(default:False) Whether to execute
dandelion.tl.transferto transfer all data to theanndata.AnnDatainstance.- **kwargs
Additional arguments passed to
scirpy.io.read_airr().
- Return type
- Returns
A
AnnDatainstance with AIRR information stored inobs.