| 457 | } |
| 458 | |
| 459 | int 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 | |
| 468 | const SNPatChr& SNPinGenome::SNP_atChr(int index) const { |
| 469 | return (*SNP_atChr_)[index]; |
no test coverage detected