From 7d02eed5815cf050dc036fe86af8e6e2d0748f63 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Thu, 7 Mar 2019 18:47:01 -0800 Subject: [PATCH] Update _method.py --- q2_metabolomics/_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q2_metabolomics/_method.py b/q2_metabolomics/_method.py index 055f051..cb624b5 100644 --- a/q2_metabolomics/_method.py +++ b/q2_metabolomics/_method.py @@ -234,7 +234,7 @@ def import_mzmine2(manifest: str, quantificationtable: str) -> biom.Table: for header in row: if header.find("Peak area") != -1: - filepath = os.path.basename(header.split(" ")[0]) + filepath = os.path.basename(header.replace("Peak area", "").rstrip()) sid = sid_mapping[filepath] output_dict[sid] = row[header]