libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso Namespace Reference

tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multicharge peaks to monocharge More...

Namespaces

namespace  masschroq
namespace  cbor
namespace  specglob
namespace  specpeptidoms
namespace  specself
namespace  spectree
namespace  Enums

Classes

class  Aa
class  AaBase
class  AaCode
 collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (lower to higher). Leucine is replaced by Isoleucine More...
class  AaModification
struct  CodeToMass
class  AaStringCodec
 code and decode amino acid string sequence to unique integer More...
class  AaStringCodeMassMatching
 convert a list of mass to amino acid string codes More...
class  AtomNumberInterface
struct  IsotopeCount
class  ChemicalFormula
class  ExceptionInterrupted
class  ExceptionNotFound
class  ExceptionNotImplemented
class  ExceptionNotPossible
class  ExceptionNotRecognized
 excetion to use when an item type is not recognized More...
class  ExceptionOutOfRange
class  FastaFileIndexerInterface
class  FastaFileIndexer
class  FastaHandlerInterface
class  FastaSeqHandler
class  FastaOutputStream
class  FastaReader
class  FastaWriterInterface
class  GrpExperiment
class  GrpGroup
class  GrpGroupingMonitorInterface
class  GrpGroupingMonitor
class  GrpMapPeptideToGroup
class  GrpMapPeptideToSubGroupSet
class  GrpPeptide
class  GrpPeptideSet
class  GrpProtein
class  GrpSubGroup
class  GrpSubGroupSet
class  DataPointJs
struct  NamespaceClassnameAsKeyHash
struct  AreNamespaceClassnamePairsEqual
class  MassSpectrumJs
 The MassSpectrumJs class provides a JavaScript wrapper around MassSpectrum. More...
class  QPointFJs
class  TraceJs
class  MassSpectrum
 Class to represent a mass spectrum. More...
class  MassSpectrumId
struct  PrecursorIonData
class  QualifiedMassSpectrum
 Class representing a fully specified mass spectrum. More...
class  BafAsciiFileReader
class  MsFileAccessor
class  MsFileReader
class  MzcborMsFileReader
class  MsDataFormatEnumStr
 static functions to convert mz file formats More...
class  PwizMsFileReader
class  TimsMsFileReader
class  XyMsFileReader
struct  MsRunRetentionTimeSeamarkPoint
class  MsRunRetentionTime
struct  MassSpectrumLineData
class  BafAsciiMsRunReader
class  MsRunDataSetTree
class  MsRunDataSetTreeNode
class  MsRunDataSetTreeNodeVisitorInterface
class  MsRunId
 MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informations on its location (local disk path or URL). More...
class  MsRunReadConfig
class  MsRunReader
 base class to read MSrun the only way to build a MsRunReader object is to use the MsRunReaderFactory More...
class  MgfOutput
class  MzxmlOutput
class  MzcborMsRunReader
class  PwizMsRunReader
class  TimsFramesMsRunReader
class  TimsMsRunReader
class  TimsMsRunReaderBase
class  TimsMsRunReaderDia
class  TimsMsRunReaderMs2
class  TimsMsRunReaderMs2Selected
class  SpectrumCollectionHandlerInterface
 interface to collect spectrums from the MsRunReader class More...
class  MsRunSimpleStatistics
 example of interface to count MS levels of all spectrum in an MSrun More...
class  MsRunReaderScanNumberMultiMap
 provides a multimap to find quickly spectrum index from scan number More...
class  MsRunReaderRetentionTimeLine
 collect retention times along MS run More...
class  MsRunReaderTicChromatogram
 calculate a TIC chromatogram More...
class  MsRunQualifiedSpectrumLoader
 Load all qualified spectrum into a vector. More...
class  IonMobilityGrid
struct  XicCoord
 coordinates of the XIC to extract and the resulting XIC after extraction More...
struct  XicCoordTims
 coordinates of the XIC to extract and the resulting XIC after extraction More...
class  XyMsRunReader
class  MzRange
class  FilterOboPsiModMap
class  FilterOboPsiModSink
class  FilterOboPsiModTermAccession
class  FilterOboPsiModTermDiffMono
class  FilterOboPsiModTermLabel
class  FilterOboPsiModTermName
class  OboPsiMod
class  OboPsiModHandlerInterface
class  OboPsiModTerm
class  OboPsiMs
class  OboUnimod
class  PappsoException
class  Ion
class  Peptide
class  PeptideFragment
class  PeptideFragmentIon
class  PeptideFragmentIonListBase
class  PeptideInterface
class  PeptideNaturalIsotope
class  PeptideNaturalIsotopeAverage
class  PeptideNaturalIsotopeList
class  PeptideProFormaParser
struct  SimplePeakIonMatch
class  PeptideRawFragmentMasses
class  PeptideStrParser
class  PrecisionBase
class  DaltonPrecision
class  PpmPrecision
class  ResPrecision
class  PrecisionFactory
class  IntegrationScope
class  IntegrationScopeBase
struct  IntegrationScopeSpec
class  IntegrationScopeRect
class  IntegrationScopeRhomb
class  MassDataCombinerInterface
class  MassSpectrumCombiner
class  MassSpectrumMinusCombiner
class  MassSpectrumPlusCombiner
class  MzIntegrationParams
 The MzIntegrationParams class provides the parameters definining how m/z integrations must be performed. More...
class  SelectionPolygon
struct  SelectionPolygonSpec
class  TraceCombiner
class  TraceMinusCombiner
class  TracePlusCombiner
class  CosineSimilarity
class  CubicSplineModel
class  HighResPeakPicker
class  LocalSignalToNoiseEstimator
class  TraceDetectionSinkInterface
class  TraceDetectionInterface
class  TraceDetectionMoulon
class  TraceDetectionZivy
class  TracePeak
class  TracePeakList
class  FilterCeilingAmplitudePercentage
 Redefines the ceiling intensity of the Trace. More...
class  FilterChargeDeconvolution
class  FilterComplementIonEnhancer
 try to detect complementary ions and assign maximum intensity of both elements More...
class  FilterMzExclusion
class  FilterFloorAmplitudePercentage
 Redefines the floor intensity of the Trace. More...
class  FilterInterface
 generic interface to apply a filter on a trace More...
class  MassSpectrumFilterInterface
 generic interface to apply a filter on a MassSpectrum This is the same as FilterInterface, but some filter are only relevant if they are used on MassSpectrum using this interface means the filter can only be applied on MassSpectrum and not on Trace More...
class  FilterLocalMaximum
 finds all local maxima, i.e. any point that has a greater y value than both of its neighboring points and only keep those points More...
class  FilterLowIntensitySignalRemoval
 Redefines the floor intensity of the Trace. More...
class  FilterMorphoWindowBase
 base class that apply a signal treatment based on a window More...
class  FilterMorphoSum
 test purpose More...
class  FilterMorphoMax
 transform the trace into its maximum over a window More...
class  FilterMorphoMin
 transform the trace into its minimum over a window More...
class  FilterMorphoMinMax
 transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures More...
class  FilterMorphoMaxMin
 transform the trace with the maximum of the minimum equivalent of the erode filter for pictures More...
class  FilterMorphoAntiSpike
 anti spike filter set to zero alone values inside the window More...
class  FilterMorphoMedian
 median filter apply median of y values inside the window More...
class  FilterMorphoMean
 mean filter apply mean of y values inside the window : this results in a kind of smoothing More...
class  FilterMorphoBackground
 compute background of a trace compute background noise on a trace More...
class  FilterNameInterface
 Interface that allows to build filter objects from strings. More...
class  FilterNormalizeIntensities
 Sets the maximum intensity of the trace to the provided value. More...
class  FilterLowPass
 remove datapoints higher or equal to a given Y value (intensity) More...
class  FilterHighPass
 remove datapoints below or equal to the given Y value (intensity) More...
class  FilterHighPassPercentage
 remove datapoints below a given intensity percentage (ratio) of the maximum intensity More...
class  FilterGreatestY
 keep N datapoints form the greatest intensities to the lowest More...
class  FilterGreatestYperWindow
 keep N datapoints form the greatest intensities to the lowest within a mass range in dalton More...
class  MassSpectrumFilterGreatestItensities
class  FilterFloorY
 apply std::floor (round to lowest integer) to all Y values More...
class  FilterRoundY
 apply std::round (round to nearest integer) to all Y values More...
class  FilterRescaleY
 rescales Y values into a dynamic range if the dynamic range is set to 0, this filter is ignored More...
class  FilterScaleFactorY
 rescales Y values given a tranformation factor More...
class  FilterRemoveY
 removes a value to all Y values More...
class  FilterQuantileBasedRemoveY
 removes a value found by quantile to all Y values More...
class  FilterPeakDelta
class  FilterRemoveC13
class  FilterResampleKeepSmaller
class  FilterResampleKeepGreater
class  FilterResampleRemoveXRange
class  FilterResampleKeepXRange
class  FilterResampleKeepPointInPolygon
class  MassSpectrumFilterResampleRemoveMzRange
class  MassSpectrumFilterResampleKeepMzRange
class  FilterSuite
 apply a suite of filters from a vector More...
class  FilterSuiteString
class  FilterTandemDeisotope
 Deisotope the mass spectrum this mass spectrum is iterated over and according to a data point-based moving window progression does the following tests: More...
class  FilterTriangle
struct  SavGolParams
 Parameters for the Savitzky-Golay filter. More...
class  FilterSavitzkyGolay
 uses Savitsky-Golay filter on trace More...
struct  ProjectParam
class  ProjectParameters
class  XtandemError
class  TandemWrapperRun
class  WrapTandemInput
class  WrapTandemResults
class  XtandemPresetReader
class  UiMonitorInterface
class  UiMonitorText
class  UiMonitorTextPercent
class  UiMonitorVoid
class  MzIdentMlWriter
class  XmlStreamReaderInterface
 convenient xml reader helper More...
class  Enzyme
class  EnzymeProductInterface
class  PeptideModificatorInterface
class  PeptideSinkInterface
class  PeptideSpSinkInterface
class  PeptideBuilder
 builds a peptide shared pointer from peptide string and adds fixed modifications More...
class  PeptideFixedModificationBuilder
class  PeptideMethioninRemove
 potential remove Nter Methionin More...
class  PeptideModificatorBase
class  PeptideModificatorPipeline
class  PeptideModificatorTee
class  PeptideSemiEnzyme
 cut a regular peptide obtained with an enzyme at any position from Nter or Cter More...
class  PeptideSizeFilter
 filter peptide string by size More...
class  PeptideVariableModificationBuilder
 Modify a peptide shared pointer with a variable modification on one AA. More...
class  PeptideVariableModificationReplacement
class  Protein
class  ProteinIntegerCode
class  ProteinPresenceAbsenceMatrix
class  DeepProtEnumStr
class  IonIsotopeRatioScore
class  PsmFeatures
class  MorpheusScore
class  PeakIonIsotopeMatch
class  PeakIonMatch
class  PeptideIsotopeSpectrumMatch
class  PeptideSpectrumMatch
class  XtandemHyperscore
class  XtandemHyperscoreBis
class  XtandemSpectrumProcess
struct  DataPoint
class  LinearRegression
class  MapTrace
class  Trace
 A simple container of DataPoint instances. More...
class  Utils
class  TimsFrameMobilityTraces
class  MzCalibrationInterface
class  MzCalibrationModel1
class  MzCalibrationModel1Cached
class  MzCalibrationStore
class  TimsBinDec
struct  FrameIdDescr
class  TimsData
class  TimsDataFastMap
 replacement for std::map More...
class  TimsDdaPrecursors
class  TimsDiaSlices
class  TimsFrame
class  TimsFrameBase
class  TimsFrameRawDataChunck
struct  TimsFrameRecord
class  TimsFrameType1
class  TimsMs2CentroidFilter
class  TimsDirectXicExtractor
class  TimsXicExtractorInterface
class  QualifiedXic
class  Xic
class  XicPeptideFragmentIon
class  XicPeptideFragmentIonNaturalIsotope
class  XicPeptideInterface
class  MsRunXicExtractorFactory
 factory to build different kinds of XIC extractors More...
class  MsRunXicExtractorInterface
class  MsRunSlice
class  MsRunXicExtractor
class  MsRunXicExtractorDisk
class  MsRunXicExtractorDiskBuffer
class  HttpButton
class  MassSpectrumWidget
class  QCPSpectrum
class  OboChooserWidget
class  OboListModel
class  OboListProxyModel
class  OboListWidget
class  OboTermForm
class  BaseColorMapPlotWidget
class  BasePlotContext
class  BasePlotWidget
class  BaseTracePlotWidget
struct  ColorMapPlotConfig
class  DriftSpecMassSpecColorMapPlotWidget
class  DriftSpecTracePlotWidget
class  MassSpecTracePlotContext
class  MassSpecTracePlotWidget
class  TicXicChromDriftSpecColorMapPlotWidget
class  TicXicChromMassSpecColorMapPlotWidget
class  TicXicChromTracePlotWidget
class  PrecisionWidget
class  SwitchWidget
class  QCPXic
class  XicWidget

Typedefs

typedef std::shared_ptr< const PeptidePeptideSp
typedef std::unique_ptr< const AaModificationAaModificationUp
typedef const AaModificationAaModificationP
typedef std::shared_ptr< const AaStringCodecAaStringCodecSp
 shared pointer on a Protein object
typedef std::shared_ptr< FastaFileIndexerFastaFileIndexerSPtr
typedef std::shared_ptr< GrpGroupGrpGroupSp
typedef std::shared_ptr< const GrpGroupGrpGroupSpConst
typedef std::shared_ptr< const GrpPeptideGrpPeptideSpConst
typedef std::shared_ptr< GrpPeptideGrpPeptideSp
typedef std::shared_ptr< const GrpProteinGrpProteinSpConst
typedef std::shared_ptr< GrpProteinGrpProteinSp
typedef std::shared_ptr< const GrpSubGroupGrpSubGroupSpConst
typedef std::shared_ptr< GrpSubGroupGrpSubGroupSp
using NamespaceClassnamePairAsKey = std::pair<QString, QString>
using RegisterFunc = std::function<void(QJSEngine *)>
typedef std::shared_ptr< MassSpectrumMassSpectrumSPtr
typedef std::shared_ptr< const MassSpectrumMassSpectrumCstSPtr
typedef std::shared_ptr< QualifiedMassSpectrumQualifiedMassSpectrumSPtr
typedef std::shared_ptr< const QualifiedMassSpectrumQualifiedMassSpectrumCstSPtr
typedef std::shared_ptr< TimsMsRunReaderMs2TimsMsRunReaderMs2SPtr
typedef std::shared_ptr< MsFileAccessorMsFileAccessorSPtr
typedef std::shared_ptr< const MsFileAccessorMsFileAccessorCstSPtr
typedef std::shared_ptr< MsRunDataSetTreeMsRunDataSetTreeSPtr
typedef std::shared_ptr< const MsRunDataSetTreeMsRunDataSetTreeCstSPtr
typedef std::shared_ptr< MsRunDataSetTreeNodeMsRunDataSetTreeNodeSPtr
typedef std::shared_ptr< const MsRunDataSetTreeNodeMsRunDataSetTreeNodeCstSPtr
typedef std::shared_ptr< MsRunIdMsRunIdSPtr
typedef std::shared_ptr< const MsRunIdMsRunIdCstSPtr
typedef std::shared_ptr< MsRunReaderMsRunReaderSPtr
typedef std::shared_ptr< const MsRunReaderMsRunReaderCstSPtr
typedef std::shared_ptr< TimsFramesMsRunReaderTimsFramesMsRunReaderSPtr
typedef std::shared_ptr< const TimsFramesMsRunReaderTimsFramesMsRunReaderCstSPtr
typedef std::shared_ptr< XicCoordXicCoordSPtr
typedef std::shared_ptr< XicCoordTimsXicCoordTimsSPtr
typedef std::shared_ptr< PeptideNoConstPeptideSp
typedef std::shared_ptr< const PeptideFragmentPeptideFragmentSp
typedef std::shared_ptr< const PeptideFragmentIonPeptideFragmentIonSp
typedef std::shared_ptr< const PeptideFragmentIonListBasePeptideFragmentIonListBaseSp
typedef std::shared_ptr< const PeptideInterfacePeptideInterfaceSp
typedef std::shared_ptr< const PeptideNaturalIsotopePeptideNaturalIsotopeSp
typedef std::shared_ptr< const PeptideNaturalIsotopeAveragePeptideNaturalIsotopeAverageSp
typedef std::shared_ptr< const PeptideNaturalIsotopeListPeptideNaturalIsotopeListSp
typedef const PrecisionBasePrecisionPtr
typedef std::shared_ptr< IntegrationScopeIntegrationScopeSPtr
typedef std::shared_ptr< const IntegrationScopeIntegrationScopeCstSPtr
typedef std::shared_ptr< IntegrationScopeBaseIntegrationScopeBaseSPtr
typedef std::shared_ptr< const IntegrationScopeBaseIntegrationScopeBaseCstSPtr
typedef std::shared_ptr< IntegrationScopeSpecIntegrationScopeSpecSPtr
typedef std::shared_ptr< const IntegrationScopeSpecIntegrationScopeSpecCstSPtr
typedef std::shared_ptr< IntegrationScopeRectIntegrationScopeRectSPtr
typedef std::shared_ptr< const IntegrationScopeRectIntegrationScopeRectCstSPtr
typedef std::shared_ptr< IntegrationScopeRhombIntegrationScopeRhombSPtr
typedef std::shared_ptr< const IntegrationScopeRhombIntegrationScopeRhombCstSPtr
typedef std::shared_ptr< const MassSpectrumCombinerMassSpectrumCombinerCstSPtr
typedef std::shared_ptr< MassSpectrumCombinerMassSpectrumCombinerSPtr
typedef std::shared_ptr< const MassSpectrumMinusCombinerMassSpectrumMinusCombinerCstSPtr
typedef std::shared_ptr< MassSpectrumMinusCombinerMassSpectrumMinusCombinerSPtr
typedef std::shared_ptr< const MassSpectrumPlusCombinerMassSpectrumPlusCombinerCstSPtr
typedef std::shared_ptr< MassSpectrumPlusCombinerMassSpectrumPlusCombinerSPtr
typedef std::shared_ptr< const TraceCombinerTraceCombinerCstSPtr
typedef std::shared_ptr< TraceCombinerTraceCombinerSPtr
typedef std::shared_ptr< const TraceMinusCombinerTraceMinusCombinerCstSPtr
typedef std::shared_ptr< TraceMinusCombinerTraceMinusCombinerSPtr
typedef std::shared_ptr< const TracePlusCombinerTracePlusCombinerCstSPtr
typedef std::shared_ptr< TracePlusCombinerTracePlusCombinerSPtr
using TraceIterator = std::vector<DataPoint>::const_iterator
typedef std::shared_ptr< TraceDetectionInterfaceTraceDetectionInterfaceSPtr
typedef std::shared_ptr< const TraceDetectionInterfaceTraceDetectionInterfaceCstSPtr
typedef std::shared_ptr< const TracePeakTracePeakCstSPtr
typedef std::shared_ptr< FilterCeilingAmplitudePercentageFilterCeilingAmplitudePercentageSPtr
typedef std::shared_ptr< const FilterCeilingAmplitudePercentageFilterCeilingAmplitudePercentageCstSPtr
typedef std::shared_ptr< FilterFloorAmplitudePercentageFilterFloorAmplitudePercentageSPtr
typedef std::shared_ptr< const FilterFloorAmplitudePercentageFilterFloorAmplitudePercentageCstSPtr
typedef std::shared_ptr< FilterInterfaceFilterInterfaceSPtr
typedef std::shared_ptr< const FilterInterfaceFilterInterfaceCstSPtr
typedef std::shared_ptr< FilterLowIntensitySignalRemovalFilterLowIntensitySignalRemovalSPtr
typedef std::shared_ptr< const FilterLowIntensitySignalRemovalFilterLowIntensitySignalRemovalCstSPtr
typedef std::shared_ptr< FilterNameInterfaceFilterNameInterfaceSPtr
typedef std::shared_ptr< const FilterNameInterfaceFilterNameInterfaceCstSPtr
typedef std::shared_ptr< FilterNormalizeIntensitiesFilterNormalizeIntensitiesSPtr
typedef std::shared_ptr< const FilterNormalizeIntensitiesFilterNormalizeIntensitiesCstSPtr
using IntegrationScopeSpecVector = std::vector<IntegrationScopeSpec>
typedef std::shared_ptr< FilterSuiteStringFilterSuiteStringSPtr
typedef std::shared_ptr< FilterSavitzkyGolayFilterSavitzkyGolaySPtr
typedef std::shared_ptr< const FilterSavitzkyGolayFilterSavitzkyGolayCstSPtr
typedef std::shared_ptr< const ProteinProteinSp
 shared pointer on a Protein object
typedef std::shared_ptr< const PeakIonIsotopeMatchPeakIonIsotopeMatchCstSPtr
typedef std::shared_ptr< const DataPointDataPointCstSPtr
typedef std::shared_ptr< MapTraceMapTraceSPtr
typedef std::shared_ptr< const MapTraceMapTraceCstSPtr
typedef std::shared_ptr< TraceTraceSPtr
typedef std::shared_ptr< const TraceTraceCstSPtr
typedef QString PeptideStr
 A type definition for PeptideStr.
typedef double pappso_double
 A type definition for doubles.
typedef float pappso_float
typedef unsigned int uint
typedef std::shared_ptr< MzCalibrationInterfaceMzCalibrationInterfaceSPtr
typedef std::shared_ptr< TimsDataTimsDataSp
 shared pointer on a TimsData object
typedef std::shared_ptr< TimsFrameTimsFrameSPtr
typedef std::shared_ptr< const TimsFrameTimsFrameCstSPtr
typedef std::shared_ptr< TimsFrameBaseTimsFrameBaseSPtr
typedef std::shared_ptr< const TimsFrameBaseTimsFrameBaseCstSPtr
typedef std::shared_ptr< XicQualifiedXicSp
typedef std::shared_ptr< const XicXicCstSPtr
typedef std::shared_ptr< XicXicSPtr
typedef std::shared_ptr< MsRunXicExtractorInterfaceMsRunXicExtractorInterfaceSp
typedef std::shared_ptr< const MsRunSliceMsRunSliceSPtr
typedef std::shared_ptr< BaseColorMapPlotWidgetBaseColorMapPlotWidgetSPtr
typedef std::shared_ptr< const BaseColorMapPlotWidgetBaseColorMapPlotWidgetCstSPtr
typedef std::shared_ptr< BasePlotWidgetBasePlotWidgetSPtr
typedef std::shared_ptr< const BasePlotWidgetBasePlotWidgetCstSPtr
typedef std::shared_ptr< BaseTracePlotWidgetBaseTracePlotWidgetSPtr
typedef std::shared_ptr< const BaseTracePlotWidgetBaseTracePlotWidgetCstSPtr
typedef std::vector< std::pair< XicCstSPtr, TracePeakCstSPtr > > XicXicPeakPairList

Enumerations

enum class  QualifiedMassSpectrumParameter {
  IonMobOneOverK0 , IonMobOneOverK0Begin , IonMobOneOverK0End , TimsIonMobScanIndex ,
  TimsFrameIonMobScanIndexBegin , TimsFrameIonMobScanIndexEnd , IsolationMz , IsolationMzWidth ,
  CollisionEnergy , BrukerPrecursorIndex , TimsFrameScansCount , TimsFrameMzIndexBegin ,
  TimsFrameMzIndexEnd , ScanNumber , last
}
enum class  MsRunReadConfigParameter {
  TimsFrameIonMobScanIndexBegin , TimsFrameIonMobScanIndexEnd , TimsFrameIonMobOneOverK0Begin , TimsFrameIonMobOneOverK0End ,
  MzRangeBegin , MzRangeEnd , TimsFrameMzIndexMergeWindow
}
enum class  XicCoordParam : std::int8_t { TimsTofIonMobilityScanNumberStart , TimsTofIonMobilityScanNumberStop }
enum class  PeptideDirection : std::int8_t { Nter = 0 , Cter = 1 }
enum class  PeptideIonNter {
  b , bstar , bo , a ,
  astar , ao , bp , c
}
enum class  PeptideIonCter {
  y , ystar , yo , z ,
  yp , x
}
enum class  AtomIsotope {
  C , H , O , N ,
  S
}
enum class  RawFragmentationMode : std::int8_t { full = 0 , proline_effect = 1 }
enum  IntegrationScopeFeatures {
  FAILURE = 0x0000 , SUCCESS = 1 << 1 , FLAT_ON_X_AXIS = 1 << 2 , FLAT_ON_Y_AXIS = 1 << 3 ,
  RHOMBOID_VERTICAL = 1 << 4 , RHOMBOID_HORIZONTAL = 1 << 5 , NOT_PRINTABLE = 1 << 6 , FLAT_ON_ANY_AXIS = (FLAT_ON_X_AXIS | FLAT_ON_Y_AXIS)
}
enum class  PointSpec {
  TOP_LEFT_POINT = 0 , TOP_RIGHT_POINT = 1 , BOTTOM_RIGHT_POINT = 2 , BOTTOM_LEFT_POINT = 3 ,
  ENUM_LAST = 4
}
enum class  DataDimension { NOT_SET = 0 , HORIZONTAL , VERTICAL }
enum class  ProjectParamCategory : std::int8_t {
  undefined = 0 , general = 1 , identification = 2 , filter = 3 ,
  quantification = 4 , instrument = 5
}
enum class  DeepProtMatchType : std::uint8_t {
  uncategorized = 0 , ZeroMassDelta = 1 , ZeroMassDeltaMissedCleavage , ZeroMassDeltaSemiTryptic ,
  DeltaPosition = 4 , NoDeltaPosition = 5 , last = 6
}
 definition of different class of PSMs used by DeepProt More...
enum class  DeepProtPeptideCandidateStatus : std::uint8_t {
  unmodified = 0 , ZeroMassDelta = 1 , CterRemoval = 2 , NterRemoval = 3 ,
  MissedCleavage = 4 , DeltaPosition = 5 , NoDeltaPosition = 6 , last = 7
}
 definition of different status for potential peptide candidates on the same spectrum More...
enum class  MsRunXicExtractorFactoryType : std::int8_t { nose = 0 , direct = 1 , disk = 2 , diskbuffer }
enum class  DragDirections {
  NOT_SET = 0x0000 , LEFT_TO_RIGHT = 1 << 0 , RIGHT_TO_LEFT = 1 << 1 , TOP_TO_BOTTOM = 1 << 2 ,
  BOTTOM_TO_TOP = 1 << 3
}
enum class  SelectionDrawingLines {
  NOT_SET = 0x0000 , TOP_LINE = 1 << 0 , BOTTOM_LINE = 1 << 1 , HORIZONTAL_LINES = (TOP_LINE | BOTTOM_LINE) ,
  RIGHT_LINE = 1 << 2 , LEFT_LINE = 1 << 3 , VERTICAL_LINES = (RIGHT_LINE | LEFT_LINE) , FULL_POLYGON = (HORIZONTAL_LINES | VERTICAL_LINES)
}
enum class  RangeType { outermost = 1 , innermost = 2 }

Functions

bool operator== (Aa const &l, Aa const &r)
bool operator< (Aa const &l, Aa const &r)
std::unordered_map< NamespaceClassnamePairAsKey, RegisterFunc, NamespaceClassnameAsKeyHash, AreNamespaceClassnamePairsEqual > & getNameSpaceClassNameJsConstructorRegistrarMap ()
void registerJsConstructorForEachClassInRegistrarMap (QJSEngine *engine)
void registerJsConstructorForNameSpaceClassNameInRegistrarMap (const QString &name_space, const QString &class_name, QJSEngine *engine)
void registerQmlTypes (const char *uri, int versionMajor, int versionMinor)
void registerEnumsToQJSEngine (QJSEngine *engine)
QDataStream & operator<< (QDataStream &outstream, const MassSpectrum &massSpectrum)
QDataStream & operator>> (QDataStream &instream, MassSpectrum &massSpectrum)
bool operator< (const pappso::Peptide &l, const pappso::Peptide &r)
bool operator== (const pappso::Peptide &l, const pappso::Peptide &r)
bool peptideIonTypeIsComplement (Enums::PeptideIon ion_type_ref, Enums::PeptideIon ion_type)
 tells if an ion type is the complement ion of the other
bool peptideIonIsNter (Enums::PeptideIon ion_type)
 tells if an ion is Nter
PeptideDirection getPeptideIonDirection (Enums::PeptideIon ion_type)
 get the direction of a peptide ion
uint64_t Combinations (unsigned int n, unsigned int k)
pappso_double isotopem_ratio (pappso_double abundance, unsigned int total, unsigned int heavy)
pappso_double isotopem_ratio_cache (Enums::Isotope isotope, unsigned int total, unsigned int heavy)
std::vector< PeptideNaturalIsotopeAverageSpgetByIntensityRatioByIsotopeNumber (const PeptideInterfaceSp &peptide, unsigned int charge, PrecisionPtr precision, unsigned int isotopeNumber, pappso_double minimumIntensity)
MzIntegrationParams::BinningType getBinningTypeFromString (const QString &text)
constexpr MzIntegrationParams::InitializationResult operator| (MzIntegrationParams::InitializationResult a, MzIntegrationParams::InitializationResult b)
constexpr MzIntegrationParams::InitializationResult operator& (MzIntegrationParams::InitializationResult a, MzIntegrationParams::InitializationResult b)
constexpr MzIntegrationParams::InitializationResult operator|= (MzIntegrationParams::InitializationResult &a, MzIntegrationParams::InitializationResult b)
void spline_bisection (const CubicSplineModel &spline_model, double const mz_at_left, double const mz_at_right, double &center_peak_mz, double &center_peak_intensity, double const threshold)
PMSPP_LIB_DECL std::vector< TracePeak >::iterator findBestTracePeakGivenRtList (std::vector< TracePeak >::iterator begin, std::vector< TracePeak >::iterator end, const std::vector< double > &rt_list, std::size_t &nb_peaks)
 find the best peak matching a list of retention times
PMSPP_LIB_DECL std::vector< TracePeak >::iterator findTracePeakGivenRt (std::vector< TracePeak >::iterator begin, std::vector< TracePeak >::iterator end, double rt)
 find the peak matching a retention time
std::vector< PeakIonIsotopeMatch >::iterator findComplementIonType (std::vector< PeakIonIsotopeMatch >::iterator begin, std::vector< PeakIonIsotopeMatch >::iterator end, const PeakIonIsotopeMatch &peak_ion, std::size_t peptide_size)
 find the first element containing the complementary ion complementary ion of y1 is b(n-1) for instance
unsigned int factorial (unsigned int n)
QDataStream & operator<< (QDataStream &out, const DataPoint &dataPoint)
QDataStream & operator>> (QDataStream &in, DataPoint &dataPoint)
PMSPP_LIB_DECL QDataStream & operator<< (QDataStream &out, const Trace &trace)
PMSPP_LIB_DECL QDataStream & operator>> (QDataStream &out, Trace &trace)
std::vector< DataPoint >::iterator findFirstEqualOrGreaterX (std::vector< DataPoint >::iterator begin, std::vector< DataPoint >::iterator end, const double &value)
 find the first element in which X is equal or greater than the value searched important : it implies that Trace is sorted by X
std::vector< DataPoint >::const_iterator findFirstEqualOrGreaterX (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, const double &value)
std::vector< DataPoint >::iterator findFirstGreaterX (std::vector< DataPoint >::iterator begin, std::vector< DataPoint >::iterator end, const double &value)
 find the first element in which X is greater than the value searched important : it implies that Trace is sorted by X
std::vector< DataPoint >::const_iterator findFirstGreaterX (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, const double &value)
std::vector< DataPoint >::iterator findDifferentYvalue (std::vector< DataPoint >::iterator begin, std::vector< DataPoint >::iterator end, const double &y_value)
 find the first element in which Y is different of value
std::vector< DataPoint >::const_iterator findDifferentYvalue (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, const double &y_value)
std::vector< DataPoint >::const_iterator minYDataPoint (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
std::vector< DataPoint >::iterator minYDataPoint (std::vector< DataPoint >::iterator begin, std::vector< DataPoint >::iterator end)
 find the element with the smallest Y value (intensity)
std::vector< DataPoint >::const_iterator maxYDataPoint (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
std::vector< DataPoint >::iterator maxYDataPoint (std::vector< DataPoint >::iterator begin, std::vector< DataPoint >::iterator end)
 find the element with the greatest Y value (intensity)
std::vector< DataPoint >::const_iterator moveLowerYRigthDataPoint (const Trace &trace, std::vector< DataPoint >::const_iterator begin)
 Move right to the lower value.
std::vector< DataPoint >::const_iterator moveLowerYLeftDataPoint (const Trace &trace, std::vector< DataPoint >::const_iterator begin)
 Move left to the lower value.
double sumYTrace (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double init)
 calculate the sum of y value of a trace
double meanYTrace (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
 calculate the mean of y value of a trace
double quantileYTrace (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double quantile)
 calculate the quantile of y value of a trace
double medianYTrace (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
 calculate the median of y value of a trace
double areaTrace (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)
 calculate the area of a trace
Trace flooredLocalMaxima (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double y_floor)
Trace incrementByValueX (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double increment)
Trace incrementByValueY (std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double increment)
const pappso_double MHPLUS (1.007276466879)
const pappso_double MPROTON (1.007276466879)
const pappso_double MPROTIUM (1.007825032241)
const pappso_double ONEMILLION (1000000)
const pappso_double MASSOXYGEN (15.99491461956)
const pappso_double MASSCARBON (12)
const pappso_double MASSH2O ((MPROTIUM *2)+MASSOXYGEN)
const pappso_double MASSNITROGEN (14.0030740048)
const pappso_double MASSNH3 ((MPROTIUM *3)+MASSNITROGEN)
const pappso_double MASSCO (MASSCARBON+MASSOXYGEN)
const pappso_double MASSPHOSPHORUS (30.973761998)
const pappso_double MASSSULFUR (31.9720711741)
const pappso_double MASSPHOSPHORYLATEDR (MPROTIUM+(MASSOXYGEN *3)+MASSPHOSPHORUS)
const pappso_double MASSSELENIUM (79.916520)
const pappso_double DIFFC12C13 (1.0033548378)
const pappso_double DIFFS32S33 (32.9714589101 - MASSSULFUR)
const pappso_double DIFFS32S34 (33.9678670300 - MASSSULFUR)
const pappso_double DIFFS32S36 (35.9670812000 - MASSSULFUR)
const pappso_double DIFFH1H2 (2.0141017778 - MPROTIUM)
const pappso_double DIFFO16O18 (17.9991610 - MASSOXYGEN)
const pappso_double DIFFO16O17 (16.99913150 - MASSOXYGEN)
const pappso_double DIFFN14N15 (15.0001088982 - MASSNITROGEN)
const pappso_double ABUNDANCEH2 (0.00011570983569203332000374651045149221317842602729797363281250)
const pappso_double ABUNDANCEN15 (0.00364198543205827118818262988497735932469367980957031250000000)
const pappso_double ABUNDANCEO17 (0.00038099847600609595965615028489992255344986915588378906250000)
const pappso_double ABUNDANCEO18 (0.00205139179443282221315669744399201590567827224731445312500000)
const pappso_double ABUNDANCEC13 (0.01078805814953308406245469086570665240287780761718750000000000)
const pappso_double ABUNDANCEC12 (0.98921194185046687152862432412803173065185546875000000000000000)
const pappso_double ABUNDANCES33 (0.00751939844812414937003097747947322204709053039550781250000000)
const pappso_double ABUNDANCES34 (0.04252059835213182203972337447339668869972229003906250000000000)
const pappso_double ABUNDANCES36 (0.00010999120070394368536836893213148869108408689498901367187500)
QDataStream & operator>> (QDataStream &instream, MsRunSlice &slice)

Variables

static const std::size_t CHECKED_LINES_COUNT = 10
constexpr std::size_t MAX_MS_LEVELS = 12
class PMSPP_LIB_DECL MsRunReader
uint64_t combinations_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioC13_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioN15_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioS36_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioS34_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioS33_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioO17_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioO18_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
pappso_double ratioH2_cache [CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}
std::map< Enums::PrecisionUnit, QString > precisionUnitMap
std::map< MzIntegrationParams::BinningType, QString > binningTypeMap
 Map relating the BinningType to a textual representation.
std::map< Enums::DataKind, QString > dataKindMap
std::map< Qt::MouseButton, QString > qtMouseButtonMap
std::map< Qt::MouseButtons, QString > qtMouseButtonsMap
std::map< Qt::KeyboardModifier, QString > qtKeyboardModifierMap

Detailed Description

tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multicharge peaks to monocharge

tries to keep as much as possible monoisotopes, removing any possible C13 peaks

first sort peaks by decreasing intensities, then keep most intense ones and avoid any peaks in possible C13 windows after

Todo
write docs
Todo
write docs
Todo
write docs

Typedef Documentation

◆ AaModificationP

Definition at line 52 of file aamodification.h.

◆ AaModificationUp

typedef std::unique_ptr<const AaModification> pappso::AaModificationUp

Definition at line 51 of file aamodification.h.

◆ AaStringCodecSp

typedef std::shared_ptr<const AaStringCodec> pappso::AaStringCodecSp

shared pointer on a Protein object

Definition at line 41 of file aastringcodec.h.

◆ BaseColorMapPlotWidgetCstSPtr

Definition at line 61 of file basecolormapplotwidget.h.

◆ BaseColorMapPlotWidgetSPtr

Definition at line 59 of file basecolormapplotwidget.h.

◆ BasePlotWidgetCstSPtr

typedef std::shared_ptr<const BasePlotWidget> pappso::BasePlotWidgetCstSPtr

Definition at line 81 of file baseplotwidget.h.

◆ BasePlotWidgetSPtr

typedef std::shared_ptr<BasePlotWidget> pappso::BasePlotWidgetSPtr

Definition at line 80 of file baseplotwidget.h.

◆ BaseTracePlotWidgetCstSPtr

Definition at line 56 of file basetraceplotwidget.h.

◆ BaseTracePlotWidgetSPtr

Definition at line 55 of file basetraceplotwidget.h.

◆ DataPointCstSPtr

typedef std::shared_ptr<const DataPoint> pappso::DataPointCstSPtr

Definition at line 18 of file datapoint.h.

◆ FastaFileIndexerSPtr

Definition at line 49 of file fastafileindexer.h.

◆ FilterCeilingAmplitudePercentageCstSPtr

◆ FilterCeilingAmplitudePercentageSPtr

◆ FilterFloorAmplitudePercentageCstSPtr

◆ FilterFloorAmplitudePercentageSPtr

◆ FilterInterfaceCstSPtr

typedef std::shared_ptr<const FilterInterface> pappso::FilterInterfaceCstSPtr

Definition at line 47 of file filterinterface.h.

◆ FilterInterfaceSPtr

typedef std::shared_ptr<FilterInterface> pappso::FilterInterfaceSPtr

Definition at line 46 of file filterinterface.h.

◆ FilterLowIntensitySignalRemovalCstSPtr

◆ FilterLowIntensitySignalRemovalSPtr

◆ FilterNameInterfaceCstSPtr

Definition at line 60 of file filternameinterface.h.

◆ FilterNameInterfaceSPtr

Definition at line 59 of file filternameinterface.h.

◆ FilterNormalizeIntensitiesCstSPtr

◆ FilterNormalizeIntensitiesSPtr

◆ FilterSavitzkyGolayCstSPtr

Definition at line 137 of file savgolfilter.h.

◆ FilterSavitzkyGolaySPtr

Definition at line 136 of file savgolfilter.h.

◆ FilterSuiteStringSPtr

Definition at line 83 of file filtersuitestring.h.

◆ GrpGroupSp

typedef std::shared_ptr<GrpGroup> pappso::GrpGroupSp

Definition at line 39 of file grpgroup.h.

◆ GrpGroupSpConst

typedef std::shared_ptr<const GrpGroup> pappso::GrpGroupSpConst

Definition at line 40 of file grpgroup.h.

◆ GrpPeptideSp

typedef std::shared_ptr<GrpPeptide> pappso::GrpPeptideSp

Definition at line 40 of file grppeptide.h.

◆ GrpPeptideSpConst

typedef std::shared_ptr<const GrpPeptide> pappso::GrpPeptideSpConst

Definition at line 39 of file grppeptide.h.

◆ GrpProteinSp

typedef std::shared_ptr<GrpProtein> pappso::GrpProteinSp

Definition at line 37 of file grpprotein.h.

◆ GrpProteinSpConst

typedef std::shared_ptr<const GrpProtein> pappso::GrpProteinSpConst

Definition at line 36 of file grpprotein.h.

◆ GrpSubGroupSp

typedef std::shared_ptr<GrpSubGroup> pappso::GrpSubGroupSp

Definition at line 39 of file grpsubgroup.h.

◆ GrpSubGroupSpConst

typedef std::shared_ptr<const GrpSubGroup> pappso::GrpSubGroupSpConst

Definition at line 38 of file grpsubgroup.h.

◆ IntegrationScopeBaseCstSPtr

Definition at line 117 of file integrationscopebase.h.

◆ IntegrationScopeBaseSPtr

Definition at line 116 of file integrationscopebase.h.

◆ IntegrationScopeCstSPtr

typedef std::shared_ptr<const IntegrationScope> pappso::IntegrationScopeCstSPtr

Definition at line 98 of file integrationscope.h.

◆ IntegrationScopeRectCstSPtr

Definition at line 94 of file integrationscoperect.h.

◆ IntegrationScopeRectSPtr

Definition at line 93 of file integrationscoperect.h.

◆ IntegrationScopeRhombCstSPtr

Definition at line 149 of file integrationscoperhomb.h.

◆ IntegrationScopeRhombSPtr

Definition at line 147 of file integrationscoperhomb.h.

◆ IntegrationScopeSpecCstSPtr

Definition at line 176 of file integrationscopebase.h.

◆ IntegrationScopeSpecSPtr

Definition at line 175 of file integrationscopebase.h.

◆ IntegrationScopeSpecVector

Definition at line 105 of file filterresample.h.

◆ IntegrationScopeSPtr

Definition at line 97 of file integrationscope.h.

◆ MapTraceCstSPtr

typedef std::shared_ptr<const MapTrace> pappso::MapTraceCstSPtr

Definition at line 29 of file maptrace.h.

◆ MapTraceSPtr

typedef std::shared_ptr<MapTrace> pappso::MapTraceSPtr

Definition at line 28 of file maptrace.h.

◆ MassSpectrumCombinerCstSPtr

Definition at line 22 of file massspectrumcombiner.h.

◆ MassSpectrumCombinerSPtr

Definition at line 23 of file massspectrumcombiner.h.

◆ MassSpectrumCstSPtr

typedef std::shared_ptr<const MassSpectrum> pappso::MassSpectrumCstSPtr

Definition at line 54 of file massspectrum.h.

◆ MassSpectrumMinusCombinerCstSPtr

Definition at line 17 of file massspectrumminuscombiner.h.

◆ MassSpectrumMinusCombinerSPtr

◆ MassSpectrumPlusCombinerCstSPtr

Definition at line 16 of file massspectrumpluscombiner.h.

◆ MassSpectrumPlusCombinerSPtr

◆ MassSpectrumSPtr

typedef std::shared_ptr<MassSpectrum> pappso::MassSpectrumSPtr

Definition at line 53 of file massspectrum.h.

◆ MsFileAccessorCstSPtr

typedef std::shared_ptr<const MsFileAccessor> pappso::MsFileAccessorCstSPtr

Definition at line 128 of file msfileaccessor.h.

◆ MsFileAccessorSPtr

typedef std::shared_ptr<MsFileAccessor> pappso::MsFileAccessorSPtr

Definition at line 127 of file msfileaccessor.h.

◆ MsRunDataSetTreeCstSPtr

typedef std::shared_ptr<const MsRunDataSetTree> pappso::MsRunDataSetTreeCstSPtr

Definition at line 26 of file msrundatasettree.h.

◆ MsRunDataSetTreeNodeCstSPtr

Definition at line 30 of file msrundatasettreenode.h.

◆ MsRunDataSetTreeNodeSPtr

Definition at line 29 of file msrundatasettreenode.h.

◆ MsRunDataSetTreeSPtr

Definition at line 25 of file msrundatasettree.h.

◆ MsRunIdCstSPtr

typedef std::shared_ptr<const MsRunId> pappso::MsRunIdCstSPtr

Definition at line 46 of file msrunid.h.

◆ MsRunIdSPtr

typedef std::shared_ptr<MsRunId> pappso::MsRunIdSPtr

Definition at line 45 of file msrunid.h.

◆ MsRunReaderCstSPtr

typedef std::shared_ptr<const MsRunReader> pappso::MsRunReaderCstSPtr

Definition at line 58 of file msrunreader.h.

◆ MsRunReaderSPtr

typedef std::shared_ptr<MsRunReader> pappso::MsRunReaderSPtr

Definition at line 57 of file msrunreader.h.

◆ MsRunSliceSPtr

typedef std::shared_ptr<const MsRunSlice> pappso::MsRunSliceSPtr

Definition at line 40 of file msrunslice.h.

◆ MsRunXicExtractorInterfaceSp

◆ MzCalibrationInterfaceSPtr

Definition at line 38 of file mzcalibrationinterface.h.

◆ NamespaceClassnamePairAsKey

using pappso::NamespaceClassnamePairAsKey = std::pair<QString, QString>

Definition at line 49 of file jsclassregistrar.h.

◆ NoConstPeptideSp

typedef std::shared_ptr<Peptide> pappso::NoConstPeptideSp

Definition at line 98 of file peptide.h.

◆ pappso_double

typedef double pappso::pappso_double

A type definition for doubles.

Definition at line 60 of file types.h.

◆ pappso_float

typedef float pappso::pappso_float

Definition at line 65 of file types.h.

◆ PeakIonIsotopeMatchCstSPtr

Definition at line 34 of file peakionisotopematch.h.

◆ PeptideFragmentIonListBaseSp

Definition at line 42 of file peptidefragmentionlistbase.h.

◆ PeptideFragmentIonSp

typedef std::shared_ptr<const PeptideFragmentIon> pappso::PeptideFragmentIonSp

Definition at line 46 of file peptidefragmention.h.

◆ PeptideFragmentSp

typedef std::shared_ptr<const PeptideFragment> pappso::PeptideFragmentSp

Definition at line 45 of file peptidefragment.h.

◆ PeptideInterfaceSp

typedef std::shared_ptr<const PeptideInterface> pappso::PeptideInterfaceSp

Definition at line 40 of file peptideinterface.h.

◆ PeptideNaturalIsotopeAverageSp

◆ PeptideNaturalIsotopeListSp

Definition at line 45 of file peptidenaturalisotopelist.h.

◆ PeptideNaturalIsotopeSp

Definition at line 43 of file peptidenaturalisotope.h.

◆ PeptideSp

typedef std::shared_ptr< const Peptide > pappso::PeptideSp

Definition at line 48 of file aamodification.h.

◆ PeptideStr

typedef QString pappso::PeptideStr

A type definition for PeptideStr.

Definition at line 55 of file types.h.

◆ PrecisionPtr

Definition at line 122 of file precision.h.

◆ ProteinSp

typedef std::shared_ptr<const Protein> pappso::ProteinSp

shared pointer on a Protein object

Definition at line 47 of file protein.h.

◆ QualifiedMassSpectrumCstSPtr

Definition at line 45 of file qualifiedmassspectrum.h.

◆ QualifiedMassSpectrumSPtr

Definition at line 43 of file qualifiedmassspectrum.h.

◆ QualifiedXicSp

typedef std::shared_ptr<Xic> pappso::QualifiedXicSp

Definition at line 42 of file qualifiedxic.h.

◆ RegisterFunc

using pappso::RegisterFunc = std::function<void(QJSEngine *)>

Definition at line 50 of file jsclassregistrar.h.

◆ TimsDataSp

typedef std::shared_ptr<TimsData> pappso::TimsDataSp

shared pointer on a TimsData object

Definition at line 54 of file timsdata.h.

◆ TimsFrameBaseCstSPtr

typedef std::shared_ptr<const TimsFrameBase> pappso::TimsFrameBaseCstSPtr

Definition at line 43 of file timsframebase.h.

◆ TimsFrameBaseSPtr

typedef std::shared_ptr<TimsFrameBase> pappso::TimsFrameBaseSPtr

Definition at line 42 of file timsframebase.h.

◆ TimsFrameCstSPtr

typedef std::shared_ptr<const TimsFrame> pappso::TimsFrameCstSPtr

Definition at line 44 of file timsframe.h.

◆ TimsFramesMsRunReaderCstSPtr

Definition at line 76 of file timsframesmsrunreader.h.

◆ TimsFramesMsRunReaderSPtr

Definition at line 75 of file timsframesmsrunreader.h.

◆ TimsFrameSPtr

typedef std::shared_ptr<TimsFrame> pappso::TimsFrameSPtr

Definition at line 43 of file timsframe.h.

◆ TimsMsRunReaderMs2SPtr

Definition at line 19 of file msfileaccessor.h.

◆ TraceCombinerCstSPtr

typedef std::shared_ptr<const TraceCombiner> pappso::TraceCombinerCstSPtr

Definition at line 19 of file tracecombiner.h.

◆ TraceCombinerSPtr

typedef std::shared_ptr<TraceCombiner> pappso::TraceCombinerSPtr

Definition at line 20 of file tracecombiner.h.

◆ TraceCstSPtr

typedef std::shared_ptr<const Trace> pappso::TraceCstSPtr

Definition at line 140 of file trace.h.

◆ TraceDetectionInterfaceCstSPtr

Definition at line 35 of file tracedetectioninterface.h.

◆ TraceDetectionInterfaceSPtr

Definition at line 33 of file tracedetectioninterface.h.

◆ TraceIterator

using pappso::TraceIterator = std::vector<DataPoint>::const_iterator

Definition at line 23 of file localsignaltonoiseestimator.h.

◆ TraceMinusCombinerCstSPtr

typedef std::shared_ptr<const TraceMinusCombiner> pappso::TraceMinusCombinerCstSPtr

Definition at line 22 of file traceminuscombiner.h.

◆ TraceMinusCombinerSPtr

Definition at line 23 of file traceminuscombiner.h.

◆ TracePeakCstSPtr

typedef std::shared_ptr<const TracePeak> pappso::TracePeakCstSPtr

Definition at line 35 of file tracepeak.h.

◆ TracePlusCombinerCstSPtr

typedef std::shared_ptr<const TracePlusCombiner> pappso::TracePlusCombinerCstSPtr

Definition at line 22 of file tracepluscombiner.h.

◆ TracePlusCombinerSPtr

Definition at line 23 of file tracepluscombiner.h.

◆ TraceSPtr

typedef std::shared_ptr<Trace> pappso::TraceSPtr

Definition at line 139 of file trace.h.

◆ uint

typedef unsigned int pappso::uint

Definition at line 67 of file types.h.

◆ XicCoordSPtr

typedef std::shared_ptr<XicCoord> pappso::XicCoordSPtr

Definition at line 44 of file xiccoord.h.

◆ XicCoordTimsSPtr

typedef std::shared_ptr<XicCoordTims> pappso::XicCoordTimsSPtr

Definition at line 40 of file xiccoordtims.h.

◆ XicCstSPtr

typedef std::shared_ptr<const Xic> pappso::XicCstSPtr

Definition at line 38 of file xic.h.

◆ XicSPtr

typedef std::shared_ptr<Xic> pappso::XicSPtr

Definition at line 39 of file xic.h.

◆ XicXicPeakPairList

typedef std::vector<std::pair<XicCstSPtr, TracePeakCstSPtr> > pappso::XicXicPeakPairList

Definition at line 45 of file xicwidget.h.

Enumeration Type Documentation

◆ AtomIsotope

◆ DataDimension

enum class pappso::DataDimension
strong
Enumerator
NOT_SET 
HORIZONTAL 
VERTICAL 

Definition at line 34 of file selectionpolygon.h.

◆ DeepProtMatchType

enum class pappso::DeepProtMatchType : std::uint8_t
strong

definition of different class of PSMs used by DeepProt

Enumerator
uncategorized 

precursor mass was not compared

ZeroMassDelta 

peptide candidate is in precursor mz range

ZeroMassDeltaMissedCleavage 

peptide candidate with missed cleavage is in precursor mz range

ZeroMassDeltaSemiTryptic 

semi tryptic peptide candidate is in precursor mz range

DeltaPosition 

spectrum shifter on peptide candidate has detected a position for the mass delta

NoDeltaPosition 

spectrum shifter on peptide candidate has not detected a position for the mass delta

last 

Definition at line 41 of file deepprotenum.h.

42{
43 uncategorized = 0, ///< precursor mass was not compared
44 ZeroMassDelta = 1, ///< peptide candidate is in precursor mz range
46 2, ///< peptide candidate with missed cleavage is in precursor mz range
48 3, ///< semi tryptic peptide candidate is in precursor mz range
49 DeltaPosition = 4, ///< spectrum shifter on peptide candidate has detected a
50 ///< position for the mass delta
51 NoDeltaPosition = 5, ///< spectrum shifter on peptide candidate has not
52 ///< detected a position for the mass delta
53 last = 6
54};
@ ZeroMassDeltaMissedCleavage
peptide candidate with missed cleavage is in precursor mz range
@ uncategorized
precursor mass was not compared
@ ZeroMassDelta
peptide candidate is in precursor mz range
@ ZeroMassDeltaSemiTryptic
semi tryptic peptide candidate is in precursor mz range

◆ DeepProtPeptideCandidateStatus

enum class pappso::DeepProtPeptideCandidateStatus : std::uint8_t
strong

definition of different status for potential peptide candidates on the same spectrum

Enumerator
unmodified 

precursor mass was not compared

ZeroMassDelta 
CterRemoval 
NterRemoval 
MissedCleavage 
DeltaPosition 
NoDeltaPosition 
last 

Definition at line 60 of file deepprotenum.h.

61{
62 unmodified = 0, ///< precursor mass was not compared
63 ZeroMassDelta = 1,
64 CterRemoval = 2,
65 NterRemoval = 3,
67 DeltaPosition = 5,
69 last = 7
70};
@ unmodified
precursor mass was not compared

◆ DragDirections

enum class pappso::DragDirections
strong
Enumerator
NOT_SET 
LEFT_TO_RIGHT 
RIGHT_TO_LEFT 
TOP_TO_BOTTOM 
BOTTOM_TO_TOP 

Definition at line 32 of file baseplotcontext.h.

◆ IntegrationScopeFeatures

Enumerator
FAILURE 
SUCCESS 
FLAT_ON_X_AXIS 
FLAT_ON_Y_AXIS 
RHOMBOID_VERTICAL 
RHOMBOID_HORIZONTAL 
NOT_PRINTABLE 
FLAT_ON_ANY_AXIS 

Definition at line 46 of file integrationscopebase.h.

47{
48 // This one needs to be 0 because of (if!<function>() syntax)
49 FAILURE = 0x0000,
50 // As soon as not 0, success and potentially with more info.
51 SUCCESS = 1 << 1,
52 FLAT_ON_X_AXIS = 1 << 2,
53 FLAT_ON_Y_AXIS = 1 << 3,
54 RHOMBOID_VERTICAL = 1 << 4,
55 RHOMBOID_HORIZONTAL = 1 << 5,
56 NOT_PRINTABLE = 1 << 6,
58};

◆ MsRunReadConfigParameter

Enumerator
TimsFrameIonMobScanIndexBegin 
TimsFrameIonMobScanIndexEnd 
TimsFrameIonMobOneOverK0Begin 
TimsFrameIonMobOneOverK0End 
MzRangeBegin 
MzRangeEnd 
TimsFrameMzIndexMergeWindow 

Definition at line 35 of file msrunreadconfig.h.

36{
37 // Only process mobility scans contained in the
38 // scan index range below.
41
42 // Only process mobility scans contained in the
43 // inverse mobility range below.
46
47 // Only process mass spectra for m/z values contained
48 // in the following m/z range.
51
52 // Merge m/z (TOF, really) indices on the basis of this
53 // count of m/z (TOF, really) indices.
55};

◆ MsRunXicExtractorFactoryType

enum class pappso::MsRunXicExtractorFactoryType : std::int8_t
strong
Enumerator
nose 

default factory

direct 

build a simple XIC extractor that directly uses Proeowizard library to read and extract XICs building the xic extractor is fast, but extracting each XIC is slow

disk 

build Xic extractor that first read the whole MsRun, put it on disk and extract XICs more quickly This needs some space on disk to store slices (1 dalton each) building the XIC extractor is slow extracting XIC from slices is a very quick operation

diskbuffer 

build Xic extractor that first read the whole MsRun, put it on disk using a write cache and extract XICs more quickly This needs some space on disk to store slices (1 dalton each) building the XIC extractor is slower than buildMsRunXicExtractorPwizSp, but faster than buildMsRunXicExtractorDiskSp extracting XIC from slices is a very quick operation

Definition at line 45 of file msrunxicextractorfactory.h.

46{
47 nose = 0, ///< default factory
48 direct = 1, ///< build a simple XIC extractor that directly uses Proeowizard
49 ///< library to read and extract XICs building the xic extractor
50 ///< is fast, but extracting each XIC is slow
51 disk = 2, ///< build Xic extractor that first read the whole MsRun, put it on
52 ///< disk and extract XICs more quickly This needs some space on
53 ///< disk to store slices (1 dalton each) building the XIC extractor
54 ///< is slow extracting XIC from slices is a very quick operation
56 3, ///< build Xic extractor that first read the whole MsRun, put it on disk
57 ///< using a write cache and extract XICs more quickly This needs some
58 ///< space on disk to store slices (1 dalton each) building the XIC
59 ///< extractor is slower than buildMsRunXicExtractorPwizSp, but faster
60 ///< than buildMsRunXicExtractorDiskSp extracting XIC from slices is a
61 ///< very quick operation
62};

◆ PeptideDirection

enum class pappso::PeptideDirection : std::int8_t
strong
Enumerator
Nter 
Cter 

Definition at line 46 of file peptide.h.

47{
48 Nter = 0,
49 Cter = 1
50};

◆ PeptideIonCter

enum class pappso::PeptideIonCter
strong
Enumerator
ystar 
yo 
yp 

Definition at line 85 of file peptide.h.

◆ PeptideIonNter

enum class pappso::PeptideIonNter
strong
Enumerator
bstar 
bo 
astar 
ao 
bp 

Definition at line 72 of file peptide.h.

◆ PointSpec

enum class pappso::PointSpec
strong
Enumerator
TOP_LEFT_POINT 
TOP_RIGHT_POINT 
BOTTOM_RIGHT_POINT 
BOTTOM_LEFT_POINT 
ENUM_LAST 

Definition at line 23 of file selectionpolygon.h.

24{
25 // Starting top left and then clockwise
30 ENUM_LAST = 4,
31};

◆ ProjectParamCategory

enum class pappso::ProjectParamCategory : std::int8_t
strong
Enumerator
undefined 

undefined

general 

concerning the whole process

identification 

concerning identification

filter 

concerning filters (psm, peptide, protein validation)

quantification 

quantification

instrument 

information about instrument

Definition at line 43 of file projectparameters.h.

44{
45 undefined = 0, ///< undefined
46 general = 1, ///< concerning the whole process
47 identification = 2, ///< concerning identification
48 filter = 3, ///< concerning filters (psm, peptide, protein validation)
49 quantification = 4, ///< quantification
50 instrument = 5, ///< information about instrument
51};
@ identification
concerning identification
@ instrument
information about instrument
@ general
concerning the whole process
@ filter
concerning filters (psm, peptide, protein validation)

◆ QualifiedMassSpectrumParameter

Enumerator
IonMobOneOverK0 

1/kO value

IonMobOneOverK0Begin 

1/K0 range's begin value

IonMobOneOverK0End 

1/K0 range's end value

TimsIonMobScanIndex 
TimsFrameIonMobScanIndexBegin 
TimsFrameIonMobScanIndexEnd 
IsolationMz 

Isolation m/z value.

IsolationMzWidth 

m/z isolation window width (left + right)

CollisionEnergy 

Bruker's timsTOF collision energy.

BrukerPrecursorIndex 

Bruker's timsTOF precursor index.

TimsFrameScansCount 

Bruker's timsTOF frame's total ion mobility slots.

TimsFrameMzIndexBegin 

Bruker's timsTOF mz index frame start range.

TimsFrameMzIndexEnd 

Bruker's timsTOF mz index frame end range.

ScanNumber 

Scan number: Ordinal number of the scan indicating its order of acquisition within a mass spectrometry acquisition run. MS_scan_number = 1003057,

last 

Definition at line 47 of file qualifiedmassspectrum.h.

48{
49
50 IonMobOneOverK0, ///< 1/kO value
51 IonMobOneOverK0Begin, ///< 1/K0 range's begin value
52 IonMobOneOverK0End, ///< 1/K0 range's end value
53
57
58 IsolationMz, ///< Isolation m/z value
59 IsolationMzWidth, ///< m/z isolation window width (left + right)
60
61 CollisionEnergy, ///< Bruker's timsTOF collision energy
62 BrukerPrecursorIndex, ///< Bruker's timsTOF precursor index
63 TimsFrameScansCount, ///< Bruker's timsTOF frame's total ion mobility slots
64
65 TimsFrameMzIndexBegin, ///< Bruker's timsTOF mz index frame start range
66 TimsFrameMzIndexEnd, ///< Bruker's timsTOF mz index frame end range
67
68 ScanNumber, ///< Scan number: Ordinal number of the scan indicating its order
69 ///< of acquisition within a mass spectrometry acquisition run.
70 ///< MS_scan_number = 1003057,
71 last
72};
@ IsolationMzWidth
m/z isolation window width (left + right)
@ TimsFrameMzIndexBegin
Bruker's timsTOF mz index frame start range.
@ CollisionEnergy
Bruker's timsTOF collision energy.
@ TimsFrameScansCount
Bruker's timsTOF frame's total ion mobility slots.
@ TimsFrameMzIndexEnd
Bruker's timsTOF mz index frame end range.
@ BrukerPrecursorIndex
Bruker's timsTOF precursor index.

◆ RangeType

enum class pappso::RangeType
strong
Enumerator
outermost 
innermost 

Definition at line 72 of file baseplotwidget.h.

◆ RawFragmentationMode

enum class pappso::RawFragmentationMode : std::int8_t
strong
Enumerator
full 
proline_effect 

Definition at line 42 of file peptiderawfragmentmasses.h.

◆ SelectionDrawingLines

enum class pappso::SelectionDrawingLines
strong
Enumerator
NOT_SET 
TOP_LINE 
BOTTOM_LINE 
HORIZONTAL_LINES 
RIGHT_LINE 
LEFT_LINE 
VERTICAL_LINES 
FULL_POLYGON 

Definition at line 55 of file baseplotwidget.h.

56 {
57 NOT_SET = 0x0000,
58
59 TOP_LINE = 1 << 0,
60 BOTTOM_LINE = 1 << 1,
61
63
64 RIGHT_LINE = 1 << 2,
65 LEFT_LINE = 1 << 3,
66
67 VERTICAL_LINES = (RIGHT_LINE | LEFT_LINE),
68
70 };

◆ XicCoordParam

enum class pappso::XicCoordParam : std::int8_t
strong
Enumerator
TimsTofIonMobilityScanNumberStart 

TimsTOF specific ion mobility start range

TimsTofIonMobilityScanNumberStop 

TimsTOF specific ion mobility stop range

Definition at line 50 of file xiccoord.h.

51{
52 TimsTofIonMobilityScanNumberStart, ///< TimsTOF specific ion mobility start
53 ///< range
54 TimsTofIonMobilityScanNumberStop, ///< TimsTOF specific ion mobility stop
55 ///< range
56};
@ TimsTofIonMobilityScanNumberStart
Definition xiccoord.h:52

Function Documentation

◆ ABUNDANCEC12()

const pappso_double pappso::ABUNDANCEC12 ( 0. 98921194185046687152862432412803173065185546875000000000000000)

◆ ABUNDANCEC13()

const pappso_double pappso::ABUNDANCEC13 ( 0. 01078805814953308406245469086570665240287780761718750000000000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCEH2()

const pappso_double pappso::ABUNDANCEH2 ( 0. 00011570983569203332000374651045149221317842602729797363281250)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCEN15()

const pappso_double pappso::ABUNDANCEN15 ( 0. 00364198543205827118818262988497735932469367980957031250000000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCEO17()

const pappso_double pappso::ABUNDANCEO17 ( 0. 00038099847600609595965615028489992255344986915588378906250000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCEO18()

const pappso_double pappso::ABUNDANCEO18 ( 0. 00205139179443282221315669744399201590567827224731445312500000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCES33()

const pappso_double pappso::ABUNDANCES33 ( 0. 00751939844812414937003097747947322204709053039550781250000000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCES34()

const pappso_double pappso::ABUNDANCES34 ( 0. 04252059835213182203972337447339668869972229003906250000000000)

Referenced by isotopem_ratio_cache().

◆ ABUNDANCES36()

const pappso_double pappso::ABUNDANCES36 ( 0. 00010999120070394368536836893213148869108408689498901367187500)

Referenced by isotopem_ratio_cache().

◆ areaTrace()

PMSPP_LIB_DECL double pappso::areaTrace ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end )

calculate the area of a trace

Definition at line 283 of file trace.cpp.

284{
285
286 if(begin == end)
287 return 0;
288 auto previous = begin;
289 auto next = begin + 1;
290 double area = 0;
291 while(next != end)
292 {
293 area += ((next->x - previous->x) * (previous->y + next->y)) / (double)2;
294 previous++;
295 next++;
296 }
297 return area;
298}

Referenced by pappso::TracePeak::TracePeak(), and pappso::TracePeak::TracePeak().

◆ Combinations()

uint64_t pappso::Combinations ( unsigned int n,
unsigned int k )

Definition at line 47 of file peptidenaturalisotope.cpp.

48{
49 if(k > n)
50 return 0;
51
52 uint64_t r = 1;
53 if((n < CACHE_ARRAY_SIZE) && (combinations_cache[n][k] != 0))
54 {
55 return combinations_cache[n][k];
56 }
57 for(unsigned int d = 1; d <= k; ++d)
58 {
59 r *= n--;
60 r /= d;
61 }
62 if(n < CACHE_ARRAY_SIZE)
63 {
64 combinations_cache[n][k] = r;
65 }
66 return r;
67}
uint64_t combinations_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
#define CACHE_ARRAY_SIZE

References CACHE_ARRAY_SIZE, and combinations_cache.

Referenced by isotopem_ratio().

◆ DIFFC12C13()

◆ DIFFH1H2()

◆ DIFFN14N15()

◆ DIFFO16O17()

◆ DIFFO16O18()

◆ DIFFS32S33()

◆ DIFFS32S34()

◆ DIFFS32S36()

◆ factorial()

unsigned int pappso::factorial ( unsigned int n)

Definition at line 43 of file xtandemhyperscore.cpp.

44{
45 unsigned int retval = 1;
46 for(int i = n; i > 1; --i)
47 retval *= i;
48 return retval;
49}

Referenced by pappso::XtandemHyperscore::XtandemHyperscore(), and pappso::XtandemHyperscoreBis::computeXtandemHyperscore().

◆ findBestTracePeakGivenRtList()

std::vector< TracePeak >::iterator pappso::findBestTracePeakGivenRtList ( std::vector< TracePeak >::iterator begin,
std::vector< TracePeak >::iterator end,
const std::vector< double > & rt_list,
std::size_t & nb_peaks )

find the best peak matching a list of retention times

Parameters
beginbegin iterator
endend iterator
rt_listretention time list in seconds
nb_peaksretrieve the number of detected peaks concerned by the retention times
Returns
iterator on the best peak (bigger area) concerned by the retention times

Definition at line 54 of file tracepeaklist.cpp.

58{
59 // get peak containing rt ahead :
60 auto itend = std::partition(begin, end, [rt_list](const TracePeak &a) {
61 for(double rt : rt_list)
62 {
63 if(a.containsRt(rt))
64 {
65 return true;
66 };
67 }
68 return false;
69 });
70 nb_peaks = std::distance(begin, itend);
71 if(nb_peaks == 0)
72 return end;
73 return std::max_element(
74 begin, itend, [](const TracePeak &a, const TracePeak &b) { return a.getArea() < b.getArea(); });
75}

References a, and b.

Referenced by pappso::masschroq::PeptideMeasurements::detectQuantifyPeaks().

◆ findComplementIonType()

PMSPP_LIB_DECL std::vector< PeakIonIsotopeMatch >::iterator pappso::findComplementIonType ( std::vector< PeakIonIsotopeMatch >::iterator begin,
std::vector< PeakIonIsotopeMatch >::iterator end,
const PeakIonIsotopeMatch & peak_ion,
std::size_t peptide_size )

find the first element containing the complementary ion complementary ion of y1 is b(n-1) for instance

Definition at line 30 of file peakionisotopematch.cpp.

34{
35
36 return std::find_if(begin, end, [peak_ion, peptide_size](const PeakIonIsotopeMatch &to_compare) {
37 if(to_compare.getCharge() == peak_ion.getCharge())
38 {
39 if((to_compare.getPeptideFragmentIonSp().get()->size() +
40 peak_ion.getPeptideFragmentIonSp().get()->size()) == peptide_size)
41 {
43 peak_ion.getPeptideIonType()))
44 {
45 if(to_compare.getPeptideNaturalIsotopeAverageSp().get()->getIsotopeNumber() ==
47 {
48 return true;
49 }
50 }
51 }
52 }
53
54 return false;
55 });
56}
virtual const PeptideNaturalIsotopeAverageSp & getPeptideNaturalIsotopeAverageSp() const
virtual const PeptideFragmentIonSp & getPeptideFragmentIonSp() const
Enums::PeptideIon getPeptideIonType() const
unsigned int getCharge() const
virtual unsigned int size() const override
bool peptideIonTypeIsComplement(Enums::PeptideIon ion_type_ref, Enums::PeptideIon ion_type)
tells if an ion type is the complement ion of the other
Definition peptide.cpp:70

References pappso::PeakIonMatch::getCharge(), pappso::PeptideNaturalIsotopeAverage::getIsotopeNumber(), pappso::PeakIonMatch::getPeptideFragmentIonSp(), pappso::PeakIonMatch::getPeptideIonType(), pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp(), peptideIonTypeIsComplement(), and pappso::PeptideFragmentIon::size().

Referenced by pappso::PsmFeatures::findComplementIonPairs().

◆ findDifferentYvalue() [1/2]

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::findDifferentYvalue ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
const double & y_value )

Definition at line 136 of file trace.cpp.

139{
140 return std::find_if(begin, end, [y_value](const DataPoint &to_compare) {
141 if(to_compare.y != y_value)
142 {
143 return true;
144 }
145
146 return false;
147 });
148}
pappso_double y
Definition datapoint.h:25

References pappso::DataPoint::y.

◆ findDifferentYvalue() [2/2]

PMSPP_LIB_DECL std::vector< DataPoint >::iterator pappso::findDifferentYvalue ( std::vector< DataPoint >::iterator begin,
std::vector< DataPoint >::iterator end,
const double & y_value )

find the first element in which Y is different of value

Definition at line 121 of file trace.cpp.

124{
125 return std::find_if(begin, end, [y_value](const DataPoint &to_compare) {
126 if(to_compare.y != y_value)
127 {
128 return true;
129 }
130
131 return false;
132 });
133}

References pappso::DataPoint::y.

Referenced by pappso::FilterMorphoAntiSpike::filter().

◆ findFirstEqualOrGreaterX() [1/2]

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::findFirstEqualOrGreaterX ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
const double & value )

Definition at line 79 of file trace.cpp.

82{
83 return std::find_if(begin, end, [value](const DataPoint &to_compare) {
84 if(to_compare.x < value)
85 {
86 return false;
87 }
88 return true;
89 });
90}
pappso_double x
Definition datapoint.h:24

References pappso::DataPoint::x.

◆ findFirstEqualOrGreaterX() [2/2]

PMSPP_LIB_DECL std::vector< DataPoint >::iterator pappso::findFirstEqualOrGreaterX ( std::vector< DataPoint >::iterator begin,
std::vector< DataPoint >::iterator end,
const double & value )

find the first element in which X is equal or greater than the value searched important : it implies that Trace is sorted by X

Definition at line 65 of file trace.cpp.

68{
69 return std::find_if(begin, end, [value](const DataPoint &to_compare) {
70 if(to_compare.x < value)
71 {
72 return false;
73 }
74 return true;
75 });
76}

References pappso::DataPoint::x.

Referenced by pappso::TraceDetectionZivy::detect(), pappso::FilterResampleKeepSmaller::filter(), pappso::FilterResampleKeepXRange::filter(), pappso::FilterResampleRemoveXRange::filter(), pappso::specglob::ExperimentalSpectrum::findMz(), pappso::Trace::maxY(), and pappso::Trace::sumY().

◆ findFirstGreaterX() [1/2]

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::findFirstGreaterX ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
const double & value )

Definition at line 107 of file trace.cpp.

110{
111 return std::find_if(begin, end, [value](const DataPoint &to_compare) {
112 if(to_compare.x > value)
113 {
114 return true;
115 }
116 return false;
117 });
118}

References pappso::DataPoint::x.

◆ findFirstGreaterX() [2/2]

PMSPP_LIB_DECL std::vector< DataPoint >::iterator pappso::findFirstGreaterX ( std::vector< DataPoint >::iterator begin,
std::vector< DataPoint >::iterator end,
const double & value )

find the first element in which X is greater than the value searched important : it implies that Trace is sorted by X

Definition at line 93 of file trace.cpp.

96{
97 return std::find_if(begin, end, [value](const DataPoint &to_compare) {
98 if(to_compare.x > value)
99 {
100 return true;
101 }
102 return false;
103 });
104}

References pappso::DataPoint::x.

Referenced by pappso::FilterResampleKeepGreater::filter(), pappso::FilterResampleKeepXRange::filter(), pappso::FilterResampleRemoveXRange::filter(), pappso::Trace::maxY(), and pappso::Trace::sumY().

◆ findTracePeakGivenRt()

std::vector< TracePeak >::iterator pappso::findTracePeakGivenRt ( std::vector< TracePeak >::iterator begin,
std::vector< TracePeak >::iterator end,
double rt )

find the peak matching a retention time

Parameters
beginbegin iterator
endend iterator
rtretention time in seconds
Returns
iterator on the peak concerned by the retention time

Definition at line 78 of file tracepeaklist.cpp.

81{
82 return find_if(begin, end, [rt](const TracePeak &a) { return a.containsRt(rt); });
83}

References a.

Referenced by pappso::masschroq::MbrPeptideMeasurements::detectQuantifyPeaks().

◆ flooredLocalMaxima()

PMSPP_LIB_DECL Trace pappso::flooredLocalMaxima ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
double y_floor )

Definition at line 302 of file trace.cpp.

305{
306 Trace local_maxima_trace;
307
308 Trace single_peak_trace;
309
310 DataPoint previous_data_point;
311
312 for(auto iter = begin; iter != end; ++iter)
313 {
314 DataPoint iterated_data_point(iter->x, iter->y);
315
316 // qDebug().noquote() << "Current data point:"
317 //<< iterated_data_point.toString();
318
319 if(iterated_data_point.y < y_floor)
320 {
321 // qDebug() << "under the floor";
322
323 if(single_peak_trace.size())
324 {
325 // qDebug() << "There was a single peak trace cooking";
326
327 local_maxima_trace.push_back(single_peak_trace.maxYDataPoint());
328
329 // qDebug().noquote() << "pushed back local maximum point:"
330 //<< local_maxima_trace.back().toString();
331
332 // Clean and set the context.
333 single_peak_trace.clear();
334
335 previous_data_point = iterated_data_point;
336
337 continue;
338 }
339 else
340 {
341 // qDebug() << "no single peak trace cooking";
342
343 previous_data_point = iterated_data_point;
344
345 continue;
346 }
347 }
348 else
349 {
350 // qDebug() << "over the floor";
351
352 // The iterated value is greater than the y_floor value, so we need to
353 // handle it.
354
355 if(iterated_data_point.y == previous_data_point.y)
356 {
357 // We are in a flat region, no need to change anything to the
358 // context, just skip the point.
359 continue;
360 }
361 else if(iterated_data_point.y > previous_data_point.y)
362 {
363 // qDebug().noquote() << "ascending in a peak";
364
365 // The previously iterated y value was smaller than the presently
366 // iterated one, so we are ascending in a peak.
367
368 // All we need to do is set the context.
369
370 single_peak_trace.push_back(iterated_data_point);
371
372 // qDebug().noquote() << "pushed back normal point:"
373 //<< single_peak_trace.back().toString();
374
375 previous_data_point = iterated_data_point;
376
377 continue;
378 }
379 else
380 {
381 // qDebug().noquote() << "started descending in a peak";
382
383 // No, the currently iterated y value is less than the previously
384 // iterated value.
385
386 single_peak_trace.push_back(iterated_data_point);
387
388 // qDebug().noquote() << "pushed back normal point:"
389 //<< single_peak_trace.back().toString();
390
391 previous_data_point = iterated_data_point;
392
393 continue;
394 }
395 }
396 }
397 // End of
398 // for(auto iter = begin; iter != end; ++iter)
399
400 // Attention, we might arrive here with a peak being created, we need to get
401 // its maximum if that peak is non-empty;
402
403 if(single_peak_trace.size())
404 {
405
406 local_maxima_trace.push_back(single_peak_trace.maxYDataPoint());
407
408 // qDebug().noquote()
409 //<< "was cooking a peak: pushed back local maximum point:"
410 //<< local_maxima_trace.back().toString();
411 }
412
413 return local_maxima_trace;
414}
A simple container of DataPoint instances.
Definition trace.h:152
const DataPoint & maxYDataPoint() const
Definition trace.cpp:966

References pappso::Trace::maxYDataPoint(), and pappso::DataPoint::y.

◆ getBinningTypeFromString()

MzIntegrationParams::BinningType pappso::getBinningTypeFromString ( const QString & text)

Definition at line 68 of file mzintegrationparams.cpp.

69{
70 std::map<MzIntegrationParams::MzIntegrationParams::BinningType,
71 QString>::const_iterator the_iterator_const =
72 std::find_if(
73 binningTypeMap.begin(),
74 binningTypeMap.end(),
75 [text](const std::pair<MzIntegrationParams::BinningType, QString> &pair) {
76 return pair.second == text;
77 });
78
79 if(the_iterator_const != binningTypeMap.end())
80 return the_iterator_const->first;
81
83}
std::map< MzIntegrationParams::BinningType, QString > binningTypeMap
Map relating the BinningType to a textual representation.

References binningTypeMap, and pappso::MzIntegrationParams::NONE.

Referenced by pappso::MzIntegrationParams::initialize().

◆ getByIntensityRatioByIsotopeNumber()

std::vector< PeptideNaturalIsotopeAverageSp > pappso::getByIntensityRatioByIsotopeNumber ( const PeptideInterfaceSp & peptide,
unsigned int charge,
PrecisionPtr precision,
unsigned int isotopeNumber,
pappso_double minimumIntensity )

/brief get a sorted (by expected intensity) vector of natural isotope average by isotope number

Definition at line 330 of file peptidenaturalisotopelist.cpp.

335{
336
337 // qDebug() << "getByIntensityRatioByIsotopeNumber begin";
338 unsigned int askedIsotopeRank;
339 unsigned int maxAskedIsotopeRank = 10;
340 pappso_double cumulativeRatio = 0;
341 std::vector<PeptideNaturalIsotopeAverageSp> v_isotopeAverageList;
342 std::vector<PeptideNaturalIsotopeAverageSp> v_isotopeAverageListResult;
343
344 std::vector<unsigned int> previousIsotopeRank;
345 bool isEmpty = false;
346 for(askedIsotopeRank = 1; (askedIsotopeRank < maxAskedIsotopeRank) && (!isEmpty);
347 askedIsotopeRank++)
348 {
349 PeptideNaturalIsotopeAverage isotopeAverage(
350 peptide, askedIsotopeRank, isotopeNumber, charge, precision);
351 isEmpty = isotopeAverage.isEmpty();
352 if(isEmpty)
353 {
354 }
355 else
356 {
357 if(std::find(previousIsotopeRank.begin(),
358 previousIsotopeRank.end(),
359 isotopeAverage.getIsotopeRank()) == previousIsotopeRank.end())
360 { // not Found
361 previousIsotopeRank.push_back(isotopeAverage.getIsotopeRank());
362 v_isotopeAverageList.push_back(isotopeAverage.makePeptideNaturalIsotopeAverageSp());
363 }
364 }
365 }
366 if(v_isotopeAverageList.size() == 0)
367 return v_isotopeAverageListResult;
368
369 // qDebug() << "getByIntensityRatioByIsotopeNumber comp";
370 std::sort(v_isotopeAverageList.begin(),
371 v_isotopeAverageList.end(),
373 return (m.get()->getIntensityRatio() > n.get()->getIntensityRatio());
374 });
375
376 cumulativeRatio = 0;
377 auto it = v_isotopeAverageList.begin();
378 v_isotopeAverageListResult.clear();
379 // qDebug() << "getByIntensityRatioByIsotopeNumber cumul";
380 while((it != v_isotopeAverageList.end()) && (cumulativeRatio < minimumIntensity))
381 {
382 cumulativeRatio += it->get()->getIntensityRatio();
383 v_isotopeAverageListResult.push_back(*it);
384 it++;
385 }
386
387 // qDebug() << "getByIntensityRatioByIsotopeNumber end";
388
389 return v_isotopeAverageListResult;
390}
double pappso_double
A type definition for doubles.
Definition types.h:60
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp

References pappso::PeptideNaturalIsotopeAverage::getIsotopeRank(), pappso::PeptideNaturalIsotopeAverage::isEmpty(), and pappso::PeptideNaturalIsotopeAverage::makePeptideNaturalIsotopeAverageSp().

◆ getNameSpaceClassNameJsConstructorRegistrarMap()

PMSPP_LIB_DECL std::unordered_map< NamespaceClassnamePairAsKey, RegisterFunc, NamespaceClassnameAsKeyHash, AreNamespaceClassnamePairsEqual > & pappso::getNameSpaceClassNameJsConstructorRegistrarMap ( )

◆ getPeptideIonDirection()

PMSPP_LIB_DECL PeptideDirection pappso::getPeptideIonDirection ( Enums::PeptideIon ion_type)

get the direction of a peptide ion

Parameters
ion_typethe ion to test
Returns
the peptide direction

Definition at line 97 of file peptide.cpp.

98{
99 if(peptideIonIsNter(ion_type))
100 {
102 }
104}
bool peptideIonIsNter(Enums::PeptideIon ion_type)
tells if an ion is Nter
Definition peptide.cpp:87

References Cter, Nter, and peptideIonIsNter().

Referenced by pappso::PeptideFragmentIon::PeptideFragmentIon(), and pappso::PeptideFragmentIon::getPeptideIonDirection().

◆ incrementByValueX()

PMSPP_LIB_DECL Trace pappso::incrementByValueX ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
double increment )

Definition at line 418 of file trace.cpp.

421{
422 Trace trace;
423 trace.reserve(std::distance(begin, end) + 1);
424
425 std::vector<DataPoint>::const_iterator the_iterator = begin;
426
427 while(the_iterator != end)
428 {
429 trace.append({the_iterator->x + increment, the_iterator->y});
430 ++the_iterator;
431 }
432
433 return trace;
434}
size_t append(const DataPoint &data_point)
appends a datapoint and return new size
Definition trace.cpp:657

References pappso::Trace::append().

◆ incrementByValueY()

PMSPP_LIB_DECL Trace pappso::incrementByValueY ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
double increment )

Definition at line 437 of file trace.cpp.

440{
441 Trace trace;
442 trace.reserve(std::distance(begin, end) + 1);
443
444 std::vector<DataPoint>::const_iterator the_iterator = begin;
445
446 while(the_iterator != end)
447 {
448 trace.append({the_iterator->x, the_iterator->y + increment});
449 ++the_iterator;
450 }
451
452 return trace;
453}

References pappso::Trace::append().

◆ isotopem_ratio()

pappso_double pappso::isotopem_ratio ( pappso_double abundance,
unsigned int total,
unsigned int heavy )

Definition at line 79 of file peptidenaturalisotope.cpp.

80{
81 return (pow(abundance, heavy) * pow((double)1 - abundance, (total - heavy)) *
82 (double)Combinations(total, heavy));
83}
uint64_t Combinations(unsigned int n, unsigned int k)

References Combinations().

Referenced by isotopem_ratio_cache().

◆ isotopem_ratio_cache()

pappso_double pappso::isotopem_ratio_cache ( Enums::Isotope isotope,
unsigned int total,
unsigned int heavy )

Definition at line 95 of file peptidenaturalisotope.cpp.

96{
97 pappso_double abundance = 1;
98 switch(isotope)
99 {
101 abundance = ABUNDANCEH2;
102 if(total < CACHE_ARRAY_SIZE)
103 {
104 if(ratioH2_cache[total][heavy] == 0)
105 {
106 ratioH2_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
107 }
108 return ratioH2_cache[total][heavy];
109 }
110 break;
112 abundance = ABUNDANCEC13;
113 if(total < CACHE_ARRAY_SIZE)
114 {
115 if(ratioC13_cache[total][heavy] == 0)
116 {
117 ratioC13_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
118 }
119 return ratioC13_cache[total][heavy];
120 }
121 break;
123 abundance = ABUNDANCEN15;
124 if(total < CACHE_ARRAY_SIZE)
125 {
126 if(ratioN15_cache[total][heavy] == 0)
127 {
128 ratioN15_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
129 }
130 return ratioN15_cache[total][heavy];
131 }
132 break;
134 abundance = ABUNDANCEO18;
135 if(total < CACHE_ARRAY_SIZE)
136 {
137 if(ratioO18_cache[total][heavy] == 0)
138 {
139 ratioO18_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
140 }
141 return ratioO18_cache[total][heavy];
142 }
143 break;
145 abundance = ABUNDANCEO17;
146 if(total < CACHE_ARRAY_SIZE)
147 {
148 if(ratioO17_cache[total][heavy] == 0)
149 {
150 ratioO17_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
151 }
152 return ratioO17_cache[total][heavy];
153 }
154 break;
156 abundance = ABUNDANCES33;
157 if(total < CACHE_ARRAY_SIZE)
158 {
159 if(ratioS33_cache[total][heavy] == 0)
160 {
161 ratioS33_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
162 }
163 return ratioS33_cache[total][heavy];
164 }
165 break;
167 abundance = ABUNDANCES34;
168 if(total < CACHE_ARRAY_SIZE)
169 {
170 if(ratioS34_cache[total][heavy] == 0)
171 {
172 ratioS34_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
173 }
174 return ratioS34_cache[total][heavy];
175 }
176 break;
178 abundance = ABUNDANCES36;
179 if(total < CACHE_ARRAY_SIZE)
180 {
181 if(ratioS36_cache[total][heavy] == 0)
182 {
183 ratioS36_cache[total][heavy] = isotopem_ratio(abundance, total, heavy);
184 }
185 return ratioS36_cache[total][heavy];
186 }
187 break;
188 default:
189 break;
190 }
191 return isotopem_ratio(abundance, total, heavy);
192}
pappso_double ratioO17_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
const pappso_double ABUNDANCES36(0.00010999120070394368536836893213148869108408689498901367187500)
pappso_double ratioS34_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
const pappso_double ABUNDANCEN15(0.00364198543205827118818262988497735932469367980957031250000000)
pappso_double ratioC13_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
pappso_double isotopem_ratio(pappso_double abundance, unsigned int total, unsigned int heavy)
pappso_double ratioH2_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
const pappso_double ABUNDANCEC13(0.01078805814953308406245469086570665240287780761718750000000000)
const pappso_double ABUNDANCEO17(0.00038099847600609595965615028489992255344986915588378906250000)
const pappso_double ABUNDANCEH2(0.00011570983569203332000374651045149221317842602729797363281250)
pappso_double ratioO18_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
const pappso_double ABUNDANCES34(0.04252059835213182203972337447339668869972229003906250000000000)
pappso_double ratioS36_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
const pappso_double ABUNDANCEO18(0.00205139179443282221315669744399201590567827224731445312500000)
const pappso_double ABUNDANCES33(0.00751939844812414937003097747947322204709053039550781250000000)
pappso_double ratioN15_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]
pappso_double ratioS33_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE]

References ABUNDANCEC13(), ABUNDANCEH2(), ABUNDANCEN15(), ABUNDANCEO17(), ABUNDANCEO18(), ABUNDANCES33(), ABUNDANCES34(), ABUNDANCES36(), pappso::Enums::C13, CACHE_ARRAY_SIZE, pappso::Enums::H2, isotopem_ratio(), pappso::Enums::N15, pappso::Enums::O17, pappso::Enums::O18, ratioC13_cache, ratioH2_cache, ratioN15_cache, ratioO17_cache, ratioO18_cache, ratioS33_cache, ratioS34_cache, ratioS36_cache, pappso::Enums::S33, pappso::Enums::S34, and pappso::Enums::S36.

Referenced by pappso::PeptideNaturalIsotope::PeptideNaturalIsotope(), and pappso::PeptideNaturalIsotope::getIntensityRatio().

◆ MASSCARBON()

◆ MASSCO()

const pappso_double pappso::MASSCO ( MASSCARBON+ MASSOXYGEN)

References MASSCARBON(), and MASSOXYGEN().

◆ MASSH2O()

◆ MASSNH3()

const pappso_double pappso::MASSNH3 ( (MPROTIUM *3)+ MASSNITROGEN)

References MASSNITROGEN(), and MPROTIUM().

◆ MASSNITROGEN()

◆ MASSOXYGEN()

◆ MASSPHOSPHORUS()

const pappso_double pappso::MASSPHOSPHORUS ( 30. 973761998)

◆ MASSPHOSPHORYLATEDR()

const pappso_double pappso::MASSPHOSPHORYLATEDR ( MPROTIUM+(MASSOXYGEN *3)+ MASSPHOSPHORUS)

◆ MASSSELENIUM()

const pappso_double pappso::MASSSELENIUM ( 79. 916520)

◆ MASSSULFUR()

◆ maxYDataPoint() [1/2]

◆ maxYDataPoint() [2/2]

PMSPP_LIB_DECL std::vector< DataPoint >::iterator pappso::maxYDataPoint ( std::vector< DataPoint >::iterator begin,
std::vector< DataPoint >::iterator end )

find the element with the greatest Y value (intensity)

Definition at line 178 of file trace.cpp.

179{
180 return std::max_element(
181 begin, end, [](const DataPoint &a, const DataPoint &b) { return a.y < b.y; });
182}

References a, and b.

◆ meanYTrace()

PMSPP_LIB_DECL double pappso::meanYTrace ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end )

calculate the mean of y value of a trace

Definition at line 234 of file trace.cpp.

235{
236 pappso_double nb_element = distance(begin, end);
237 if(nb_element == 0)
238 throw ExceptionOutOfRange(QObject::tr("unable to compute mean on a trace of size 0"));
239 return (sumYTrace(begin, end, 0) / nb_element);
240}
double sumYTrace(std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end, double init)
calculate the sum of y value of a trace
Definition trace.cpp:226

References sumYTrace().

Referenced by pappso::LinearRegression::getCoefficientOfDetermination(), and pappso::FilterMorphoMean::getWindowValue().

◆ medianYTrace()

PMSPP_LIB_DECL double pappso::medianYTrace ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end )

calculate the median of y value of a trace

Definition at line 267 of file trace.cpp.

269{
270 std::size_t nb_element = distance(begin, end);
271 if(nb_element == 0)
272 throw ExceptionOutOfRange(QObject::tr("unable to compute median on a trace of size 0"));
273
274 std::vector<DataPoint> data(begin, end);
275 std::nth_element(data.begin(),
276 data.begin() + data.size() / 2,
277 data.end(),
278 [](const DataPoint &a, const DataPoint &b) { return a.y < b.y; });
279 return data[data.size() / 2].y;
280}

References a, and b.

Referenced by pappso::FilterMorphoMedian::getWindowValue().

◆ MHPLUS()

◆ minYDataPoint() [1/2]

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::minYDataPoint ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end )

Definition at line 152 of file trace.cpp.

154{
155 return std::min_element(
156 begin, end, [](const DataPoint &a, const DataPoint &b) { return a.y < b.y; });
157}

References a, and b.

Referenced by pappso::FilterCeilingAmplitudePercentage::filter(), pappso::FilterFloorAmplitudePercentage::filter(), pappso::FilterGreatestYperWindow::filter(), pappso::LinearRegression::getNrmsd(), and pappso::FilterMorphoMin::getWindowValue().

◆ minYDataPoint() [2/2]

PMSPP_LIB_DECL std::vector< DataPoint >::iterator pappso::minYDataPoint ( std::vector< DataPoint >::iterator begin,
std::vector< DataPoint >::iterator end )

find the element with the smallest Y value (intensity)

Definition at line 161 of file trace.cpp.

162{
163 return std::min_element(
164 begin, end, [](const DataPoint &a, const DataPoint &b) { return a.y < b.y; });
165}

References a, and b.

◆ moveLowerYLeftDataPoint()

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::moveLowerYLeftDataPoint ( const Trace & trace,
std::vector< DataPoint >::const_iterator begin )

Move left to the lower value.

Definition at line 206 of file trace.cpp.

207{
208 if(begin == trace.begin())
209 return begin;
210 auto it = begin - 1;
211 auto result = begin;
212
213 // As long as prev datapoint has y value less or equal to next,
214 // move along up the container. That is, continue moving if
215 // direction is downhill to the beginning of the container (its front).
216 while((it != trace.begin()) && (it->y <= result->y))
217 {
218 it--;
219 result--;
220 }
221 return result;
222}

Referenced by pappso::TraceDetectionZivy::detect().

◆ moveLowerYRigthDataPoint()

PMSPP_LIB_DECL std::vector< DataPoint >::const_iterator pappso::moveLowerYRigthDataPoint ( const Trace & trace,
std::vector< DataPoint >::const_iterator begin )

Move right to the lower value.

Definition at line 189 of file trace.cpp.

190{
191 if(begin == trace.end())
192 return begin;
193 auto it = begin + 1;
194 auto result = begin;
195 // Move along as long as next point's y value is less
196 // or equal to prev point's y value (FR, check).
197 while((it != trace.end()) && (it->y <= result->y))
198 {
199 it++;
200 result++;
201 }
202 return result;
203}

Referenced by pappso::TraceDetectionZivy::detect().

◆ MPROTIUM()

◆ MPROTON()

◆ ONEMILLION()

const pappso_double pappso::ONEMILLION ( 1000000 )

◆ operator&()

Definition at line 313 of file mzintegrationparams.h.

315{
317 static_cast<uint32_t>(a) & static_cast<uint32_t>(b));
318}

References a, and b.

◆ operator<() [1/2]

bool pappso::operator< ( Aa const & l,
Aa const & r )

Definition at line 291 of file aa.cpp.

293{
294 return l.isLesser(r);
295}

References pappso::Aa::isLesser().

◆ operator<() [2/2]

bool pappso::operator< ( const pappso::Peptide & l,
const pappso::Peptide & r )

Definition at line 46 of file peptide.cpp.

48{
49 return (l.m_aaVec < r.m_aaVec);
50}
std::vector< Aa > m_aaVec
Definition peptide.h:266

◆ operator<<() [1/3]

PMSPP_LIB_DECL QDataStream & pappso::operator<< ( QDataStream & out,
const DataPoint & dataPoint )

Definition at line 148 of file datapoint.cpp.

150{
151 out << dataPoint.x;
152 out << dataPoint.y;
153
154 return out;
155}

References pappso::DataPoint::x, and pappso::DataPoint::y.

◆ operator<<() [2/3]

PMSPP_LIB_DECL QDataStream & pappso::operator<< ( QDataStream & out,
const Trace & trace )

Definition at line 29 of file trace.cpp.

31{
32 for(auto &dataPoint : trace)
33 {
34 out << dataPoint.x;
35 out << dataPoint.y;
36 out << "\n";
37 }
38 out << "\n";
39
40 return out;
41}

◆ operator<<() [3/3]

PMSPP_LIB_DECL QDataStream & pappso::operator<< ( QDataStream & outstream,
const MassSpectrum & massSpectrum )

Definition at line 338 of file massspectrum.cpp.

340{
341 quint32 vector_size = massSpectrum.size();
342 outstream << vector_size;
343 for(auto &&peak : massSpectrum)
344 {
345 outstream << peak;
346 }
347
348 return outstream;
349}

◆ operator==() [1/2]

bool pappso::operator== ( Aa const & l,
Aa const & r )

Definition at line 286 of file aa.cpp.

287{
288 return l.isAaEqual(r);
289}

References pappso::Aa::isAaEqual().

◆ operator==() [2/2]

bool pappso::operator== ( const pappso::Peptide & l,
const pappso::Peptide & r )

Definition at line 53 of file peptide.cpp.

54{
56 return false;
58 return false;
61 return false;
64 return false;
65
66 return (l.m_aaVec == r.m_aaVec);
67}
AaModificationP getCterModification() const
Definition peptide.cpp:680
AaModificationP getCleavageCterModification() const
Definition peptide.cpp:643
AaModificationP getNterModification() const
Definition peptide.cpp:686
AaModificationP getCleavageNterModification() const
Definition peptide.cpp:638

◆ operator>>() [1/4]

PMSPP_LIB_DECL QDataStream & pappso::operator>> ( QDataStream & in,
DataPoint & dataPoint )

Definition at line 159 of file datapoint.cpp.

160{
161
162 if(in.atEnd())
163 {
164 throw PappsoException(QString("error in QDataStream unserialize operator>> of massSpectrum "
165 "dataPoint:\nread datastream failed status=%1")
166 .arg(in.status()));
167 }
168 in >> dataPoint.x;
169 in >> dataPoint.y;
170
171 return in;
172}

References pappso::DataPoint::x, and pappso::DataPoint::y.

◆ operator>>() [2/4]

PMSPP_LIB_DECL QDataStream & pappso::operator>> ( QDataStream & instream,
MassSpectrum & massSpectrum )

Definition at line 353 of file massspectrum.cpp.

354{
355 DataPoint peak;
356
357 if(!instream.atEnd())
358 {
359 quint32 vector_size;
360 instream >> vector_size;
361 qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__
362 << " vector_size=" << vector_size;
363
364 for(quint32 i = 0; i < vector_size; i++)
365 {
366
367 if(instream.status() != QDataStream::Ok)
368 {
369 throw PappsoException(QString("error in QDataStream unserialize operator>> of "
370 "massSpectrum :\nread datastream failed status=%1 "
371 "massSpectrum "
372 "i=%2 on size=%3")
373 .arg(instream.status())
374 .arg(i)
375 .arg(vector_size));
376 }
377 instream >> peak;
378 massSpectrum.push_back(peak);
379 }
380 if(instream.status() != QDataStream::Ok)
381 {
382 throw PappsoException(
383 QString("error in QDataStream unserialize operator>> of massSpectrum "
384 ":\nread datastream failed status=%1")
385 .arg(instream.status()));
386 }
387 }
388
389 return instream;
390}

◆ operator>>() [3/4]

QDataStream & pappso::operator>> ( QDataStream & instream,
MsRunSlice & slice )

Definition at line 155 of file msrunslice.cpp.

156{
157
158 quint32 vector_size = 0;
159 quint32 slice_number = 0;
160 quint32 spectrum_position = 0;
161 DataPoint peak;
162
163 if(!instream.atEnd())
164 {
165 instream >> slice_number;
166 instream >> vector_size;
167 qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__
168 << " vector_size=" << vector_size;
169 slice.setSize(vector_size);
170
171 slice.setSliceNumber(slice_number);
172 while(!instream.atEnd())
173 {
174 instream >> spectrum_position;
175 MassSpectrum spectrum;
176 try
177 {
178 instream >> spectrum;
179 }
180 catch(PappsoException &error)
181 {
182 throw PappsoException(QString("error in QDataStream unserialize operator>> of "
183 "MsRunSlice %2 on %3:\n%1")
184 .arg(error.qwhat())
185 .arg(spectrum_position)
186 .arg(vector_size));
187 }
188 slice.setSpectrum(spectrum_position, spectrum);
189
190 if(instream.status() != QDataStream::Ok)
191 {
192 throw PappsoException(QString("error in QDataStream unserialize operator>> of "
193 "MsRunSlice :\nread datastream failed status=%1")
194 .arg(instream.status()));
195 }
196 }
197 }
198
199 if(slice.size() != vector_size)
200 {
201 throw PappsoException(QString("error in QDataStream unserialize operator>> of MsRunSlice "
202 "slice.size() != vector_size :\n %1 %2:")
203 .arg(slice.size())
204 .arg(vector_size));
205 }
206
207 return instream;
208}
Class to represent a mass spectrum.
void setSpectrum(std::size_t i, const MassSpectrum &spectrum)
set the mass spectrum for a given index (retention time)
void setSliceNumber(unsigned int slice_number)
void setSize(std::size_t size)
set number of spectrum (mz/intensity) stored in this slice
std::size_t size() const

References pappso::PappsoException::qwhat(), pappso::MsRunSlice::setSize(), pappso::MsRunSlice::setSliceNumber(), pappso::MsRunSlice::setSpectrum(), and pappso::MsRunSlice::size().

◆ operator>>() [4/4]

PMSPP_LIB_DECL QDataStream & pappso::operator>> ( QDataStream & out,
Trace & trace )

Definition at line 45 of file trace.cpp.

46{
47 if(in.atEnd())
48 {
49 throw PappsoException(QString("error in QDataStream unserialize operator>> of trace:\n"
50 "read datastream failed status=%1")
51 .arg(in.status()));
52 }
53
54 for(auto &dataPoint : trace)
55 {
56 in >> dataPoint.x;
57 in >> dataPoint.y;
58 }
59
60 return in;
61}

◆ operator|()

Definition at line 305 of file mzintegrationparams.h.

307{
309 static_cast<uint32_t>(a) | static_cast<uint32_t>(b));
310}

References a, and b.

◆ operator|=()

Definition at line 321 of file mzintegrationparams.h.

323{
324 a = a | b;
325 return a;
326}

References a, and b.

◆ peptideIonIsNter()

PMSPP_LIB_DECL bool pappso::peptideIonIsNter ( Enums::PeptideIon ion_type)

tells if an ion is Nter

Parameters
ion_typethe ion to test

Definition at line 87 of file peptide.cpp.

88{
89 if((std::int8_t)ion_type < (std::int8_t)8)
90 {
91 return true;
92 }
93 return false;
94}

Referenced by pappso::PsmFeatures::findComplementIonPairs(), getPeptideIonDirection(), pappso::XtandemHyperscoreBis::getXtandemPredictedIonIntensityFactor(), peptideIonTypeIsComplement(), pappso::PeptideRawFragmentMasses::pushBackIonMasses(), and pappso::PeptideRawFragmentMasses::pushBackIonMz().

◆ peptideIonTypeIsComplement()

PMSPP_LIB_DECL bool pappso::peptideIonTypeIsComplement ( Enums::PeptideIon ion_type_ref,
Enums::PeptideIon ion_type )

tells if an ion type is the complement ion of the other

Parameters
ion_type_refthe ion type reference
ion_typethe ion to test

Definition at line 70 of file peptide.cpp.

71{
72 if(peptideIonIsNter(ion_type))
73 std::swap(ion_type_ref, ion_type);
74 if(peptideIonIsNter(ion_type))
75 return false;
76 if((ion_type_ref == Enums::PeptideIon::b) && (ion_type == Enums::PeptideIon::y))
77 return true;
78 if((ion_type_ref == Enums::PeptideIon::ao) && (ion_type == Enums::PeptideIon::yo))
79 return true;
80 if((ion_type_ref == Enums::PeptideIon::bstar) && (ion_type == Enums::PeptideIon::ystar))
81 return true;
82
83 return false;
84}
@ y
Cter amino ions.
Definition types.h:295
@ ystar
Cter amino ions + NH3 loss.
Definition types.h:296
@ yo
Cter amino ions + H2O loss.
Definition types.h:297
@ bstar
Nter acylium ions + NH3 loss.
Definition types.h:288
@ b
Nter acylium ions.
Definition types.h:287
@ ao
Nter aldimine ions + H2O loss.
Definition types.h:292

References pappso::Enums::ao, pappso::Enums::b, pappso::Enums::bstar, peptideIonIsNter(), pappso::Enums::y, pappso::Enums::yo, and pappso::Enums::ystar.

Referenced by findComplementIonType().

◆ quantileYTrace()

PMSPP_LIB_DECL double pappso::quantileYTrace ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
double quantile )

calculate the quantile of y value of a trace

Parameters
beginbegin iterator
endend iterator
quantilethe quantile value between 0 and 1
Returns
Y value at the quantile

Definition at line 244 of file trace.cpp.

247{
248 std::size_t nb_element = distance(begin, end);
249 if(nb_element == 0)
250 throw ExceptionOutOfRange(QObject::tr("unable to compute quantile on a trace of size 0"));
251
252
253 std::size_t ieth_element = std::round((double)nb_element * quantile);
254 if(ieth_element > nb_element)
255 throw ExceptionOutOfRange(QObject::tr("quantile value must be lower than 1"));
256
257
258 std::vector<DataPoint> data(begin, end);
259 std::nth_element(data.begin(),
260 data.begin() + ieth_element,
261 data.end(),
262 [](const DataPoint &a, const DataPoint &b) { return a.y < b.y; });
263 return data[ieth_element].y;
264}

References a, and b.

Referenced by pappso::FilterQuantileBasedRemoveY::filter().

◆ registerEnumsToQJSEngine()

PMSPP_LIB_DECL void pappso::registerEnumsToQJSEngine ( QJSEngine * engine)

Definition at line 30 of file pappsojsqml.cpp.

31{
32 // qDebug() << "Now registering the Enums:: enums for pappso";
33
34 // Get the meta-object for the namespace (generated by Q_NAMESPACE
35 // as stated right below the Enums namespace at types.h).
36
37 if(engine == nullptr)
38 {
39 qFatal() << "Cannot register class: engine is null";
40 }
41
42 const QMetaObject *metaObject = &Enums::staticMetaObject;
43 // qDebug() << "Namespace Enums with full name:" << metaObject->className();
44
45 QJSValue pappso_root_property;
46
47 if(engine->globalObject().hasProperty("pappso"))
48 {
49 // qDebug() << "Global object property 'pappso' already exists.";
50 pappso_root_property = engine->globalObject().property("pappso");
51 }
52 else
53 {
54 // qDebug() << "Global object property 'pappso' not found.";
55 // Create a JS object for pappso
56 pappso_root_property = engine->newObject();
57 }
58
59 // Create a nested JS object for Enums
60 QJSValue all_js_enums = engine->newObject();
61
62 // Loop through all enums and populate jsEnums
63 for(int i = 0; i < metaObject->enumeratorCount(); ++i)
64 {
65 QMetaEnum iter_meta_enum = metaObject->enumerator(i);
66
67 // qDebug() << "Now iterating in enum:" << iter_meta_enum.enumName();
68
69 QJSValue single_js_enum = engine->newObject();
70
71 for(int j = 0; j < iter_meta_enum.keyCount(); ++j)
72 {
73 // qDebug() << "Now iterating in new key:" << iter_meta_enum.key(j)
74 // << "with value:" << iter_meta_enum.value(j);
75
76 // key() would be "LEFT", with value() = 1
77 single_js_enum.setProperty(iter_meta_enum.key(j),
78 iter_meta_enum.value(j));
79 }
80
81 // name would be CapType
82 all_js_enums.setProperty(iter_meta_enum.enumName(), single_js_enum);
83 }
84
85 // Attach Enums to pappsomspp
86 pappso_root_property.setProperty("Enums", all_js_enums);
87
88 engine->globalObject().setProperty("pappso", pappso_root_property);
89
90#if 0
91
92 qDebug()
93 << "Now checking for correct exposition of Enums::enum::<key/value> pairs.";
94
95 QJSValue jsEnums =
96 engine->globalObject().property("pappso").property("Enums");
97
98 if(jsEnums.isUndefined())
99 {
100 qDebug() << "Error: pappso.Enums not found!";
101 return;
102 }
103 else
104 {
105 qDebug() << "pappso.Enums JS object exists";
106
107 // Get all enum names (properties of the Enums object)
108 QJSValue propNames =
109 engine->evaluate("Object.getOwnPropertyNames(pappso.Enums)");
110
111 if(propNames.isError())
112 {
113 qDebug() << "JS Error:" << propNames.toString();
114 return;
115 }
116
117 // Iterate through each enum
118 const QStringList enumNames = propNames.toVariant().toStringList();
119 for(const QString &enumName : enumNames)
120 {
121 QJSValue jsEnum = jsEnums.property(enumName);
122
123 if(!jsEnum.isObject())
124 {
125 qDebug() << "Skipping non-object property:" << enumName;
126 continue;
127 }
128
129 qDebug() << "\nChecking enum:" << enumName;
130
131 // Get all keys of the iterated enum
132 QJSValue enumKeys = engine->evaluate(
133 QString("Object.getOwnPropertyNames(pappso.Enums.%1)")
134 .arg(enumName));
135
136 if(enumKeys.isError())
137 {
138 qDebug() << " JS Error:" << enumKeys.toString();
139 continue;
140 }
141
142 // Print key-value pairs for the iterated enum
143 const QStringList keys = enumKeys.toVariant().toStringList();
144 for(const QString &key : keys)
145 {
146 QJSValue value = jsEnum.property(key);
147 qDebug() << " " << key << "=" << value.toInt();
148 qDebug().noquote() << "\nChecked enum: " << enumName << "member ("
149 << key << " / " << value.toInt() << ")";
150 }
151 }
152 }
153#endif
154}

◆ registerJsConstructorForEachClassInRegistrarMap()

PMSPP_LIB_DECL void pappso::registerJsConstructorForEachClassInRegistrarMap ( QJSEngine * engine)

Definition at line 22 of file jsclassregistrar.cpp.

23{
24 // qDebug() << "Registering the constructor of the classes marked for JS.";
25
26 // qsizetype count = getNameSpaceClassNameJsConstructorRegistrarMap().size();
27 // qDebug() << "Size of the map: count" << count;
28
29 // Remember, the registrar map is actually a map of map:
30
31 // Key type: pair of namespace and class name
32 // using NamespaceClassnamePairAsKey = std::pair<QString, QString>;
33 // using RegisterFunc = std::function<void(QJSEngine *)>;
34 //
35 // std::unordered_map<NamespaceClassnamePairAsKey,
36 // RegisterFunc,
37 // NsClassKeyHash,
38 // AreNamespaceClassnamePairAsKeyEqual>
39
40 for(const auto &entry : getNameSpaceClassNameJsConstructorRegistrarMap())
41 {
42 // qDebug() << "Now registering" << entry.first.first << "-" << entry.first.second;
43 entry.second(engine);
44 }
45}
std::unordered_map< NamespaceClassnamePairAsKey, RegisterFunc, NamespaceClassnameAsKeyHash, AreNamespaceClassnamePairsEqual > & getNameSpaceClassNameJsConstructorRegistrarMap()

References getNameSpaceClassNameJsConstructorRegistrarMap().

◆ registerJsConstructorForNameSpaceClassNameInRegistrarMap()

PMSPP_LIB_DECL void pappso::registerJsConstructorForNameSpaceClassNameInRegistrarMap ( const QString & name_space,
const QString & class_name,
QJSEngine * engine )

Definition at line 50 of file jsclassregistrar.cpp.

53{
54 // Remember, the registrar map is actually a map of map:
55
56 // Key type: pair of namespace and class name
57 // using NamespaceClassnamePairAsKey = std::pair<QString, QString>;
58 // using RegisterFunc = std::function<void(QJSEngine *)>;
59 //
60 // std::unordered_map<NamespaceClassnamePairAsKey,
61 // RegisterFunc,
62 // NsClassKeyHash,
63 // AreNamespaceClassnamePairAsKeyEqual>
64
65 // So, first look for a pair<NamespaceClassnamePairAsKey, RegisterFunc>
66 // having key = {name_space, class_name}, that is, a std::pair<QString,
67 // QString>. Once we get that map item, run the second member of the
68 // outer map item which actually runs the functor.
69 auto it = getNameSpaceClassNameJsConstructorRegistrarMap().find({name_space, class_name});
71 it->second(engine);
72 else
73 qWarning().noquote() << "No JS constructor registered for namespace" << name_space
74 << "and class name" << class_name;
75}

References getNameSpaceClassNameJsConstructorRegistrarMap().

◆ registerQmlTypes()

PMSPP_LIB_DECL void pappso::registerQmlTypes ( const char * uri,
int versionMajor,
int versionMinor )

Definition at line 7 of file pappsojsqml.cpp.

8{
9 Q_UNUSED(uri)
10 Q_UNUSED(versionMajor)
11 Q_UNUSED(versionMinor)
12
13 // Register the namespace meta object
14#if 0
15 // At the moment no need to register namespace pappso as metaobject.
16 qmlRegisterUncreatableMetaObject(staticMetaObject,
17 uri,
18 versionMajor,
19 versionMinor,
20 "Enums",
21 "Cannot create PappsoMS namespace");
22#endif
23 // Register other types here too
24}

◆ spline_bisection()

void pappso::spline_bisection ( const CubicSplineModel & spline_model,
double const mz_at_left,
double const mz_at_right,
double & center_peak_mz,
double & center_peak_intensity,
double const threshold )

Definition at line 241 of file cubicsplinemodel.cpp.

247{
248 // qDebug() << "spline model has" << spline_model.getKnots().size();
249
250 // calculate maximum by evaluating the spline's 1st derivative
251 // (bisection method)
252 double lefthand = mz_at_left;
253 double righthand = mz_at_right;
254
255 bool lefthand_sign = true;
256 double eps = std::numeric_limits<double>::epsilon();
257
258 // bisection
259 do
260 {
261 double mid = (lefthand + righthand) / 2.0;
262 double midpoint_deriv_val = spline_model.derivative(mid);
263
264 // if deriv nearly zero then maximum already found
265 if(!(std::fabs(midpoint_deriv_val) > eps))
266 {
267 break;
268 }
269
270 bool midpoint_sign = (midpoint_deriv_val < 0.0) ? false : true;
271
272 if(lefthand_sign ^ midpoint_sign)
273 {
274 righthand = mid;
275 }
276 else
277 {
278 lefthand = mid;
279 }
280 }
281 while(righthand - lefthand > threshold);
282
283 center_peak_mz = (lefthand + righthand) / 2;
284
285 center_peak_intensity = spline_model.evalSplineAt(center_peak_mz);
286
287 // qDebug() << "center_peak_intensity:" << center_peak_intensity;
288}
double derivative(const double x_value) const
double evalSplineAt(double x_value) const

References pappso::CubicSplineModel::derivative(), and pappso::CubicSplineModel::evalSplineAt().

Referenced by pappso::HighResPeakPicker::pick().

◆ sumYTrace()

PMSPP_LIB_DECL double pappso::sumYTrace ( std::vector< DataPoint >::const_iterator begin,
std::vector< DataPoint >::const_iterator end,
double init )

calculate the sum of y value of a trace

Definition at line 226 of file trace.cpp.

229{
230 return std::accumulate(begin, end, init, [](double a, const DataPoint &b) { return a + b.y; });
231}

References a, and b.

Referenced by pappso::LinearRegression::LinearRegression(), pappso::MsRunXicExtractor::extractOneXicCoord(), pappso::FilterMorphoSum::getWindowValue(), meanYTrace(), and pappso::Trace::sumY().

Variable Documentation

◆ binningTypeMap

std::map< MzIntegrationParams::BinningType, QString > pappso::binningTypeMap
Initial value:

Map relating the BinningType to a textual representation.

Definition at line 62 of file mzintegrationparams.cpp.

Referenced by getBinningTypeFromString(), pappso::MzIntegrationParams::toString(), and pappso::MzIntegrationParams::toString().

◆ CHECKED_LINES_COUNT

const std::size_t pappso::CHECKED_LINES_COUNT = 10
static

Definition at line 27 of file bafasciifilereader.cpp.

Referenced by pappso::BafAsciiFileReader::initialize().

◆ combinations_cache

uint64_t pappso::combinations_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 44 of file peptidenaturalisotope.cpp.

44{0};

Referenced by Combinations().

◆ dataKindMap

std::map< Enums::DataKind, QString > pappso::dataKindMap
Initial value:

Definition at line 8 of file types.cpp.

8 {{Enums::DataKind::unset, "unset"},
10 {Enums::DataKind::rt, "rt"},
11 {Enums::DataKind::mz, "mz"}};

◆ MAX_MS_LEVELS

◆ MsRunReader

class PMSPP_LIB_DECL pappso::MsRunReader

Definition at line 56 of file msrunreader.h.

◆ precisionUnitMap

◆ qtKeyboardModifierMap

std::map< Qt::KeyboardModifier, QString > pappso::qtKeyboardModifierMap
Initial value:
{
{Qt::NoModifier, "No modifier"},
{Qt::ShiftModifier, "A Shift key"},
{Qt::ControlModifier, "A Ctrl key"},
{Qt::AltModifier, "An Alt key"},
{Qt::MetaModifier, "A Meta key"},
{Qt::KeypadModifier, "A keypad button"},
{Qt::GroupSwitchModifier, "A Mode_switch key"}}

Definition at line 29 of file baseplotcontext.cpp.

29 {
30 {Qt::NoModifier, "No modifier"},
31 {Qt::ShiftModifier, "A Shift key"},
32 {Qt::ControlModifier, "A Ctrl key"},
33 {Qt::AltModifier, "An Alt key"},
34 {Qt::MetaModifier, "A Meta key"},
35 {Qt::KeypadModifier, "A keypad button"},
36 {Qt::GroupSwitchModifier, "A Mode_switch key"}};

Referenced by pappso::BasePlotContext::toString().

◆ qtMouseButtonMap

std::map< Qt::MouseButton, QString > pappso::qtMouseButtonMap
Initial value:
{
{Qt::NoButton, "NoButton"},
{Qt::LeftButton, "LeftButton"},
{Qt::RightButton, "RightButton"},
{Qt::MiddleButton, "MiddleButton"}}

Definition at line 12 of file baseplotcontext.cpp.

12 {
13 {Qt::NoButton, "NoButton"},
14 {Qt::LeftButton, "LeftButton"},
15 {Qt::RightButton, "RightButton"},
16 {Qt::MiddleButton, "MiddleButton"}};

◆ qtMouseButtonsMap

std::map< Qt::MouseButtons, QString > pappso::qtMouseButtonsMap
Initial value:
{
{Qt::NoButton, "NoButton"},
{Qt::AllButtons, "AllButtons"},
{Qt::LeftButton, "LeftButton"},
{Qt::RightButton, "RightButton"},
{Qt::MiddleButton, "MiddleButton"},
{Qt::LeftButton | Qt::RightButton, "LeftRightButtons"},
{Qt::LeftButton | Qt::MiddleButton, "LeftMiddleButtons"},
{Qt::RightButton | Qt::MiddleButton, "RightMiddleButtons"},
}

Definition at line 18 of file baseplotcontext.cpp.

18 {
19 {Qt::NoButton, "NoButton"},
20 {Qt::AllButtons, "AllButtons"},
21 {Qt::LeftButton, "LeftButton"},
22 {Qt::RightButton, "RightButton"},
23 {Qt::MiddleButton, "MiddleButton"},
24 {Qt::LeftButton | Qt::RightButton, "LeftRightButtons"},
25 {Qt::LeftButton | Qt::MiddleButton, "LeftMiddleButtons"},
26 {Qt::RightButton | Qt::MiddleButton, "RightMiddleButtons"},
27};

Referenced by pappso::BasePlotContext::toString().

◆ ratioC13_cache

pappso_double pappso::ratioC13_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 85 of file peptidenaturalisotope.cpp.

85{0};

Referenced by isotopem_ratio_cache().

◆ ratioH2_cache

pappso_double pappso::ratioH2_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 92 of file peptidenaturalisotope.cpp.

92{0};

Referenced by isotopem_ratio_cache().

◆ ratioN15_cache

pappso_double pappso::ratioN15_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 86 of file peptidenaturalisotope.cpp.

86{0};

Referenced by isotopem_ratio_cache().

◆ ratioO17_cache

pappso_double pappso::ratioO17_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 90 of file peptidenaturalisotope.cpp.

90{0};

Referenced by isotopem_ratio_cache().

◆ ratioO18_cache

pappso_double pappso::ratioO18_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 91 of file peptidenaturalisotope.cpp.

91{0};

Referenced by isotopem_ratio_cache().

◆ ratioS33_cache

pappso_double pappso::ratioS33_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 89 of file peptidenaturalisotope.cpp.

89{0};

Referenced by isotopem_ratio_cache().

◆ ratioS34_cache

pappso_double pappso::ratioS34_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 88 of file peptidenaturalisotope.cpp.

88{0};

Referenced by isotopem_ratio_cache().

◆ ratioS36_cache

pappso_double pappso::ratioS36_cache[CACHE_ARRAY_SIZE][CACHE_ARRAY_SIZE] = {0}

Definition at line 87 of file peptidenaturalisotope.cpp.

87{0};

Referenced by isotopem_ratio_cache().