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

#include <OpenMS/FORMAT/PepNovoInfile.h>

Collaboration diagram for PepNovoInfile:
[legend]

Public Member Functions

 PepNovoInfile ()
 default constructor
 
 PepNovoInfile (const PepNovoInfile &pepnovo_infile)
 copy constructor
 
virtual ~PepNovoInfile ()
 destructor
 
PepNovoInfileoperator= (const PepNovoInfile &pepnovo_infile)
 assignment operator
 
bool operator== (const PepNovoInfile &pepnovo_infile) const
 equality operator
 
void store (const std::string &filename)
 
void setModifications (const StringList &fixed_mods, const StringList &variable_mods)
 generates the PepNovo Infile for given fixed and variable modifications *
 
void getModifications (std::map< std::string, std::string > &modification_key_map) const
 return the modifications.
 

Private Member Functions

std::string handlePTMs_ (const std::string &modification, const bool variable)
 

Private Attributes

ModificationDefinitionsSet mods_
 
std::map< std::string, std::string > mods_and_keys_
 
TextFile ptm_file_
 

Detailed Description

@brief PepNovo input file adapter.

Creates a PepNovo_PTMs.txt file for PepNovo search.

Constructor & Destructor Documentation

◆ PepNovoInfile() [1/2]

default constructor

◆ PepNovoInfile() [2/2]

PepNovoInfile ( const PepNovoInfile pepnovo_infile)

copy constructor

◆ ~PepNovoInfile()

virtual ~PepNovoInfile ( )
virtual

destructor

Member Function Documentation

◆ getModifications()

void getModifications ( std::map< std::string, std::string > &  modification_key_map) const

return the modifications.

the modification unique identifiers are mapped to the keys used in the PepNovo Infile (origin+rounded monoisotopic mass of modification ). (e.g. modification_key_map["K+16"]=="Oxidation (K)" )

◆ handlePTMs_()

std::string handlePTMs_ ( const std::string &  modification,
const bool  variable 
)
private

retrieves the name of modification, and generates the corresponding line for the PepNovo infile.

Parameters
[in]modificationthe modification
[in]variableshould be set to true if it variable

◆ operator=()

PepNovoInfile & operator= ( const PepNovoInfile pepnovo_infile)

assignment operator

◆ operator==()

bool operator== ( const PepNovoInfile pepnovo_infile) const

equality operator

◆ setModifications()

void setModifications ( const StringList fixed_mods,
const StringList variable_mods 
)

generates the PepNovo Infile for given fixed and variable modifications *

Parameters
[in]fixed_modsStringList of fixed modifications unique identifiers
[in]variable_modsStringList of variable modifications unique identifiers

◆ store()

void store ( const std::string &  filename)

stores the experiment data in a PepNovo input file that can be used as input for PepNovo shell execution

Parameters
[out]filenamethe file which the input file is stored into
Exceptions
Exception::UnableToCreateFileis thrown if the given file could not be created

Member Data Documentation

◆ mods_

◆ mods_and_keys_

std::map<std::string, std::string> mods_and_keys_
private

◆ ptm_file_

TextFile ptm_file_
private