From e78701ce5d3ece33688319e0f85a51b02dd06769 Mon Sep 17 00:00:00 2001 From: Gregor Sturm Date: Wed, 30 Jun 2021 12:09:03 +0200 Subject: [PATCH] Ensure compatibility with latest dandelion version --- pyproject.toml | 2 +- scirpy/io/_io.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index efede3d32..91e462be5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ 'black' ] dandelion = [ - 'sc-dandelion', + 'sc-dandelion>=0.1.3', 'adjusttext', # see https://github.com/zktuong/dandelion/issues/55 ] doc = [ diff --git a/scirpy/io/_io.py b/scirpy/io/_io.py index ba38fd334..d4e25fae6 100644 --- a/scirpy/io/_io.py +++ b/scirpy/io/_io.py @@ -654,7 +654,6 @@ def to_dandelion(adata: AnnData): "sequence_id": f"{tmp_cell.cell_id}_contig_{i}", } ) - chain["umi_count"] = chain.pop("duplicate_count") contig_dicts[chain["sequence_id"]] = chain data = pd.DataFrame.from_dict(contig_dicts, orient="index")