-
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.
Merge branch 'dev' into dev_db_search
- Loading branch information
Showing
8 changed files
with
290 additions
and
67 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.