71 static constexpr
Size ALL_PROTEINS = -1;
109 static const std::array<std::string, (
Size)OSWLevel::SIZE_OF_OSWLEVEL> names_of_oswlevel;
114 : score(score), qvalue(qvalue), posterior_error_prob(pep)
128 const double ipf_max_peakgroup_pep,
const double ipf_max_transition_isotope_overlap,
const double ipf_min_transition_sn);
Holds all or partial information from an OSW file.
Definition: OSWData.h:305
This class serves for reading in and writing OpenSWATH OSW files.
Definition: OSWFile.h:67
void read(OSWData &swath_result)
void getFullProteins_(OSWData &swath_result, Size prot_index=ALL_PROTEINS)
fill one (prot_id) or all proteins into swath_result
void readTransitions_(OSWData &swath_result)
SqliteConnector conn_
SQL connection. Stays open as long as this object lives.
Definition: OSWFile.h:160
String filename_
sql file to open/write to
Definition: OSWFile.h:159
static void writeFromPercolator(const std::string &osw_filename, const OSWFile::OSWLevel osw_level, const std::map< std::string, PercolatorFeature > &features)
Updates an OpenSWATH OSW SQLite file with the MS1-, MS2- or transition-level results of Percolator.
bool has_SCOREMS2_
database contains pyProphet's score_MS2 table with qvalues
Definition: OSWFile.h:161
void readProtein(OSWData &swath_result, const Size index)
populates a protein at index index within swath_results with Peptides, unless the protein already has...
OSWFile(const String &filename)
OSWFile & operator=(const OSWFile &rhs)=default
OSWLevel
for Percolator data read/write operations
Definition: OSWFile.h:103
static void readToPIN(const std::string &filename, const OSWFile::OSWLevel osw_level, std::ostream &pin_output, const double ipf_max_peakgroup_pep, const double ipf_max_transition_isotope_overlap, const double ipf_min_transition_sn)
Reads an OSW SQLite file and returns the data on MS1-, MS2- or transition-level as ostream (e....
void readMinimal(OSWData &swath_result)
void readMeta_(OSWData &data)
set source file and sqMass run-ID
OSWFile(const OSWFile &rhs)=default
File adapter for Sqlite files.
Definition: SqliteConnector.h:57
A more convenient string class.
Definition: String.h:61
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: OSWFile.h:112
PercolatorFeature(double score, double qvalue, double pep)
Definition: OSWFile.h:113
double score
Definition: OSWFile.h:118
double qvalue
Definition: OSWFile.h:119
PercolatorFeature(const PercolatorFeature &rhs)=default
double posterior_error_prob
Definition: OSWFile.h:120