Skip to content

Commit

Permalink
version v9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
valeu committed Nov 24, 2016
1 parent bebce82 commit 8778faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SeekSubclones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void SeekSubclones::getSegmentsInfo(GenomeCopyNumber & samplecopynumber, std::st
for (int k = 0; k < copynumber_.size(); k++) {
myfile << "\t" << copynumber_[k] << "\t" << population_[k]*100 << "% \n";
}
myfile << endl;
myfile << "\n";
for (int k = bpstart; k < bpend; k++) { // CARINO, WHY WAS IT: k = bpstart-2; k < i-1; ???
samplecopynumber.getChrCopyNumberAt(index).setCN_subc(k, copynumber_[0]);
samplecopynumber.getChrCopyNumberAt(index).setPopulation_subc(k, population_[0]);
Expand Down Expand Up @@ -129,7 +129,7 @@ bool SeekSubclones::SignTest(std::vector <float>& data, float& threshold, int bo
max_count = downvalues;
}
double result = 2*binomialcdistribution(max_count-1, upvalues+downvalues, 0.5); //CARINO! YOU CALULATE A WRONG P-VALUE HERE!! SHOULD BE max_count-1; I CORRECTED IT.
if (result < 0.01/bonfer_correction && result != 0)
if (result < 0.001/bonfer_correction && result != 0)
{
subclone = true;
}
Expand Down

0 comments on commit 8778faf

Please sign in to comment.