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

Method findIndex

src/SNPinGenome.cpp:459–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459int SNPinGenome::findIndex (string chromosome) const {
460 for (int unsigned i = 0; i < SNP_atChr_->size(); i++) {
461 if (chromosome.compare((*SNP_atChr_)[i].getChromosome())==0) {
462 return i;
463 }
464 }
465 return NA;
466}
467
468const SNPatChr& SNPinGenome::SNP_atChr(int index) const {
469 return (*SNP_atChr_)[index];

Callers 1

processPileUPLineMethod · 0.45

Calls 2

compareMethod · 0.80
getChromosomeMethod · 0.80

Tested by

no test coverage detected