Skip to content

Commit

Permalink
Merge pull request #101 from levitsky/tweak_pepxml_pattern
Browse files Browse the repository at this point in the history
Recognize .pep.xml files
  • Loading branch information
RalfG authored Nov 1, 2024
2 parents fe52146 + 0a8b005 commit 27b8591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion psm_utils/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"reader": pepxml.PepXMLReader,
"writer": None,
"extension": ".pepxml",
"filename_pattern": r"^.*\.pepxml$",
"filename_pattern": r"^.*\.pep\.?xml$",
},
"percolator": {
"reader": percolator.PercolatorTabReader,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_io/test___init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27b8591

Please sign in to comment.