EdgeDetail module

class modifinder.classes.EdgeDetail.EdgeDetail(number_of_modifications: int = -1, match_score: float = 0, matches: List[Match] | None = None, start_spectrum_id: str | None = None, end_spectrum_id: str | None = None)[source]

Bases: object

Class for Edge Details

copy()[source]

Create a copy of the EdgeDetail object

get_matches_pairs() List[Tuple[int, int]][source]

Get the matches as a list of tuples

reverse_match()[source]

Reverse the matches

class modifinder.classes.EdgeDetail.Match(first_peak_index: int, second_peak_index: int, match_type: MatchType)[source]

Bases: object

Class for Match

copy()[source]

Create a copy of the Match object

class modifinder.classes.EdgeDetail.MatchType(value)[source]

Bases: Enum

An enumeration.

shifted = 1
unshifted = 2