Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91993203
ProbToModelApplication.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 16, 11:10
Size
2 KB
Mime Type
text/x-c
Expires
Mon, Nov 18, 11:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22360215
Attached To
R8820 scATAC-seq
ProbToModelApplication.hpp
View Options
#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
Log In to Comment