|
OpenMS
2.6.0
|
Go to the documentation of this file.
75 template <
typename SpectrumType>
80 std::map<double, int> marks;
81 for (std::vector<PeakMarker *>::const_iterator cvit = markers_.begin(); cvit != markers_.end(); ++cvit)
83 std::map<double, bool> marked;
84 (*cvit)->apply(marked, spectrum);
85 for (std::map<double, bool>::const_iterator cmit = marked.begin(); cmit != marked.end(); ++cmit)
94 for (
Iterator it = spectrum.begin(); it != spectrum.end(); )
96 if (marks[it->getMZ()] > 0)
102 it = spectrum.erase(it);
109 void filterPeakMap(
PeakMap & exp);
113 return "MarkerMower";
Base class for TOPP applications.
Definition: TOPPBase.h:144
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
void insertHit(const PeptideHit &hit)
Appends a peptide hit.
void sortSpectra(bool sort_mz=true)
Sorts the data points by retention time.
A more convenient string class.
Definition: String.h:59
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
String & removeWhitespaces()
removes whitespaces (space, tab, line feed, carriage return)
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static String getUniqueName(bool include_hostname=true)
Returns a string, consisting of date, time, hostname, process id, and a incrementing number....
bool operator<(const QTCluster &q1, const QTCluster &q2)
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:460
Representation of a protein identification run.
Definition: ProteinIdentification.h:70
static const String getProductName()
Definition: MarkerMower.h:111
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
static bool copyDirRecursively(const QString &from_dir, const QString &to_dir, File::CopyOptions option=CopyOptions::OVERWRITE)
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
bool loadExperiment(const String &filename, MSExperiment &exp, FileTypes::Type force_type=FileTypes::UNKNOWN, ProgressLogger::LogType log=ProgressLogger::NONE, const bool rewrite_source_file=true, const bool compute_hash=true)
Loads a file into an MSExperiment.
Type
Actual file types enum.
Definition: FileTypes.h:58
MarkerMower uses PeakMarker to find peaks, those that are not marked get removed.
Definition: MarkerMower.h:54
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
QString toQString() const
Conversion to Qt QString.
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
This class handles csv files. Currently only loading is implemented.
Definition: CsvFile.h:49
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
Class representing a temporary directory.
Definition: File.h:63
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
void filterSpectrum(SpectrumType &spectrum)
Definition: MarkerMower.h:76
ExitCodes
Exit codes.
Definition: TOPPBase.h:149
std::vector< PeakMarker * > markers_
used peak markers
Definition: MarkerMower.h:125
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:126
void storeExperiment(const String &filename, const MSExperiment &exp, ProgressLogger::LogType log=ProgressLogger::NONE)
Stores an MSExperiment to a file.
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
PeakMarker marks peaks that seem to fulfill some criterion.
Definition: PeakMarker.h:47
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Search parameters of the DB search.
Definition: ProteinIdentification.h:258
Used to load and store idXML files.
Definition: IdXMLFile.h:63
Representation of a peptide hit.
Definition: PeptideHit.h:55