Commit ec4f1357 authored by Mathieu Giraud's avatar Mathieu Giraud

core/germline.{h,cpp}: override_rep5_rep3_from_labels()

This function sets the rep5/3 according to two KmerAffects.
It will be quite useful for some pseudo-germlines.

This should not be used for regular germlines that have and use some rep5/3.
parent d65a9c97
......@@ -178,6 +178,11 @@ void Germline::mark_as_ambiguous(Germline *other)
}
void Germline::override_rep5_rep3_from_labels(KmerAffect left, KmerAffect right)
{
rep_5 = index->getLabel(left);
rep_3 = index->getLabel(right);
}
Germline::~Germline()
{
......
......@@ -70,6 +70,15 @@ class Germline {
void mark_as_ambiguous(Germline *other);
/*
* This function sets the rep5/3 according to two KmerAffects.
* Quite useful for some pseudo-germlines.
* This should not be used for regular germlines that have and use some rep5/3.
* @param left, right: two KmerAffects
* @post set rep_5 and rep_3 stored in the labels of the index
*/
void override_rep5_rep3_from_labels(KmerAffect left, KmerAffect right);
list <string> f_reps_5 ;
list <string> f_reps_4 ;
list <string> f_reps_3 ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment