MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / getCoveredPart

Method getCoveredPart

src/ChrCopyNumber.cpp:703–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703int 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;
705 for (int i = breakPointStart; i<=breakPointEnd; i++) {
706 lengthCovered+=ends_[i]-coordinates_[i]+1;
707 }
708 return lengthCovered;
709}
710
711void ChrCopyNumber::calculateCopyNumberMedian(int ploidy, int minCNAlength, bool noisyData, bool CompleteGenomicsData, bool isLogged){ //create median profiles using 'bpfinal_' and store them in medianProfile_, info about medians themselves is stored in medianValues_ and about SD in sd_, lengths of fragments in bpLengths_
712 if (ploidy!=ploidy_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected