Skip to content

Commit

Permalink
Update _io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Feb 9, 2021
1 parent 6f9ff87 commit 9e0fa12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scirpy/io/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,12 @@ def read_bracer(path: Union[str, Path]) -> AnnData:

return from_ir_objs(bcr_cells.values())

def read_dandelion(Dandelion):
def read_dandelion(Dandelion, import_all = False):
try:
import dandelion as ddl
except:
raise ImportError('Please install dandelion: pip install sc-dandelion.')
return ddl.Dandelion(read_airr(Dandelion.data))
adata = read_airr(Dandelion.data)
if import_all:
ddl.tl.transfer(adata, Dandelion) # need to make a version that is not so verbose?
return adata

0 comments on commit 9e0fa12

Please sign in to comment.