From 023c6128895351ee1d4ff02dad22a6aefc1ee552 Mon Sep 17 00:00:00 2001 From: Niklas Neubrand <38315848+niklasneubrand@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:03:47 +0100 Subject: [PATCH] PEtab Import: Disable backup of model and data arSave did not work properly with PEtab models. Some fields for model and data backup are missing if model is not created with the standard d2d procedure. Fix: deactivate backup. --- arFramework3/ImportExport/arImportPEtab.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arFramework3/ImportExport/arImportPEtab.m b/arFramework3/ImportExport/arImportPEtab.m index 7fc911f5..e8eaa8b8 100644 --- a/arFramework3/ImportExport/arImportPEtab.m +++ b/arFramework3/ImportExport/arImportPEtab.m @@ -90,6 +90,9 @@ function arImportPEtab(name, doPreEq) [~,~,eventStruct] = arParseSBML([sbmlmodel.folder filesep sbmlmodel.name]); arLoadModel(strrep(sbmlmodel.name,'.xml','')) +% +ar.config.backup_modelAndData = false; + PEobs = [strrep(name{2},'.tsv',''),'.tsv']; PEmeas = [strrep(name{3},'.tsv',''),'.tsv']; PEconds = [strrep(name{4},'.tsv',''),'.tsv']; @@ -97,8 +100,7 @@ function arImportPEtab(name, doPreEq) T = cell(2, length(ar.model)); for m = 1:length(ar.model) - [T{m,1}, T{m,2}] = ... - arLoadDataPEtab(PEmeas,PEobs,m); + [T{m,1}, T{m,2}] = arLoadDataPEtab(PEmeas,PEobs,m); end Tcond = arLoadCondPEtab(PEconds, T);