#include <OpenMS/FORMAT/XQuestResultXMLFile.h>
|
static void | writeXQuestXML (String out_file, String base_name, const std::vector< PeptideIdentification > &peptide_ids, const std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > > &all_top_csms, const PeakMap &spectra, String precursor_mass_tolerance_unit, String fragment_mass_tolerance_unit, double precursor_mass_tolerance, double fragment_mass_tolerance, double fragment_mass_tolerance_xlinks, String cross_link_name, double cross_link_mass_light, DoubleList cross_link_mass_mono_link, String in_fasta, String in_decoy_fasta, StringList cross_link_residue1, StringList cross_link_residue2, double cross_link_mass_iso_shift, String enzyme_name, Size missed_cleavages) |
| Writes xquest.xml output files containing XL-MS identification results. More...
|
|
static void | writeXQuestXMLSpec (String out_file, String base_name, const OPXLDataStructs::PreprocessedPairSpectra &preprocessed_pair_spectra, const std::vector< std::pair< Size, Size > > &spectrum_pairs, const std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > > &all_top_csms, const PeakMap &spectra) |
| Writes spec.xml output containing matching peaks between heavy and light spectra after comparing and filtering. More...
|
|
static void | writeXQuestXMLSpec (String out_file, String base_name, const std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > > &all_top_csms, const PeakMap &spectra) |
| Writes spec.xml output containing spectra for visualization. This version of the function is meant to be used for label-free linkers. More...
|
|
◆ XQuestResultXMLFile()
◆ ~XQuestResultXMLFile()
◆ getMaxScore()
Returns maximum score among the hits in the file.
- Returns
- Maximum score among the hits in the file.
◆ getMinScore()
Returns minimum score among the hits in the file.
- Returns
- Minimum score among the hits in the file.
◆ getNumberOfHits()
int getNumberOfHits |
( |
| ) |
const |
Returns the total number of hits in the file.
- Returns
- total number of hits in the file
◆ getxQuestBase64EncodedSpectrum_()
Transforms a PeakSpectrum into a base 64 encoded string, which is the format used in spec.xml for xQuest.
- Parameters
-
The | spectrum |
A | header for the spectrum, build using the base_name parameter for writeXQuestXMLSpec and the index of the spectrum. |
◆ load()
Load the content of the xquest.xml file into the provided data structures.
- Parameters
-
filename | Filename of the file which is to be loaded. |
csms | Where the spectra with identifications of the input file will be loaded to. |
prot_ids | Where the protein identification of the input file will be loaded to. |
min_n_hits_per_spectrum | How many minimum hits a spectrum must contain to be loaded to csms . |
load_to_peptideHit | Whether the data will be loaded as meta values also into the peptide hits, instead just into the PeptideIdentification |
◆ wrap_()
A helper function, that takes one string containing one line and wraps it into several lines of a given width.
- Parameters
-
The | string as one line |
The | preferred line width |
String | in which the output is written |
◆ writeXQuestXML()
static void writeXQuestXML |
( |
String |
out_file, |
|
|
String |
base_name, |
|
|
const std::vector< PeptideIdentification > & |
peptide_ids, |
|
|
const std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > > & |
all_top_csms, |
|
|
const PeakMap & |
spectra, |
|
|
String |
precursor_mass_tolerance_unit, |
|
|
String |
fragment_mass_tolerance_unit, |
|
|
double |
precursor_mass_tolerance, |
|
|
double |
fragment_mass_tolerance, |
|
|
double |
fragment_mass_tolerance_xlinks, |
|
|
String |
cross_link_name, |
|
|
double |
cross_link_mass_light, |
|
|
DoubleList |
cross_link_mass_mono_link, |
|
|
String |
in_fasta, |
|
|
String |
in_decoy_fasta, |
|
|
StringList |
cross_link_residue1, |
|
|
StringList |
cross_link_residue2, |
|
|
double |
cross_link_mass_iso_shift, |
|
|
String |
enzyme_name, |
|
|
Size |
missed_cleavages |
|
) |
| |
|
static |
Writes xquest.xml output files containing XL-MS identification results.
- Parameters
-
Path | and filename for the output file |
The | base_name should be the name of the input spectra file without the file ending. Used as part of an identifier string for the spectra. |
The | PeptideIdentifications from a XL-MS search |
CrossLinkSpectrumMatches,from | which the IDs were generated. |
The | spectra, that were searched as a PeakMap |
The | unit of the precursor mass tolerance ("Da" or "ppm") |
The | unit of the fragment mass tolerance ("Da" or "ppm") |
The | precursor mass tolerance |
The | fragment mass tolerance for common ions |
The | fragment mass tolerance for cross-linked ions |
The | name of the cross-link reagent |
The | mass of the cross-link reagent when linking two peptides |
List | of possible masses for the cross-link, if it is attached to a peptide on one side |
Path | and filename of the target protein database |
Path | and filename of the decoy protein database |
Residues,that | the first side of the cross-linker can react with |
Residues,that | the second side of the cross-linker can react with |
The | difference of mass between the two types of cross-linkers, if labeled linkers were used. Should be 0 for label-free linkers. |
Name | of the Enzyme used for digestion |
Number | of allowed missed cleavages |
◆ writeXQuestXMLSpec() [1/2]
Writes spec.xml output containing matching peaks between heavy and light spectra after comparing and filtering.
- Parameters
-
Path | and filename for the output file |
The | base_name should be the name of the input spectra file without the file ending. Used as part of an identifier string for the spectra. |
The | preprocessed spectra after comparing and filtering |
Indices | of spectrum pairs in the input map |
CrossLinkSpectrumMatches,from | which the IDs were generated. Only spectra with matches are written out. |
The | spectra, that were searched as a PeakMap. The indices in spectrum_pairs correspond to spectra in this map. |
◆ writeXQuestXMLSpec() [2/2]
Writes spec.xml output containing spectra for visualization. This version of the function is meant to be used for label-free linkers.
- Parameters
-
Path | and filename for the output file |
The | base_name should be the name of the input spectra file without the file ending. Used as part of an identifier string for the spectra. |
CrossLinkSpectrumMatches,from | which the IDs were generated. Only spectra with matches are written out. |
The | spectra, that were searched as a PeakMap. |
◆ max_score_
◆ min_score_
◆ n_hits_