OpenMS
|
#include <OpenMS/FORMAT/PepNovoInfile.h>
Public Member Functions | |
PepNovoInfile () | |
default constructor More... | |
PepNovoInfile (const PepNovoInfile &pepnovo_infile) | |
copy constructor More... | |
virtual | ~PepNovoInfile () |
destructor More... | |
PepNovoInfile & | operator= (const PepNovoInfile &pepnovo_infile) |
assignment operator More... | |
bool | operator== (const PepNovoInfile &pepnovo_infile) const |
equality operator More... | |
void | store (const String &filename) |
void | setModifications (const StringList &fixed_mods, const StringList &variable_mods) |
generates the PepNovo Infile for given fixed and variable modifications * More... | |
void | getModifications (std::map< String, String > &modification_key_map) const |
return the modifications. More... | |
Private Member Functions | |
String | handlePTMs_ (const String &modification, const bool variable) |
Private Attributes | |
ModificationDefinitionsSet | mods_ |
std::map< String, String > | mods_and_keys_ |
TextFile | ptm_file_ |
@brief PepNovo input file adapter. Creates a PepNovo_PTMs.txt file for PepNovo search.
PepNovoInfile | ( | ) |
default constructor
PepNovoInfile | ( | const PepNovoInfile & | pepnovo_infile | ) |
copy constructor
|
virtual |
destructor
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)" )
retrieves the name of modification, and generates the corresponding line for the PepNovo infile.
modification | the modification |
variable | should be set to true if it variable |
PepNovoInfile& operator= | ( | const PepNovoInfile & | pepnovo_infile | ) |
assignment operator
bool operator== | ( | const PepNovoInfile & | pepnovo_infile | ) | const |
equality operator
void setModifications | ( | const StringList & | fixed_mods, |
const StringList & | variable_mods | ||
) |
generates the PepNovo Infile for given fixed and variable modifications *
fixed_mods | StringList of fixed modifications unique identifiers |
variable_mods | StringList of variable modifications unique identifiers |
void store | ( | const String & | filename | ) |
stores the experiment data in a PepNovo input file that can be used as input for PepNovo shell execution
filename | the file which the input file is stored into |
Exception::UnableToCreateFile | is thrown if the given file could not be created |
|
private |
|
private |