MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / extractCachedMetaFilename

Function extractCachedMetaFilename

src/topp/FileConverter.cpp:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116
117String extractCachedMetaFilename(const String& in)
118{
119 // Special handling of cached mzML as input types:
120 // we expect two paired input files which we should read into exp
121 std::vector<String> split_out;
122 in.split(".cachedMzML", split_out);
123 if (split_out.size() != 2)
124 {
125 OPENMS_LOG_ERROR << "Cannot deduce base path from input '" << in
126 << "' (note that '.cachedMzML' should only occur once as the final ending)" << std::endl;
127 return "";
128 }
129 String in_meta = split_out[0] + ".mzML";
130 return in_meta;
131}
132
133// We do not want this class to show up in the docu:
134/// @cond TOPPCLASSES

Callers 1

main_Method · 0.85

Calls 2

splitMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected