| 690 | } |
| 691 | |
| 692 | int ChrCopyNumber::calculateBAFBreakpoints(double threshold, int normalChrLength, int breakPointType) { |
| 693 | // bpfinal_ should already contain copy number breakpoints |
| 694 | std::vector <int> bpBAF; |
| 695 | //find breakpoints in the BAF profile |
| 696 | int chrLen = calculateBreakpoints_general(threshold,length_,BAF_,bpBAF,normalChrLength,breakPointType, getChromosome()); |
| 697 | //add detected breakpoints to the breakpoints detected using copy number profiles |
| 698 | bpfinal_ = merge_no_dups(bpfinal_, bpBAF); |
| 699 | sort (bpfinal_.begin(), bpfinal_.end()); |
| 700 | return chrLen; |
| 701 | } |
| 702 | |
| 703 | int ChrCopyNumber::getCoveredPart(int breakPointStart, int breakPointEnd) { //for exome-seq: get length of the genome covered by the targeted region (from breakPointStart to breakPointEnd) |
| 704 | int lengthCovered = 0; |
no test coverage detected