From a5ddb506a6f7457e2f41dfa05fb3a20628b47b54 Mon Sep 17 00:00:00 2001 From: rushil-chakra Date: Wed, 17 Apr 2024 16:22:33 -0700 Subject: [PATCH] fixed reference to chromsome column --- muon/_atac/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muon/_atac/tools.py b/muon/_atac/tools.py index a58d0f3..55fdd11 100644 --- a/muon/_atac/tools.py +++ b/muon/_atac/tools.py @@ -853,7 +853,7 @@ def count_fragments_features( f_from = f[start_col] - extend_upstream f_to = f[end_col] + extend_downstream - for fr in fragments.fetch(f.Chromosome, f_from, f_to): + for fr in fragments.fetch(f[chr_col], f_from, f_to): try: ind = adata.obs.index.get_loc(fr.name) # cell barcode (e.g. GTCAGTCAGTCAGTCA-1) mx.rows[i].append(ind)