From 007e648b1de18232413dcfe18622bf611784a20a Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Tue, 7 May 2024 16:31:50 -0400 Subject: [PATCH] add version argument for writing gene expression to hdf5 --- R/MatrixGeneExpression.R | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/R/MatrixGeneExpression.R b/R/MatrixGeneExpression.R index 5141d843..4239f742 100644 --- a/R/MatrixGeneExpression.R +++ b/R/MatrixGeneExpression.R @@ -34,7 +34,8 @@ addGeneExpressionMatrix <- function( parallelParam = NULL, strictMatch = FALSE, force = TRUE, - logFile = createLogFile("addGeneExpressionMatrix") + logFile = createLogFile("addGeneExpressionMatrix"), + version = 2 ){ .validInput(input = input, name = "input", valid = c("ArchRProj", "character")) @@ -201,7 +202,8 @@ addGeneExpressionMatrix <- function( subThreads = 1, force = FALSE, verbose = TRUE, - logFile = NULL + logFile = NULL, + version = 2 ){ ArrowFile <- ArrowFiles[i] @@ -286,7 +288,8 @@ addGeneExpressionMatrix <- function( binarize = FALSE, addColSums = TRUE, addRowSums = TRUE, - addRowVarsLog2 = TRUE #add for integration analyses + addRowVarsLog2 = TRUE, #add for integration analyses + version = version ) gc()