|
OpenMS
2.5.0
|
Go to the documentation of this file.
128 const String& input_filename =
"inputfile",
129 bool ms1_scores =
false,
131 bool uis_scores =
false) :
132 output_filename_(output_filename),
133 input_filename_(input_filename),
135 doWrite_(!output_filename.empty()),
136 use_ms1_traces_(ms1_scores),
138 enable_uis_scoring_(uis_scores)
141 bool isActive()
const;
160 String getScore(
const Feature& feature, std::string score_name)
const;
173 std::vector<String> getSeparateScore(
const Feature& feature, std::string score_name)
const;
206 void writeLines(
const std::vector<String>& to_osw_output);
Base class for TOPP applications.
Definition: TOPPBase.h:144
void transform(const String &filename_in, Interfaces::IMSDataConsumer *consumer, bool skip_full_count=false, bool skip_first_pass=false)
SqLite format for mass and chromatograms, see SqMassFile.
Definition: FileTypes.h:103
PeakMap MapType
Definition: PeakPickerIterative.cpp:84
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
void store(const String &filename, MapType &map)
void readMemdump(MapType &exp_reading, String filename) const
Read all spectra from a dump from the disk.
static FileTypes::Type getTypeByFileName(const String &filename)
Determines the file type from a file name.
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
MzML file (.mzML)
Definition: FileTypes.h:72
OpenMS::UInt64 run_id_
Definition: OpenSwathOSWWriter.h:119
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:58
Class to write out an OpenSwath OSW SQLite output (PyProphet input).
Definition: OpenSwathOSWWriter.h:115
bool doWrite_
Definition: OpenSwathOSWWriter.h:120
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
OpenSwathOSWWriter(const String &output_filename, const String &input_filename="inputfile", bool ms1_scores=false, bool sonar=false, bool uis_scores=false)
Definition: OpenSwathOSWWriter.h:127
bool write_full_meta
write full meta data
Definition: SqMassFile.h:63
Unknown file extension.
Definition: FileTypes.h:60
void writeMetadata(MapType exp, String out_meta, bool addCacheMetaValue=false)
Write only the meta data of an MSExperiment.
Size size() const
Definition: MSExperiment.h:127
std::vector< DataProcessingPtr > & getDataProcessing()
returns a mutable reference to the description of the applied processing
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Definition: TransitionExperiment.h:149
Transforming and cached writing consumer of MS data.
Definition: MSDataCachedConsumer.h:54
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
const std::vector< MSChromatogram > & getChromatograms() const
returns the chromatogram list
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
A data consumer that inserts MS data into a SQLite database.
Definition: MSDataSqlConsumer.h:60
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
Type
Actual file types enum.
Definition: FileTypes.h:58
double linear_fp_mass_acc
desired mass accuracy for numpress linear encoding (-1 no effect, use 0.0001 for 0....
Definition: SqMassFile.h:65
void setChromatograms(const std::vector< MSChromatogram > &chromatograms)
sets the chromatogram list
bool use_lossy_numpress
use lossy numpress compression
Definition: SqMassFile.h:64
Size getNrChromatograms() const
get the total number of chromatograms available
String input_filename_
Definition: OpenSwathOSWWriter.h:118
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
void writeMemdump(const MapType &exp, const String &out) const
Write complete spectra as a dump to the disk.
String output_filename_
Definition: OpenSwathOSWWriter.h:117
void load(const String &filename, MapType &map)
bool sonar_
Definition: OpenSwathOSWWriter.h:122
Configuration class for SqMassFile.
Definition: SqMassFile.h:61
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
bool enable_uis_scoring_
Definition: OpenSwathOSWWriter.h:123
A container for features.
Definition: FeatureMap.h:95
An LC-MS feature.
Definition: Feature.h:70
Consumer class that writes MS data to disk using the mzML format.
Definition: MSDataWritingConsumer.h:240
MSChromatogram & getChromatogram(Size id)
returns a single chromatogram
A generator for unique ids.
Definition: UniqueIdGenerator.h:59
void transform(const String &filename_in, Interfaces::IMSDataConsumer *consumer, bool skip_full_count=false, bool skip_first_pass=false)
Transforms a map while loading using the supplied MSDataConsumer.
Options for loading files containing peak data.
Definition: PeakFileOptions.h:47
static Type nameToType(const String &name)
Converts a file type name into a Type.
void setConfig(SqMassConfig config)
Definition: SqMassFile.h:95
Definition: TransitionExperiment.h:46
void setOptions(const PeakFileOptions &)
set options for loading/storing
void setMaxDataPoolSize(Size size)
Set maximal size of the data pool.
bool use_ms1_traces_
Definition: OpenSwathOSWWriter.h:121
An class that uses on-disk caching to read and write spectra and chromatograms.
Definition: CachedMzMLHandler.h:66
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
An class that uses on-disk SQLite database to read and write spectra and chromatograms.
Definition: SqMassFile.h:52
static String typeToName(Type type)
Returns the name/extension of the type.