Skip to content

Commit 7c17db6

Browse files
committed
v11.3 - better fit for contamination value for ploidy 1, 3 and 4
1 parent ec1917d commit 7c17db6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/GenomeCopyNumber.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/freec

24 Bytes
Binary file not shown.

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define VERSION_H
44

55
const double VERSION_OFFSET = 3;
6-
const double FREEC_VERSION = 11.2;
6+
const double FREEC_VERSION = 11.3;
77
const double CONTROL_FREEC_VERSION = FREEC_VERSION - VERSION_OFFSET;
88

99
#endif

0 commit comments

Comments
 (0)