Skip to content

Commit

Permalink
removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Mar 26, 2024
1 parent 4932c94 commit 8c5eef8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions psm_utils/io/sage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""


from __future__ import annotations

import csv
Expand All @@ -17,7 +16,6 @@

from psm_utils.io._base_classes import ReaderBase
from psm_utils.psm import PSM
from psm_utils.psm_list import PSMList
from psm_utils.io._utils import set_csv_field_size_limit

set_csv_field_size_limit()
Expand Down Expand Up @@ -91,11 +89,9 @@ def _get_peptide_spectrum_match(self, psm_dict) -> PSM:
),
spectrum_id=psm_dict["scannr"],
run=Path(psm_dict["filename"]).stem,
is_decoy=True
if psm_dict["label"] == "-1"
else False
if psm_dict["label"] == "1"
else None,
is_decoy=(
True if psm_dict["label"] == "-1" else False if psm_dict["label"] == "1" else None
),
qvalue=psm_dict["spectrum_q"],
score=float(psm_dict[self.score_column]),
precursor_mz=self._parse_precursor_mz(psm_dict["expmass"], psm_dict["charge"]),
Expand Down

0 comments on commit 8c5eef8

Please sign in to comment.