Skip to content

Commit

Permalink
Pass all args and kwargs from pepxml.read directly to PepXML
Browse files Browse the repository at this point in the history
  • Loading branch information
levitsky committed Sep 25, 2024
1 parent 6414441 commit 6c51662
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pyteomics/pepxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def safe_float(s):
return info


def read(source, read_schema=False, iterative=True, **kwargs):
def read(*args, **kwargs):
"""Parse `source` and iterate through peptide-spectrum matches.
Parameters
Expand All @@ -215,13 +215,23 @@ def read(source, read_schema=False, iterative=True, **kwargs):
memory usage at almost the same parsing speed. Default is
:py:const:`True`.
use_index : bool, optional
Defines whether an index of byte offsets needs to be created for
elements listed in `indexed_tags`.
This is useful for random access to spectum queries.
Default is :py:const:`True`.
indexed_tags : container of bytes, optional
If `use_index` is :py:const:`True`, elements listed in this parameter
will be indexed. Empty set by default.
Returns
-------
out : PepXML
An iterator over dicts with PSM properties.
"""

return PepXML(source, read_schema=read_schema, iterative=iterative)
return PepXML(*args, **kwargs)


def iterfind(source, path, **kwargs):
Expand Down

0 comments on commit 6c51662

Please sign in to comment.