31 auto parse_with = [&](
auto f) {
39 dm.
data.resize(dm.
d * dm.
n);
44 std::string ext = std::filesystem::path(filename).extension().string();
48 else if (ext ==
".tsv")
51 throw std::domain_error(
"Unsupported file format.");
void parse_FCS(const std::string &filename, DataModel &dm)
Parses FCS file and fills DataModel data.
void parse_generic(const std::string &filename, DataModel &dm)
Parses data from input file.
Storage of data from loaded input file.
void clear()
Clears all DataModel data to their default values.
std::vector< float > data
One-dimensional array storing d-dimensional input data in row-major order.
void parse_TSV(const std::string &filename, DataModel &dm)
Parses FCS file and fills DataModel data.