From 4c0f7e1cb32bf78a3da847895987ab7bd6ce9844 Mon Sep 17 00:00:00 2001 From: NhanLT Date: Sat, 12 Aug 2023 22:53:55 +1000 Subject: [PATCH] Accept tab \t and spaces as separator in the mutation file --- main/alisim.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/alisim.cpp b/main/alisim.cpp index 6196cf3be..2d4743d05 100644 --- a/main/alisim.cpp +++ b/main/alisim.cpp @@ -383,6 +383,9 @@ std::vector> readMutations(const std::string& if (line.length() < 5) outError("Invalid format '" + line + "'. Expected format should be "); + // replace \t by a space + line = regex_replace(line, std::regex("\t"), " "); + // get the node name std::string node_name = ""; pos = line.find(" ");