OpenMS
Loading...
Searching...
No Matches
Label Struct Reference

Label for cross-links, branches, or ambiguous grouping. More...

#include <OpenMS/CHEMISTRY/ProFormaData.h>

Collaboration diagram for Label:
[legend]

Public Types

enum class  Type { CROSSLINK , BRANCH , AMBIGUOUS }
 The type of label. More...
 

Public Attributes

Type type
 The label type.
 
String identifier
 The label identifier (e.g., XL1, BRANCH, g1)
 
std::optional< double > score
 Optional localization score for ambiguous labels (e.g., 0.90)
 

Detailed Description

Label for cross-links, branches, or ambiguous grouping.

Labels are used to:

  • Connect cross-linked sites: [XLMOD:02001#XL1]...[#XL1]
  • Mark branch points: [#BRANCH]
  • Group ambiguously localized modifications: [Phospho#g1(0.90)]

Member Enumeration Documentation

◆ Type

enum class Type
strong

The type of label.

Enumerator
CROSSLINK 

Cross-link label (e.g., #XL1)

BRANCH 

Branch point label (#BRANCH)

AMBIGUOUS 

Ambiguous localization group (e.g., #g1)

Member Data Documentation

◆ identifier

String identifier

The label identifier (e.g., XL1, BRANCH, g1)

Referenced by OpenMS::from_json(), and OpenMS::to_json().

◆ score

std::optional<double> score

Optional localization score for ambiguous labels (e.g., 0.90)

Referenced by OpenMS::from_json(), and OpenMS::to_json().

◆ type

Type type

The label type.

Referenced by OpenMS::from_json(), and OpenMS::to_json().