|
OpenMS
2.6.0
|
Go to the documentation of this file.
37 #include <OpenMS/config.h>
48 template <
class MapType>
56 for (
auto& feat : static_cast<MapType&>(*
this))
60 if (include_unassigned)
70 for (
auto& feat : static_cast<MapType&>(*
this))
74 if (include_unassigned)
84 for (
const auto& feat : static_cast<MapType const&>(*
this))
88 if (include_unassigned)
98 for (
const auto& feat : static_cast<MapType const&>(*
this))
102 if (include_unassigned)
112 for (
auto&
id : idvec)
121 for (
auto&
id : idvec)
123 for (
auto& hit :
id.getHits())
133 for (
const auto&
id : idvec)
142 for (
const auto&
id : idvec)
144 for (
const auto& hit :
id.getHits())
const PositionType & getMax() const
Returns the maximum position.
Definition: RangeManager.h:117
OpenMS identification format (.idXML)
Definition: FileTypes.h:66
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
double mean
Definition: StatisticFunctions.h:686
constexpr Int writtenDigits(const FloatingPointType &=FloatingPointType())
Number of digits commonly used for writing a floating point type (a.k.a. precision)....
Definition: Types.h:294
double median
Definition: StatisticFunctions.h:686
Normalization of intensity values.
Definition: DataProcessing.h:70
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 updateRanges() override
Updates minimum and maximum position/intensity.
const String & getIdentifier() const
retrieve document identifier (e.g. an LSID)
Retention time alignment of different maps.
Definition: DataProcessing.h:68
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
MzML file (.mzML)
Definition: FileTypes.h:72
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:59
Iterator begin()
Definition: MSExperiment.h:157
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
OpenMS consensus map format (.consensusXML)
Definition: FileTypes.h:67
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Helper class to gather (and dump) some statistics from a e.g. vector<double>.
Definition: StatisticFunctions.h:657
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
Unknown file extension.
Definition: FileTypes.h:60
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
static const std::string NamesOfProcessingAction[SIZE_OF_PROCESSINGACTION]
Names of inlet types.
Definition: DataProcessing.h:83
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
Mass-to-charge dimension id (1 if used as a const int)
Definition: Peak2D.h:76
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< SpectrumType >::iterator Iterator
Mutable iterator.
Definition: MSExperiment.h:111
void updateRanges() override
Updates minimum and maximum position/intensity.
static String number(double d, UInt n)
returns a string for d with exactly n decimal places
OpenMS feature file (.featureXML)
Definition: FileTypes.h:65
double variance
Definition: StatisticFunctions.h:686
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
T::value_type max
Definition: StatisticFunctions.h:687
float IntensityType
Intensity type.
Definition: Peak2D.h:62
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
double getMaxInt() const
Returns the maximum intensity.
Definition: RangeManager.h:129
void applyFunctionOnPeptideHits(T &&f, bool include_unassigned=true) const
applies a const function on all PeptideHits or only assigned ones
Definition: MapUtilities.h:82
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
void applyFunctionOnPeptideIDs(T &&f, bool include_unassigned=true) const
applies a const function on all PeptideIDs or only assigned ones
Definition: MapUtilities.h:96
Type
Actual file types enum.
Definition: FileTypes.h:58
void applyFunctionOnPeptideIDs(T &&f, bool include_unassigned=true)
applies a function on all PeptideIDs or only assigned ones
Definition: MapUtilities.h:68
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
void applyFunctionOnPeptideIDs_(std::vector< PeptideIdentification > &idvec, T &&f)
Definition: MapUtilities.h:110
double lowerq
Definition: StatisticFunctions.h:686
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
A container for consensus elements.
Definition: ConsensusMap.h:80
void load(const String &filename, ConsensusMap &map)
Loads a consensus map from file and calls updateRanges.
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
const ColumnHeaders & getColumnHeaders() const
Non-mutable access to the file descriptions.
void applyFunctionOnPeptideHits(T &&f, bool include_unassigned=true)
applies a function on all PeptideHits or only assigned ones
Definition: MapUtilities.h:54
A container for features.
Definition: FeatureMap.h:97
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
void applyFunctionOnPeptideHits_(const std::vector< PeptideIdentification > &idvec, T &&f) const
Definition: MapUtilities.h:140
double getMinInt() const
Returns the minimum intensity.
Definition: RangeManager.h:123
Iterator end()
Definition: MSExperiment.h:167
void applyFunctionOnPeptideHits_(std::vector< PeptideIdentification > &idvec, T &&f)
Definition: MapUtilities.h:119
void sortByRT()
Sort features by RT position.
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
static Type nameToType(const String &name)
Converts a file type name into a Type.
void updateRanges() override
Updates minimum and maximum position/intensity.
Retention time dimension id (0 if used as a const int)
Definition: Peak2D.h:75
Management and storage of parameters / INI files.
Definition: Param.h:73
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
Utilities for Feature and ConsensusMap.
Definition: MapUtilities.h:49
double upperq
Definition: StatisticFunctions.h:686
float QualityType
Type of quality values.
Definition: BaseFeature.h:63
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
const PositionType & getMin() const
Returns the minimum position.
Definition: RangeManager.h:111
T::value_type min
Definition: StatisticFunctions.h:687
void applyFunctionOnPeptideIDs_(const std::vector< PeptideIdentification > &idvec, T &&f) const
Definition: MapUtilities.h:131
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:62
Used to load and store idXML files.
Definition: IdXMLFile.h:63
static String typeToName(Type type)
Returns the name/extension of the type.
std::map< UInt64, ColumnHeader > ColumnHeaders
Definition: ConsensusMap.h:168