Skip to content

Commit

Permalink
Merge pull request #140 from Rushil-Chakra/frag_feature_fix
Browse files Browse the repository at this point in the history
Fix reference to chromosome column in count_fragments_features()
  • Loading branch information
gtca authored Oct 17, 2024
2 parents eee8df0 + a485795 commit ff3c0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muon/_atac/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff3c0e1

Please sign in to comment.