Skip to content

Commit

Permalink
io.flashlfq: Fix writing PSMs without protein accession
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Sep 10, 2024
1 parent 5eae580 commit 27d66f2
Showing 1 changed file with 1 addition and 1 deletion.
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,
}

0 comments on commit 27d66f2

Please sign in to comment.