From ace3e5a4b179ee8c9244d28c0c22b24f986edb81 Mon Sep 17 00:00:00 2001
From: aduvermy <arnaud.duvermy@ens-lyon.fr>
Date: Fri, 12 Apr 2024 09:26:21 +0200
Subject: [PATCH] fix bug

Former-commit-id: 8a26728fa9299a288dd865b1664c7a48da943323
Former-commit-id: 7d6e688a6a2a5676fb66475b44d9c949421b90b3
Former-commit-id: 24d16dfe9bdb529adec910cf2fb4695608bc73ae
---
 R/combine_mock_obj.R | 2 +-
 dev/flat_full.Rmd    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/R/combine_mock_obj.R b/R/combine_mock_obj.R
index 2dc1241..7231cfe 100644
--- a/R/combine_mock_obj.R
+++ b/R/combine_mock_obj.R
@@ -156,7 +156,7 @@ combine_mock <- function(list_mock_obj, min_replicates, max_replicates, sequenci
   list2ret <- list( settings = settings_df, init = list_init, 
                     groundTruth = mock_ground_truth,
                     counts = dtf_countsTable,
-                    metadata = list_mock_obj[[1]]$metadata,
+                    metadata = metaData,
                     scaling_factors = scaling_factors)
   ## -- clean garbage collector to save memory 
   invisible(gc(reset = TRUE, verbose = FALSE));
diff --git a/dev/flat_full.Rmd b/dev/flat_full.Rmd
index 430de47..1b2c025 100644
--- a/dev/flat_full.Rmd
+++ b/dev/flat_full.Rmd
@@ -10123,7 +10123,7 @@ combine_mock <- function(list_mock_obj, min_replicates, max_replicates, sequenci
   list2ret <- list( settings = settings_df, init = list_init, 
                     groundTruth = mock_ground_truth,
                     counts = dtf_countsTable,
-                    metadata = list_mock_obj[[1]]$metadata,
+                    metadata = metaData,
                     scaling_factors = scaling_factors)
   ## -- clean garbage collector to save memory 
   invisible(gc(reset = TRUE, verbose = FALSE));
-- 
GitLab