nfsim_species_unifier.h 1010 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2020 by
  4. * The Salk Institute for Biological Studies
  5. *
  6. * Use of this source code is governed by an MIT-style
  7. * license that can be found in the LICENSE file or at
  8. * https://opensource.org/licenses/MIT.
  9. *
  10. ******************************************************************************/
  11. #ifndef UTILS_BNG_ANALYZER_NFSIM_SPECIES_UNIFIER_H_
  12. #define UTILS_BNG_ANALYZER_NFSIM_SPECIES_UNIFIER_H_
  13. #include <string>
  14. #include <map>
  15. #include "bng/bng.h"
  16. namespace MCell {
  17. class NFSimSpeciesUnifier {
  18. public:
  19. NFSimSpeciesUnifier()
  20. : bng_engine(bng_config) {
  21. }
  22. bool read_input_file(const std::string& input_file, const bool is_dat);
  23. bool print_unified_species(const std::string& out_file = "");
  24. std::map<BNG::species_id_t, double> counts_per_unique_species;
  25. BNG::BNGConfig bng_config;
  26. BNG::BNGEngine bng_engine;
  27. };
  28. } // namespace MCell
  29. #endif /* UTILS_BNG_ANALYZER_NFSIM_SPECIES_UNIFIER_H_ */