Skip to content

Commit

Permalink
drop unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
paretje committed Aug 29, 2024
1 parent d91a02c commit c370f47
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ms2rescore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,3 @@ def infer_spectrum_path(
)

return Path(resolved_path)


def _is_minitdf(spectrum_file: str) -> bool:
"""
Check if the spectrum file is a Bruker miniTDF folder.
A Bruker miniTDF folder has no fixed name, but contains files matching the patterns
``*ms2spectrum.bin`` and ``*ms2spectrum.parquet``.
"""
files = set(Path(spectrum_file).glob("*ms2spectrum.bin"))
files.update(Path(spectrum_file).glob("*ms2spectrum.parquet"))
return len(files) >= 2

0 comments on commit c370f47

Please sign in to comment.