From 3d982c40641ad9afbbd12fa369247ddb5a12648d Mon Sep 17 00:00:00 2001 From: zhongzheng1999 <83148558+zhongzheng1999@users.noreply.github.com> Date: Thu, 8 Aug 2024 00:05:02 +0800 Subject: [PATCH] Update preprocessing.py (#402) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure essential packages are not detached. Co-authored-by: Michaela Müller <51025211+mumichae@users.noreply.github.com> --- scib/preprocessing.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scib/preprocessing.py b/scib/preprocessing.py index cbcec346..c91bac1b 100644 --- a/scib/preprocessing.py +++ b/scib/preprocessing.py @@ -345,11 +345,11 @@ def normalize( # Free memory in R ro.r("rm(list=ls())") - ro.r("lapply(names(sessionInfo()$loadedOnly), require, character.only = TRUE)") - ro.r( - 'invisible(lapply(paste0("package:", names(sessionInfo()$otherPkgs)), ' - "detach, character.only=TRUE, unload=TRUE))" - ) + # ro.r("lapply(names(sessionInfo()$loadedOnly), require, character.only = TRUE)") + # ro.r( + # 'invisible(lapply(paste0("package:", names(sessionInfo()$otherPkgs)), ' + # "detach, character.only=TRUE, unload=TRUE))" + # ) ro.r("gc()") anndata2ri.deactivate()