34#include <QRegularExpression>
80 static bool writeToFile(
const QString &text,
const QString &file_name);
81 static bool appendToFile(
const QString &text,
const QString &file_name);
86 static bool almostEqual(
double value1,
double value2,
int decimalPlaces = 10);
92 std::chrono::system_clock::time_point chrono_time = std::chrono::system_clock::now());
96 std::chrono::system_clock::time_point chrono_start,
97 std::chrono::system_clock::time_point chrono_finish = std::chrono::system_clock::now());
100 std::size_t &error_count);
103 std::size_t &error_count);
A simple container of DataPoint instances.
static std::size_t extractScanNumberFromMzmlNativeId(const QString &spectrum_native_id)
static QString chronoTimePointDebugString(const QString &msg, std::chrono::system_clock::time_point chrono_time=std::chrono::system_clock::now())
static QString toString(specglob::SpectralAlignmentType type)
Convenience function to return a string describing the specglob alingment type.
static QString pointerToString(const void *const pointer)
static QString msDataFormatAsString(Enums::MsDataFormat mz_format)
Convenience function to return a string describing the MzFormat of a file.
static pappso_double roundToDecimals(pappso_double value, int decimal_places)
static QRegularExpression anythingButDigitDotDash
static bool almostEqual(double value1, double value2, int decimalPlaces=10)
static AaModificationP guessAaModificationPbyMonoisotopicMassDelta(Enums::AminoAcidChar aa, pappso_double mass)
static std::vector< double > splitMzStringToDoubleVectorWithSpaces(const QString &text, std::size_t &error_count)
static double nearestGreater(double value)
static std::string toUtf8StandardString(const QString &text)
static bool appendToFile(const QString &text, const QString &file_name)
static QString fileReaderTypeAsString(Enums::FileReaderType file_reader_type)
static QString booleanToString(bool value)
convenient function to transform a boolean to QString "TRUE" or "FALSE" QString returned is readable ...
static AaModificationP translateAaModificationFromUnimod(const QString &unimod_accession)
static QString chronoIntervalDebugString(const QString &msg, std::chrono::system_clock::time_point chrono_start, std::chrono::system_clock::time_point chrono_finish=std::chrono::system_clock::now())
static long long int roundToDecimal32bitsAsLongLongInt(pappso_double input)
static bool writeToFile(const QString &text, const QString &file_name)
static std::vector< std::size_t > splitSizetStringToSizetVectorWithSpaces(const QString &text, std::size_t &error_count)
static QRegularExpression signedDoubleNumberExponentialRegExp
static QRegularExpression xyMassDataFormatRegExp
static QRegularExpression mzListDataFormatRegExp
Regular expression matching <m/z value><non-numerical*>
static QRegularExpression unsignedDoubleNumberNoExponentialRegExp
static const QString getLexicalOrderedString(unsigned int num)
static QRegularExpression sizetListDataFormatRegExp
Regular expression matching <size_t><non-numerical*>
static void writeLexicalOrderedString(QTextStream *p_out, unsigned int num)
static int zeroDecimalsInValue(pappso_double value)
0.11 would return 0 (no empty decimal) 2.001 would return 2 1000.0001254 would return 3
static QRegularExpression endOfLineRegExp
Regular expression that tracks the end of line in text files.
static QString getVersion()
PeptideIon
Enums::PeptideIon enum defines all types of ions (Nter or Cter)
ExperimentalSpectrumDataPointType
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
const AaModification * AaModificationP
double pappso_double
A type definition for doubles.