45 static constexpr
Size ALL_PROTEINS = -1;
83 static const std::array<std::string, (
Size)OSWLevel::SIZE_OF_OSWLEVEL> names_of_oswlevel;
88 : score(score), qvalue(qvalue), posterior_error_prob(pep)
102 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:279
This class serves for reading in and writing OpenSWATH OSW files.
Definition: OSWFile.h:41
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:134
String filename_
sql file to open/write to
Definition: OSWFile.h:133
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:135
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:77
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:31
A more convenient string class.
Definition: String.h:34
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:51
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
PercolatorFeature(double score, double qvalue, double pep)
Definition: OSWFile.h:87
double score
Definition: OSWFile.h:92
double qvalue
Definition: OSWFile.h:93
PercolatorFeature(const PercolatorFeature &rhs)=default
double posterior_error_prob
Definition: OSWFile.h:94