File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3390,7 +3390,7 @@ float GenomeCopyNumber::evaluateContamination () {
33903390 if (chrCopyNumber_[index].isSmoothed () && WESanalysis == false )
33913391 expected = chrCopyNumber_[index].getSmoothedProfileAtI (i);
33923392 }
3393- if (!(expected == 1 || expected <= 0 || expected >= 2 || observed > 3 || observed <= 0 )
3393+ if (!(expected == 1 || expected <= 0 || expected >= 1 + 2.0 /ploidy_ || observed > 3 || observed <= 0 )
33943394 && (((1 >observed)&&(1 >expected))||((1 <observed)&&(1 <expected)))) {// should it be something related to ploidy_ and not 2
33953395 float p = (observed-expected)/(observed-expected+2 /ploidy_*(1 -observed));
33963396 if (p>-0.5 && p<1.5 ) {
@@ -3445,7 +3445,7 @@ float GenomeCopyNumber::evaluateContaminationwithLR () {
34453445 if (chrCopyNumber_[index].isMedianCalculated ()) {
34463446 expected = round_by_ploidy (chrCopyNumber_[index].getMedianProfileAtI (i),ploidy_) ;
34473447 }
3448- if (expected!=NA && expected<2 ){
3448+ if (expected!=NA && expected<1 + 2.0 /ploidy_ ){
34493449 observed_values.push_back (observed-1 );
34503450 expected_values.push_back (expected-1 );
34513451 }
Original file line number Diff line number Diff line change 33#define VERSION_H
44
55const double VERSION_OFFSET = 3 ;
6- const double FREEC_VERSION = 11.2 ;
6+ const double FREEC_VERSION = 11.3 ;
77const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET ;
88
99#endif
You can’t perform that action at this time.
0 commit comments