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]