diff --git a/psm_utils/io/__init__.py b/psm_utils/io/__init__.py index 28021c5..564e587 100644 --- a/psm_utils/io/__init__.py +++ b/psm_utils/io/__init__.py @@ -69,7 +69,7 @@ "reader": pepxml.PepXMLReader, "writer": None, "extension": ".pepxml", - "filename_pattern": r"^.*\.pepxml$", + "filename_pattern": r"^.*\.pep\.?xml$", }, "percolator": { "reader": percolator.PercolatorTabReader, diff --git a/tests/test_io/test___init__.py b/tests/test_io/test___init__.py index 723c047..9b375f1 100644 --- a/tests/test_io/test___init__.py +++ b/tests/test_io/test___init__.py @@ -18,6 +18,9 @@ def test__infer_filetype(): ("name.t.xml", "xtandem"), ("name.msamanda.csv", "msamanda"), ("name_msamanda.csv", "msamanda"), + ("name.pepxml", "pepxml"), + ("name.pepXML", "pepxml"), + ("name.pep.xml", "pepxml"), ] for test_in, expected_out in test_cases: assert _infer_filetype(test_in) == expected_out