|
TheoreticalSpectrumGeneratorXLMS & | operator= (const TheoreticalSpectrumGeneratorXLMS &tsg) |
| assignment operator More...
|
|
virtual void | getLinearIonSpectrum (PeakSpectrum &spectrum, AASequence &peptide, Size link_pos, bool frag_alpha, int charge=1, Size link_pos_2=0) const |
| Generates fragment ions not containing the cross-linker for one peptide. More...
|
|
virtual void | getXLinkIonSpectrum (PeakSpectrum &spectrum, AASequence &peptide, Size link_pos, double precursor_mass, bool frag_alpha, int mincharge, int maxcharge, Size link_pos_2=0) const |
| Generates fragment ions containing the cross-linker for one peptide. More...
|
|
virtual void | getXLinkIonSpectrum (PeakSpectrum &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...
|
|
|
| TheoreticalSpectrumGeneratorXLMS () |
| default constructor More...
|
|
| TheoreticalSpectrumGeneratorXLMS (const TheoreticalSpectrumGeneratorXLMS &source) |
| copy constructor More...
|
|
| ~TheoreticalSpectrumGeneratorXLMS () override |
| destructor More...
|
|
Public Member Functions inherited from DefaultParamHandler |
| DefaultParamHandler (const String &name) |
| Constructor with name that is displayed in error messages. More...
|
|
| DefaultParamHandler (const DefaultParamHandler &rhs) |
| Copy constructor. More...
|
|
virtual | ~DefaultParamHandler () |
| Destructor. More...
|
|
virtual DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
| Assignment operator. More...
|
|
virtual bool | operator== (const DefaultParamHandler &rhs) const |
| Equality operator. More...
|
|
void | setParameters (const Param ¶m) |
| Sets the parameters. More...
|
|
const Param & | getParameters () const |
| Non-mutable access to the parameters. More...
|
|
const Param & | getDefaults () const |
| Non-mutable access to the default parameters. More...
|
|
const String & | getName () const |
| Non-mutable access to the name. More...
|
|
void | setName (const String &name) |
| Mutable access to the name. More...
|
|
const std::vector< String > & | getSubsections () const |
| Non-mutable access to the registered subsections. More...
|
|
|
virtual void | addLinearPeaks_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, AASequence &peptide, Size link_pos, bool frag_alpha, Residue::ResidueType res_type, std::vector< std::set< LossMass, LossMassComparator > > &forward_losses, std::vector< std::set< LossMass, LossMassComparator > > &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 and adds ion name and charge annotations to the DataArrays. More...
|
|
virtual void | addPeak_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, double pos, double intensity, Residue::ResidueType res_type, Size ion_index, int charge, String ion_type) const |
| Adds a single peak to a spectrum and its charge and ion name to the given DataArrays. More...
|
|
virtual void | addPrecursorPeaks_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, double precursor_mass, int charge) const |
| Adds precursor masses including neutral losses for the given charge and adds charge and ion name to the given DataArrays. More...
|
|
virtual void | addLinearIonLosses_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, double mono_weight, Residue::ResidueType res_type, Size frag_index, double intensity, int charge, String ion_type, std::set< LossMass, LossMassComparator > &losses) const |
| Adds losses for a linear ion. More...
|
|
virtual void | addXLinkIonLosses_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, double mono_weight, double intensity, int charge, String ion_name, std::set< LossMass, LossMassComparator > &losses) const |
| Adds losses for a cross-linked ion. More...
|
|
virtual void | addKLinkedIonPeaks_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, AASequence &peptide, Size link_pos, double precursor_mass, bool frag_alpha, int charge) const |
| Adds one-residue-linked ion peaks, that are specific to XLMS. More...
|
|
virtual void | addXLinkIonPeaks_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, AASequence &peptide, Size link_pos, double precursor_mass, bool frag_alpha, Residue::ResidueType res_type, std::vector< std::set< LossMass, LossMassComparator > > &forward_losses, std::vector< std::set< LossMass, LossMassComparator > > &backward_losses, int charge, Size link_pos_2=0) const |
| Adds cross-linked ions of a specific ion type and charge to a spectrum and adds ion name and charge annotations to the DataArrays. More...
|
|
virtual void | addXLinkIonPeaks_ (PeakSpectrum &spectrum, DataArrays::IntegerDataArray &charges, DataArrays::StringDataArray &ion_names, OPXLDataStructs::ProteinProteinCrossLink &crosslink, bool frag_alpha, Residue::ResidueType res_type, std::vector< std::set< LossMass, LossMassComparator > > &forward_losses, std::vector< std::set< LossMass, LossMassComparator > > &backward_losses, std::set< LossMass, LossMassComparator > &losses_peptide2, int charge) const |
| Adds cross-linked ions of a specific ion type and charge to a spectrum and adds ion name and charge annotations to the DataArrays. More...
|
|
std::vector< std::set< LossMass, LossMassComparator > > | getForwardLosses_ (AASequence &peptide) const |
| Calculates sets of possible neutral losses for each position in the given peptide. More...
|
|
std::vector< std::set< LossMass, LossMassComparator > > | getBackwardLosses_ (AASequence &peptide) const |
| Calculates sets of possible neutral losses for each position in the given peptide. More...
|
|
char | residueTypeToIonLetter_ (Residue::ResidueType res_type) const |
| helper for mapping residue type to letter More...
|
|
Protected Member Functions inherited from DefaultParamHandler |
void | defaultsToParam_ () |
| Updates the parameters after the defaults have been set in the constructor. More...
|
|
Generates theoretical spectra for cross-linked peptides.
virtual void getLinearIonSpectrum |
( |
PeakSpectrum & |
spectrum, |
|
|
AASequence & |
peptide, |
|
|
Size |
link_pos, |
|
|
bool |
frag_alpha, |
|
|
int |
charge = 1 , |
|
|
Size |
link_pos_2 = 0 |
|
) |
| const |
|
virtual |
Generates fragment ions not containing the cross-linker for one peptide.
B-ions are generated from the beginning of the peptide up to the first linked position, y-ions are generated from the second linked position up the end of the peptide. 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. 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 |
frag_alpha | True, if the fragmented peptide is the Alpha peptide. Used for ion-name annotation. |
charge | The maximal charge of the ions |
link_pos_2 | A second position for the linker, in case it is a loop link |
Referenced by TOPPOpenPepXLLF::main_(), and TOPPOpenPepXL::main_().
virtual void getXLinkIonSpectrum |
( |
PeakSpectrum & |
spectrum, |
|
|
AASequence & |
peptide, |
|
|
Size |
link_pos, |
|
|
double |
precursor_mass, |
|
|
bool |
frag_alpha, |
|
|
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. |
frag_alpha | True, if the fragmented peptide is the Alpha peptide. Used for ion-name annotation. |
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 |
Referenced by TOPPOpenPepXLLF::main_(), and TOPPOpenPepXL::main_().
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 , is fragmented. This function is not suitable to generate fragments for mono-links or loop-links. 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.
- 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 |