From 7689d12921cc512ebefa1e289af28d326d58049c Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Wed, 22 Nov 2023 10:01:05 -0800 Subject: [PATCH] minor changes for revmap --- src/iranges/IRanges.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iranges/IRanges.py b/src/iranges/IRanges.py index 97a5764..7d565a0 100644 --- a/src/iranges/IRanges.py +++ b/src/iranges/IRanges.py @@ -950,7 +950,7 @@ def get_elem_counter(idx): result = IRanges(result_starts, result_widths) if with_reverse_map is True: - result.set_mcols(BiocFrame({"revmap": result_revmaps}), in_place=True) + result._mcols.set_column("revmap", result_revmaps, in_place=True) return result @@ -1106,7 +1106,7 @@ def disjoin(self, with_reverse_map: bool = False) -> "IRanges": result = IRanges(result_starts, result_widths) if with_reverse_map is True: - result.set_mcols(BiocFrame({"revmap": result_revmaps}), in_place=True) + result._mcols.set_column("revmap", result_revmaps, in_place=True) return result