Page MenuHomec4science

ProbToModelApplication.hpp
No OneTemporary

File Metadata

Created
Sat, Nov 16, 11:10

ProbToModelApplication.hpp

#ifndef PROBTOMODELAPPLICATION_HPP
#define PROBTOMODELAPPLICATION_HPP
#include <ApplicationInterface.hpp>
#include <iostream>
#include <string>
/*!
* \brief The ProbToModelApplication class is a wrapper around an ModelReferenceComputer
* instance creating an autonomous application to compute data models given the
* data and the results of the classification procedure (the posterior probability
* matrix).
*/
class ProbToModelApplication : public ApplicationInterface
{
public:
ProbToModelApplication() = delete ;
ProbToModelApplication(const ProbToModelApplication& app) = delete ;
/*!
* \brief Constructs an object from the command line
* options.
* \param argn the number of options passed to the
* main() function.
* \param argv the vector of options passed to the
* main() function.
*/
ProbToModelApplication(int argn, char** argv) ;
/*!
* \brief Destructor.
*/
virtual ~ProbToModelApplication() override ;
/*!
* \brief Runs the application. The data model
* is computed and displayed through the
* stdout.
* \return the exit code.
*/
virtual int run() override ;
private:
/*!
* \brief Parses the program command line options and
* sets the object field accordingly.
* If the help option is detected, the "runnable"
* field is set to false and subsequent calls to
* run() will produce nothing.
* \param argn the number of options passed to the
* main() function.
* \param argv the vector of options passed to the
* main() function.
* \throw std::invalid_argument if an error is found
* in the program options.
*/
void parseOptions(int argn, char** argv) ;
/*!
* \brief the path to the file containing the
* read count data.
*/
std::string file_read ;
/*!
* \brief the path to the file containing the
* sequence data.
*/
std::string file_seq ;
/*!
* \brief the path to the file containing the
* classification posterior probabilities.
*/
std::string file_prob ;
/*!
* \brief the number of threads.
*/
size_t n_threads ;
/*!
* \brief whether run() can be called.
*/
bool runnable ;
} ;
#endif // PROBTOMODELAPPLICATION_HPP

Event Timeline