Skip to content

Add parquet support in Base PSMReader class default _load_file() method. - #328

Merged
boopthesnoot merged 2 commits into
mainfrom
parquet_loader
Aug 1, 2025
Merged

Add parquet support in Base PSMReader class default _load_file() method.#328
boopthesnoot merged 2 commits into
mainfrom
parquet_loader

Conversation

@vbrennsteiner

Copy link
Copy Markdown
Contributor

Newer DIANN versions return a .parquet file instead of a .tsv report, which should be covered by the default file reader.

@vbrennsteiner
vbrennsteiner requested a review from mschwoer August 1, 2025 13:52
@vbrennsteiner vbrennsteiner self-assigned this Aug 1, 2025
@mschwoer
mschwoer requested a review from boopthesnoot August 1, 2025 14:10
Comment thread alphabase/psm_reader/psm_reader.py Outdated
sep = _get_delimiter(filename)
return pd.read_csv(filename, sep=sep, keep_default_na=False)

if filename.endswith(".parquet"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use pathlib.Path.extension here?

@boopthesnoot boopthesnoot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's uhh goode

@boopthesnoot
boopthesnoot merged commit 4a5f35d into main Aug 1, 2025
3 checks passed
@boopthesnoot
boopthesnoot deleted the parquet_loader branch August 1, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants