Skip to content
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
6 changes: 6 additions & 0 deletions alphabase/constants/spectral_library.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Constants for spectral library related functionality."""

# Loss type mappings - these map loss type numeric codes to their string representations
# Used in annotate.py and flat.py

LOSS_NUMBER_TO_TYPE = {0: "", 17: "_NH3", 18: "_H2O", 98: "_modloss"}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much redundency is there between these two modules?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll try to minimize redundancy, thank you for pointing it out

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed as it's not needed by the new AB based implementation :).

2 changes: 2 additions & 0 deletions alphabase/peptide/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class Series:

SERIES_MAPPING_INV = {v: k for k, v in SERIES_MAPPING.items()}

UNANNOTATED_TYPE = 255


@dataclass(frozen=True)
class FragmentType:
Expand Down
Loading
Loading