Class to write out an OpenSwath TSV output (mProphet input) More...
#include <OpenMS/ANALYSIS/OPENSWATH/OpenSwathTSVWriter.h>
Public Member Functions | |
OpenSwathTSVWriter (String output_filename, String input_filename="inputfile", bool ms1_scores=false, bool sonar=false, bool uis_scores=false) | |
bool | isActive () |
void | writeHeader () |
Initializes file by writing TSV header. More... | |
String | prepareLine (const OpenSwath::LightCompound &pep, const OpenSwath::LightTransition *transition, const FeatureMap &output, const String id) |
Prepare a single line (feature) for output. More... | |
void | writeLines (std::vector< String > to_output) |
Write data to disk. More... | |
Private Attributes | |
std::ofstream | ofs |
String | input_filename_ |
bool | doWrite_ |
bool | use_ms1_traces_ |
bool | sonar_ |
bool | enable_uis_scoring_ |
Class to write out an OpenSwath TSV output (mProphet input)
The class can take a FeatureMap and create a set of string from it suitable for output to tsv using the prepareLine function.
These lines can also be directly written to a file using writeLines
|
inline |
|
inline |
|
inline |
Prepare a single line (feature) for output.
The result can be flushed to disk using writeLines (either line by line or after collecting several lines).
pep | The compound (peptide/metabolite) used for extraction |
transition | The transition used for extraction |
output | The feature map containing all features (each feature will generate one entry in the output) |
id | The transition group identifier (peptide/metabolite id) |
References LightCompound::charge, LightTransition::decoy, LightCompound::modifications, LightCompound::peptide_group_label, LightTransition::precursor_mz, LightCompound::protein_refs, LightCompound::sequence, and String::substr().
|
inline |
Initializes file by writing TSV header.
|
inline |
Write data to disk.
Takes a set of pre-prepared data statements from prepareLine and flushes them to disk
to_output | Statements generated by prepareLine to be written to a file |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13 |