Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various IO fixes #98

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions psm_utils/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@
"reader": sage.SageTSVReader,
"writer": None,
"extension": ".tsv",
"filename_pattern": r"^.*(?:_|\.).sage.tsv$",
"filename_pattern": r"^.*(?:_|\.)sage.tsv$",
},
"sage_parquet": {
"reader": sage.SageParquetReader,
"writer": None,
"extension": ".parquet",
"filename_pattern": r"^.*(?:_|\.).sage.parquet$",
"filename_pattern": r"^.*(?:_|\.)sage.parquet$",
},
"parquet": { # List after proteoscape and sage to avoid extension matching conflicts
"reader": parquet.ParquetReader,
Expand Down
2 changes: 1 addition & 1 deletion psm_utils/io/flashlfq.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,5 @@ def _psm_to_entry(psm: PSM) -> dict:
"Peptide Monoisotopic Mass": f"{psm.peptidoform.theoretical_mass:.6f}",
"Scan Retention Time": psm.retention_time,
"Precursor Charge": psm.peptidoform.precursor_charge,
"Protein Accession": ";".join(psm.protein_list),
"Protein Accession": ";".join(psm.protein_list) if psm.protein_list else None,
}
Loading