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

Method nextNoNAIndex

src/ChrCopyNumber.cpp:1131–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129}
1130
1131int ChrCopyNumber::nextNoNAIndex(int i1, int ploidy, int min_fragment) {
1132 for (int i = i1+1; i<(int)medianValues_.size(); i++)
1133 //if (round_by_ploidy(medianValues_[i], ploidy)>=0) // !!! >= and not > 0.
1134 if (getLevelAt(i, ploidy)>=0) // !!! >= and not > 0.
1135 if (fragment_lengths_[i] > min_fragment)
1136 return i;
1137 return NA;
1138}
1139
1140float ChrCopyNumber::nextNoNAMedian(int i1, int ploidy) {
1141

Calls

no outgoing calls

Tested by

no test coverage detected