|
OpenMS
2.5.0
|
Go to the documentation of this file.
43 #include <unordered_set>
70 void insertRuns(std::vector<ProteinIdentification>&& prots,
71 std::vector<PeptideIdentification>&& peps);
72 void insertRuns(
const std::vector<ProteinIdentification>& prots,
73 const std::vector<PeptideIdentification>& peps);
84 std::vector<PeptideIdentification>& peps);
89 String getNewIdentifier_()
const;
99 bool checkOldRunConsistency_(
100 const std::vector<ProteinIdentification>& protRuns,
101 const String& experiment_type)
const;
109 bool checkOldRunConsistency_(
110 const std::vector<ProteinIdentification>& protRuns,
112 const String& experiment_type)
const;
116 void insertProteinIDs_(
117 std::vector<ProteinIdentification>&& old_protRuns
123 void updateAndMovePepIDs_(
124 std::vector<PeptideIdentification>&& pepIDs,
125 const std::map<String, Size>& runID_to_runIdx,
126 const std::vector<StringList>& originFiles,
131 void movePepIDsAndRefProteinsToResultFaster_(
132 std::vector<PeptideIdentification>&& pepIDs,
133 std::vector<ProteinIdentification>&& old_protRuns
153 bool filled_ =
false;
Normalizes the peak intensities spectrum-wise.
Definition: Normalizer.h:57
Aligns the peaks of two sorted spectra Method 1: Using a banded (width via 'tolerance' parameter) ali...
Definition: SpectrumAlignment.h:67
void annotate(PeakMap &map, const std::vector< PeptideIdentification > &peptide_ids, const std::vector< ProteinIdentification > &protein_ids, const bool clear_ids=false, const bool map_ms1=false)
Mapping method for peak maps.
Management and storage of parameters / INI files.
Definition: Param.h:73
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
const String & getScoreType() const
Returns the protein score type.
Int getCharge() const
returns the charge of the peptide
const Param & getParameters() const
Non-mutable access to the parameters.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
void setX(CoordinateType c)
Name mutator for the first dimension. Only for DPosition<2>, for visualization.
Definition: DPosition.h:171
Implements a fitter for Gaussian functions.
Definition: GaussFitter.h:60
const std::vector< ProteinGroup > & getProteinGroups() const
Returns the protein groups.
const String & getAccession() const
returns the accession of the protein
Representation of a protein identification run.
Definition: ProteinIdentification.h:71
const AASequence & getSequence() const
returns the peptide sequence without trailing or following spaces
bool(*)(const ProteinHit &, const ProteinHit &) equal_type
Definition: IDMergerAlgorithm.h:149
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
String toString() const
returns the peptide as string with modifications embedded in brackets
Exception indicating that an invalid parameter was handed over to an algorithm.
Definition: Exception.h:347
static bool accessionEqual_(const ProteinHit &p1, const ProteinHit &p2)
Definition: IDMergerAlgorithm.h:145
Representation of a protein hit.
Definition: ProteinHit.h:57
void setInitialParameters(const GaussFitResult &result)
sets the initial parameters used by the fit method as initial guess for the Gaussian
std::size_t(*)(const ProteinHit &) hash_type
Definition: IDMergerAlgorithm.h:148
String id_
the new identifier string
Definition: IDMergerAlgorithm.h:159
const std::vector< ProteinGroup > & getIndistinguishableProteins() const
Returns the indistinguishable proteins.
Exception used if an error occurred while fitting a model to a given dataset.
Definition: Exception.h:676
Base class for TOPP applications.
Definition: TOPPBase.h:144
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Representation of a histogram.
Definition: Histogram.h:63
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
void setMetaValue(const String &name, const DataValue &value)
Sets the DataValue corresponding to a name.
Annotates an MSExperiment, FeatureMap or ConsensusMap with peptide identifications.
Definition: IDMapper.h:66
std::vector< PeptideIdentification > pep_result_
the resulting new Peptide IDs
Definition: IDMergerAlgorithm.h:140
double getMonoWeight(Residue::ResidueType type=Residue::Full, Int charge=0) const
const double PROTON_MASS_U
ProteinIdentification prot_result_
the resulting new Protein IDs
Definition: IDMergerAlgorithm.h:137
void filterSpectrum(SpectrumType &spectrum) const
Definition: Normalizer.h:86
void setParameters(const Param ¶m)
Sets the parameters.
#define OPENMS_LOG_DEBUG
Macro for general debugging information.
Definition: LogStream.h:470
std::map< String, Size > file_origin_to_idx_
to keep track of the mzML origins of spectra
Definition: IDMergerAlgorithm.h:156
struct of parameters of a Gaussian distribution
Definition: GaussFitter.h:65
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
const std::vector< ProteinHit > & getHits() const
Returns the protein hits.
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...
std::unordered_set< ProteinHit, hash_type, equal_type > collected_protein_hits_
Definition: IDMergerAlgorithm.h:150
void setY(CoordinateType c)
Name mutator for the second dimension. Only for DPosition<2>, for visualization.
Definition: DPosition.h:178
Used to load and store idXML files.
Definition: IdXMLFile.h:63
File adapter for MzML files.
Definition: MzMLFile.h:55
static double absdev(IteratorType begin, IteratorType end, double mean=std::numeric_limits< double >::max())
Calculates the absolute deviation of a range of values.
Definition: StatisticFunctions.h:320
Generates theoretical spectra for peptides with various options.
Definition: TheoreticalSpectrumGenerator.h:67
static double sd(IteratorType begin, IteratorType end, double mean=std::numeric_limits< double >::max())
Calculates the standard deviation of a range of values.
Definition: StatisticFunctions.h:305
A more convenient string class.
Definition: String.h:58
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:56
Representation of a peptide hit.
Definition: PeptideHit.h:54
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.
static double mean(IteratorType begin, IteratorType end)
Calculates the mean of a range of values.
Definition: StatisticFunctions.h:133
std::vector< ProteinHit >::iterator findHit(const String &accession)
Finds a protein hit by accession (returns past-the-end iterator if not found)
Creates a new Protein ID run into which other runs can be inserted. Creates union of protein hits but...
Definition: IDMergerAlgorithm.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< SpectrumType >::iterator Iterator
Mutable iterator.
Definition: MSExperiment.h:111
static size_t accessionHash_(const ProteinHit &p)
Definition: IDMergerAlgorithm.h:142
virtual void getSpectrum(PeakSpectrum &spec, const AASequence &peptide, Int min_charge, Int max_charge) const
Generates a spectrum for a peptide sequence, with the ion types that are set in the tool parameters.
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
void getSpectrumAlignment(std::vector< std::pair< Size, Size > > &alignment, const SpectrumType1 &s1, const SpectrumType2 &s2) const
Definition: SpectrumAlignment.h:88
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
static String basename(const String &file)
Returns the basename of the file (without the path).
bool isHigherScoreBetter() const
Returns true if a higher score represents a better score.
GaussFitResult fit(std::vector< DPosition< 2 > > &points) const
Fits a Gaussian distribution to the given data points.
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
std::set< String > extractProteinAccessionsSet() const
extracts the set of non-empty protein accessions from peptide evidences
static double median(IteratorType begin, IteratorType end, bool sorted=false)
Calculates the median of a range of values.
Definition: StatisticFunctions.h:151
double getSignificanceThreshold() const
Returns the protein significance threshold value.