Commit a15f0a91 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

germline.cpp: mark_cross_germlines_as_ambiguous(), skip germlines on a same system

Such as TRD/TRD+
parent 7c07b74e
#include "germline.h" #include "germline.h"
#include <ctype.h>
void Germline::init(string _code, char _shortcut, void Germline::init(string _code, char _shortcut,
int _delta_min, int _delta_max) int _delta_min, int _delta_max)
...@@ -277,6 +278,10 @@ void MultiGermline::mark_cross_germlines_as_ambiguous() ...@@ -277,6 +278,10 @@ void MultiGermline::mark_cross_germlines_as_ambiguous()
if (germline2 == germline) if (germline2 == germline)
continue ; continue ;
// Skip germlines on a same system, such as 'D' (TRD) and 'd' (TRD+)
if (toupper(germline2->shortcut) == toupper(germline->shortcut))
germline->mark_as_ambiguous(germline2); germline->mark_as_ambiguous(germline2);
} }
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