#include <genesis/placement/pquery/name.hpp>
A name of a Pquery and its multiplicity.
This class is modeled after the jplace
standard, which allows for multiple names for a Pquery. This is useful if there are identical sequences in the original data for which the phylogenetic placement was carried out. The placements of those sequences can then be treated as one entity, i.e., one Pquery, while still maintaining all their identifiers (names).
Furthermore, each such name can have a multiplicity, which can be used to store, e.g., the number of replicates of the original sequence. It is used as a factor for the weights of PqueryPlacements in some calculations.
Public Member Functions | |
PqueryName ()=default | |
Default constructor. Initializes the name to an empty string and the multiplicity to 1.0. More... | |
PqueryName (PqueryName &&)=default | |
PqueryName (PqueryName const &)=default | |
PqueryName (std::string const &name, double multiplicity=1.0) | |
Constructor that takes a name and optionally a multiplicity. More... | |
~PqueryName ()=default | |
operator std::string & () | |
Implicit conversion to std::string that returns the name for simplicity. More... | |
operator std::string const & () const | |
Implicit conversion to std::string that returns the name for simplicity. More... | |
PqueryName & | operator= (PqueryName &&)=default |
PqueryName & | operator= (PqueryName const &)=default |
Public Attributes | |
double | multiplicity = 1.0 |
Multiplicity of the name. More... | |
std::string | name |
Name for a Pquery. More... | |
|
default |
Default constructor. Initializes the name to an empty string and the multiplicity to 1.0.
|
inlineexplicit |
Constructor that takes a name and optionally a multiplicity.
|
default |
|
default |
|
default |
|
inline |
|
inline |
|
default |
|
default |
double multiplicity = 1.0 |
Multiplicity of the name.
This property is defined by the jplace
standard. It is used as a count for e.g., the abundance of this Pquery (respectively this name). For some calculations, this value is used as a factor for the placment weights (see PqueryPlacement::like_weight_ratio). Thus, by default, the value is initialized to 1.0.
If a Pquery has multiple names, all their multiplicities are added when being used as a weight factor.
std::string name |