diff --git a/src/nplinker/metabolomics/gnps/gnps_extractor.py b/src/nplinker/metabolomics/gnps/gnps_extractor.py index 05d480c8..0e49a58c 100644 --- a/src/nplinker/metabolomics/gnps/gnps_extractor.py +++ b/src/nplinker/metabolomics/gnps/gnps_extractor.py @@ -148,9 +148,18 @@ def _extract_snetsv2(self): os.renames(self._extract_path / member, self._extract_path / fname) def _extract_fbmn(self): + # there might be two folders for quantification table + # "quantification_table_reformatted" and "quantification_table" + try: + quantification_table_member = self._select_member( + "quantification_table_reformatted", ".csv" + ) + except ValueError: + quantification_table_member = self._select_member("quantification_table", ".csv") + # the order of members matters members = [ - self._select_member("quantification_table", ".csv"), + quantification_table_member, self._select_member("spectra", ".mgf"), self._select_member("networkedges_selfloop", ".selfloop"), self._select_member("DB_result", ".tsv"),