-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eval metrics and circular import bug fix. (#380)
* eval metrics bug fix * better eval metrics bug fix * eval metrics bug fix * better eval metrics bug fix * eval stats unit test, circular import fix * log metrics unit test * removed unused import * log metrics refactor, additional log metrics test case * aa_match_batch hanles none, additional skipped spectra test cases * Log optimizer and training metrics to CSV file (#376) * csv logger * optimizer metrics logger * metrics logging unit tests * config item retrieval, additional requested changes * Generate new screengrabs with rich-codex * changelog update * Generate new screengrabs with rich-codex --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * aa_match_batch and aa_match handle None * top_match eval metrics warning * removed unused import * log metrics refactor, additional log metrics test case * aa_match_batch hanles none, additional skipped spectra test cases * aa_match_batch and aa_match handle None * top_match eval metrics warning * eval metrics bug fix * better eval metrics bug fix * eval stats unit test, circular import fix * log metrics unit test * removed unused import * log metrics refactor, additional log metrics test case * aa_match_batch hanles none, additional skipped spectra test cases * aa_match_batch and aa_match handle None * top_match eval metrics warning * removed unused import * log metrics refactor, additional log metrics test case * metrics file logging bug fix * aa_match test cases, minor aa_match refactor --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
34c456d
commit 396f838
Showing
8 changed files
with
290 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"""Peptide spectrum match dataclass""" | ||
|
||
import dataclasses | ||
from typing import Tuple, Iterable | ||
|
||
|
||
@dataclasses.dataclass | ||
class PepSpecMatch: | ||
""" | ||
Peptide Spectrum Match (PSM) dataclass | ||
Parameters | ||
---------- | ||
sequence : str | ||
The amino acid sequence of the peptide. | ||
spectrum_id : Tuple[str, str] | ||
A tuple containing the spectrum identifier in the form | ||
(spectrum file name, spectrum file idx) | ||
peptide_score : float | ||
Score of the match between the full peptide sequence and the | ||
spectrum. | ||
charge : int | ||
The precursor charge state of the peptide ion observed in the spectrum. | ||
calc_mz : float | ||
The calculated mass-to-charge ratio (m/z) of the peptide based on its | ||
sequence and charge state. | ||
exp_mz : float | ||
The observed (experimental) precursor mass-to-charge ratio (m/z) of the | ||
peptide as detected in the spectrum. | ||
aa_scores : Iterable[float] | ||
A list of scores for individual amino acids in the peptide | ||
sequence, where len(aa_scores) == len(sequence) | ||
""" | ||
|
||
sequence: str | ||
spectrum_id: Tuple[str, str] | ||
peptide_score: float | ||
charge: int | ||
calc_mz: float | ||
exp_mz: float | ||
aa_scores: Iterable[float] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.