|
bool | add_b_ions_ |
|
bool | add_y_ions_ |
|
bool | add_a_ions_ |
|
bool | add_c_ions_ |
|
bool | add_x_ions_ |
|
bool | add_z_ions_ |
|
bool | add_first_prefix_ion_ |
|
bool | add_losses_ |
|
bool | add_charges_ |
|
bool | add_isotopes_ |
|
bool | add_precursor_peaks_ |
|
bool | add_abundant_immonium_ions_ |
|
Int | max_isotope_ |
|
double | pre_int_ |
|
double | pre_int_H2O_ |
|
double | pre_int_NH3_ |
|
bool | add_k_linked_ions_ |
|
std::map< String, LossIndex > | loss_db_ |
|
double | loss_H2O_ = 0 |
|
double | loss_NH3_ = 0 |
|
| SimpleTSGXLMS () |
| default constructor More...
|
|
| SimpleTSGXLMS (const SimpleTSGXLMS &source) |
| copy constructor More...
|
|
| ~SimpleTSGXLMS () override |
| destructor More...
|
|
SimpleTSGXLMS & | operator= (const SimpleTSGXLMS &tsg) |
| assignment operator More...
|
|
virtual void | getLinearIonSpectrum (std::vector< SimplePeak > &spectrum, AASequence &peptide, Size link_pos, int charge=1, Size link_pos_2=0) const |
| Generates fragment ions not containing the cross-linker for one peptide. More...
|
|
virtual void | getXLinkIonSpectrum (std::vector< SimplePeak > &spectrum, AASequence &peptide, Size link_pos, double precursor_mass, int mincharge, int maxcharge, Size link_pos_2=0) const |
| Generates fragment ions containing the cross-linker for one peptide. More...
|
|
virtual void | getXLinkIonSpectrum (std::vector< SimplePeak > &spectrum, OPXLDataStructs::ProteinProteinCrossLink &crosslink, bool frag_alpha, int mincharge, int maxcharge) const |
| Generates fragment ions containing the cross-linker for a pair of peptides. More...
|
|
void | updateMembers_ () override |
| overwrite More...
|
|
virtual void | addLinearPeaks_ (std::vector< SimplePeak > &spectrum, AASequence &peptide, Size link_pos, Residue::ResidueType res_type, std::vector< LossIndex > &forward_losses, std::vector< LossIndex > &backward_losses, int charge=1, Size link_pos_2=0) const |
| Adds cross-link-less ions of a specific ion type and charge to a spectrum. More...
|
|
virtual void | addPrecursorPeaks_ (std::vector< SimplePeak > &spectrum, double precursor_mass, int charge) const |
| Adds precursor masses including neutral losses for the given charge. More...
|
|
virtual void | addLosses_ (std::vector< SimplePeak > &spectrum, double mono_weight, int charge, LossIndex &losses) const |
| Adds neutral losses for an ion to a spectrum. More...
|
|
virtual void | addKLinkedIonPeaks_ (std::vector< SimplePeak > &spectrum, AASequence &peptide, Size link_pos, double precursor_mass, int charge) const |
| Adds one-residue-linked ion peaks, that are specific to XLMS. More...
|
|
virtual void | addXLinkIonPeaks_ (std::vector< SimplePeak > &spectrum, AASequence &peptide, Size link_pos, double precursor_mass, Residue::ResidueType res_type, std::vector< LossIndex > &forward_losses, std::vector< LossIndex > &backward_losses, int charge, Size link_pos_2=0) const |
| Adds cross-linked ions of a specific ion type and charge to a spectrum. More...
|
|
virtual void | addXLinkIonPeaks_ (std::vector< SimplePeak > &spectrum, OPXLDataStructs::ProteinProteinCrossLink &crosslink, bool frag_alpha, Residue::ResidueType res_type, std::vector< LossIndex > &forward_losses, std::vector< LossIndex > &backward_losses, LossIndex &losses_peptide2, int charge) const |
| Adds cross-linked ions of a specific ion type and charge to a spectrum. More...
|
|
std::vector< LossIndex > | getForwardLosses_ (AASequence &peptide) const |
| Calculates sets of possible neutral losses for each position in the given peptide. More...
|
|
std::vector< LossIndex > | getBackwardLosses_ (AASequence &peptide) const |
| Calculates sets of possible neutral losses for each position in the given peptide. More...
|
|
Generates theoretical spectra for cross-linked peptides.
The spectra this class generates are vectors of SimplePeaks. This class generates the same peak types as TheoreticalSpectrumGeneratorXLMS and the interface is very similar, but it is simpler and faster. SimplePeak only contains an mz value and a charge. No intensity values or String annotations or other additional DataArrays are generated.
virtual void addKLinkedIonPeaks_ |
( |
std::vector< SimplePeak > & |
spectrum, |
|
|
AASequence & |
peptide, |
|
|
Size |
link_pos, |
|
|
double |
precursor_mass, |
|
|
int |
charge |
|
) |
| const |
|
protectedvirtual |
Adds one-residue-linked ion peaks, that are specific to XLMS.
These fragments consist of one whole peptide, the cross-linker and a part of the linked residue from the second peptide. The residue fragment on the linker is an internal ion from a y- and an a-fragmentation with the length of one residue. The function is called KLinked for now, but instead of K it is whatever residue the linker is bound to.
- Parameters
-
spectrum | The spectrum to which the peaks are added |
peptide | The fragmented peptide |
link_pos | position of the linker on the fragmented peptide |
precursor_mass | The mass of the whole cross-link candidate or the precursor mass of the experimental MS2 spectrum. |
charge | The charge of the ion |
virtual void getXLinkIonSpectrum |
( |
std::vector< SimplePeak > & |
spectrum, |
|
|
AASequence & |
peptide, |
|
|
Size |
link_pos, |
|
|
double |
precursor_mass, |
|
|
int |
mincharge, |
|
|
int |
maxcharge, |
|
|
Size |
link_pos_2 = 0 |
|
) |
| const |
|
virtual |
Generates fragment ions containing the cross-linker for one peptide.
B-ions are generated from the first linked position up to the end of the peptide, y-ions are generated from the beginning of the peptide up to the second linked position. If link_pos_2 is 0, a mono-link or cross-link is assumed and the second position is the same as the first position. For a loop-link two different positions can be set and link_pos_2 must be larger than link_pos. Since in the case of a cross-link a whole second peptide is attached to the other side of the cross-link, a precursor mass for the two peptides and the linker is needed. In the case of a loop link the precursor mass is the mass of the only peptide and the linker. Although this function is more general, currently it is mainly used for loop-links and mono-links, because residues in the second, unknown peptide cannot be considered for possible neutral losses. The generated ion types and other additional settings are determined by the tool parameters.
- Parameters
-
spectrum | The spectrum to which the new peaks are added. Does not have to be empty, the generated peaks will be pushed onto it. |
peptide | The peptide to fragment |
link_pos | The position of the cross-linker on the given peptide |
precursor_mass | The mass of the whole cross-link candidate or the precursor mass of the experimental MS2 spectrum. |
mincharge | The minimal charge of the ions |
maxcharge | The maximal charge of the ions, it should be the precursor charge and is used to generate precursor ion peaks |
link_pos_2 | A second position for the linker, in case it is a loop link |
Generates fragment ions containing the cross-linker for a pair of peptides.
B-ions are generated from the first linked position up to the end of the peptide, y-ions are generated from the beginning of the peptide up to the second linked position. This function generates neutral loss ions by considering both linked peptides. Only one of the peptides, decided by @frag_alpha, is fragmented. This simplifies the function, but it has to be called twice to get all fragments of a peptide pair. The generated ion types and other additional settings are determined by the tool parameters. This function is not suitable to generate fragments for mono-links or loop-links.
- Parameters
-
spectrum | The spectrum to which the new peaks are added. Does not have to be empty, the generated peaks will be pushed onto it. |
crosslink | ProteinProteinCrossLink to be fragmented |
link_pos | The position of the cross-linker on the given peptide |
precursor_mass | The mass of the whole cross-link candidate or the precursor mass of the experimental MS2 spectrum. |
frag_alpha | True, if the fragmented peptide is the Alpha peptide. |
mincharge | The minimal charge of the ions |
maxcharge | The maximal charge of the ions, it should be the precursor charge and is used to generate precursor ion peaks |