OpenMS
Loading...
Searching...
No Matches
IBSpectraFile Class Reference

Implements the export of consensusmaps into the IBSpectra format used by isobar to load quantification results. More...

#include <OpenMS/FORMAT/IBSpectraFile.h>

Public Member Functions

 IBSpectraFile ()
 Constructor.
 
 IBSpectraFile (const IBSpectraFile &other)
 Copy constructor.
 
IBSpectraFileoperator= (const IBSpectraFile &rhs)
 Assignment operator.
 
void store (const String &filename, const ConsensusMap &cm)
 Writes the contents of the ConsensusMap cm into the file named by filename.
 

Private Member Functions

std::shared_ptr< IsobaricQuantitationMethodguessExperimentType_ (const ConsensusMap &cm)
 Guesses the type of isobaric quantitation performed on the experiment.
 
StringList constructHeader_ (const IsobaricQuantitationMethod &quantMethod)
 Constructs the matching file header for the given quantitation method.
 
String getModifString_ (const AASequence &sequence)
 Generates the modification string for the given AASequence.
 

Detailed Description

Implements the export of consensusmaps into the IBSpectra format used by isobar to load quantification results.

Constructor & Destructor Documentation

◆ IBSpectraFile() [1/2]

Constructor.

◆ IBSpectraFile() [2/2]

IBSpectraFile ( const IBSpectraFile other)

Copy constructor.

Member Function Documentation

◆ constructHeader_()

StringList constructHeader_ ( const IsobaricQuantitationMethod quantMethod)
private

Constructs the matching file header for the given quantitation method.

Parameters
[in]quantMethodThe used quantitation method.
Returns
The header of the IBSpectra file for the given quantitation method.

◆ getModifString_()

String getModifString_ ( const AASequence sequence)
private

Generates the modification string for the given AASequence.

Parameters
[in]sequenceThe sequence for which the modification string should be generated.
Returns
The modification string for the given sequence.

◆ guessExperimentType_()

std::shared_ptr< IsobaricQuantitationMethod > guessExperimentType_ ( const ConsensusMap cm)
private

Guesses the type of isobaric quantitation performed on the experiment.

Exceptions
Exception::InvalidParameterif the ConsensusMap does not hold the result of an isobaric quantification experiment (e.g., itraq).

◆ operator=()

IBSpectraFile & operator= ( const IBSpectraFile rhs)

Assignment operator.

◆ store()

void store ( const String filename,
const ConsensusMap cm 
)

Writes the contents of the ConsensusMap cm into the file named by filename.

Parameters
[in]filenameThe name of the file where the contents of cm should be stored.
[in]cmThe ConsensusMap that should be exported to filename.
Exceptions
Exception::InvalidParameterif the ConsensusMap does not hold the result of an isobaric quantification experiment (e.g., itraq).