74 const std::vector<double>& n_noshifts,
75 const std::vector<double>& c_shifts,
76 const std::vector<double>& c_noshifts,
102 bool reactive_protein_n_term,
103 const std::vector<double>& n_shifts,
104 const std::vector<double>& n_noshifts,
105 const std::vector<double>& c_shifts,
106 const std::vector<double>& c_noshifts,
108 const std::vector<bool>& blocked = {});
121 std::string_view protein,
124 bool clip_nterm_methionine,
125 std::vector<std::string_view>& peptides);
143 bool clip_nterm_methionine);
Class for the enzymatic digestion of sequences.
Definition EnzymaticDigestion.h:39
Localizes a cross-link by the chemistry of the cross-linker, within the residues the fragment ions su...
Definition NuXLSiteLocalization.h:40
static bool isProteinNTerminal(const ProteinTermini &termini, std::string_view peptide)
Whether peptide is a protein N-terminal digestion product (see proteinTermini)
Definition NuXLSiteLocalization.cpp:172
int range_begin
first residue supported by the fragment ions, -1 without fragment evidence
Definition NuXLSiteLocalization.h:49
int position
localized residue, -1 if unlocalized
Definition NuXLSiteLocalization.h:48
std::vector< std::string > n_terminal
peptides that start a protein (also right behind a clipped initial methionine)
Definition NuXLSiteLocalization.h:130
std::vector< std::string > c_terminal
peptides that end a protein
Definition NuXLSiteLocalization.h:131
static void digestProtein(const EnzymaticDigestion &digestion, std::string_view protein, size_t min_length, size_t max_length, bool clip_nterm_methionine, std::vector< std::string_view > &peptides)
The peptides of a protein as searched: its digest and, optionally, its N-terminal peptides after remo...
Definition NuXLSiteLocalization.cpp:124
std::string method
how the site was chosen: "N-term", "K", "STY+H" or "unlocalized"
Definition NuXLSiteLocalization.h:51
int range_end
last residue supported by the fragment ions, -1 without fragment evidence
Definition NuXLSiteLocalization.h:50
static ProteinTermini proteinTermini(const std::vector< std::string_view > &proteins, const EnzymaticDigestion &digestion, size_t min_length, size_t max_length, bool clip_nterm_methionine)
The protein-terminal peptides among the peptides digestProtein yields for proteins.
Definition NuXLSiteLocalization.cpp:145
static std::vector< int > supportedResidues(const std::vector< double > &n_shifts, const std::vector< double > &n_noshifts, const std::vector< double > &c_shifts, const std::vector< double > &c_noshifts, double tolerance=DEFAULT_TOLERANCE)
Residues at which a cross-link explains the fragment ions best.
Definition NuXLSiteLocalization.cpp:21
static constexpr double DEFAULT_TOLERANCE
Default fraction of the fragment intensity by which a residue's support may fall short of the best an...
Definition NuXLSiteLocalization.h:43
static bool isProteinCTerminal(const ProteinTermini &termini, std::string_view peptide)
Whether peptide is a protein C-terminal digestion product (see proteinTermini)
Definition NuXLSiteLocalization.cpp:179
static Site localizeNHS(const std::string &sequence, bool reactive_protein_n_term, const std::vector< double > &n_shifts, const std::vector< double > &n_noshifts, const std::vector< double > &c_shifts, const std::vector< double > &c_noshifts, double tolerance=DEFAULT_TOLERANCE, const std::vector< bool > &blocked={})
Localizes a cross-link attached through an NHS ester.
Definition NuXLSiteLocalization.cpp:63
Protein N- and C-terminal peptides of a digest, sorted, to look them up with isProteinNTerminal and i...
Definition NuXLSiteLocalization.h:129
Result of localizing one cross-link.
Definition NuXLSiteLocalization.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19