12 auto dataset = make_unique<DataSet>();
13 dataset->addEmptyGroup(0);
19 auto tmpSeq = unique_ptr<Sequence>(sc.
sequence(i).clone());
20 dataset->addIndividualSequenceInGroup(0, i, 0, tmpSeq);
32 auto dataset = make_unique<DataSet>();
34 for (
auto& it : grpIds)
36 dataset->addEmptyGroup(it);
46 auto tmpSeq = unique_ptr<Sequence>(psc.
sequence(i).clone());
47 dataset->addIndividualSequenceInGroup(psc.
getGroupId(i), i, 0, tmpSeq);
The PolymorphismSequenceContainer class.
size_t getGroupId(size_t index) const
Get the group identifier of the sequence.
unsigned int getSequenceCount(size_t index) const
Get the count of a sequence by index.
std::set< size_t > getAllGroupsIds() const
Get all the groups identifiers.
virtual const SequenceType & sequence(const HashType &sequenceKey) const override=0
virtual size_t getNumberOfSequences() const =0
const SequenceType & sequence(const std::string &sequenceKey) const override
size_t getNumberOfSequences() const override
std::string toString(T t)