| 718 | } |
| 719 | |
| 720 | void BedFile::loadBedCovListFileIntoMap() { |
| 721 | |
| 722 | BED bedEntry; |
| 723 | Open(); |
| 724 | while (GetNextBed(bedEntry)) { |
| 725 | if (_status == BED_VALID) { |
| 726 | BIN bin = getBin(bedEntry.start, bedEntry.end); |
| 727 | |
| 728 | BEDCOVLIST bedCovList; |
| 729 | bedCovList.chrom = bedEntry.chrom; |
| 730 | bedCovList.start = bedEntry.start; |
| 731 | bedCovList.end = bedEntry.end; |
| 732 | bedCovList.name = bedEntry.name; |
| 733 | bedCovList.score = bedEntry.score; |
| 734 | bedCovList.strand = bedEntry.strand; |
| 735 | bedCovList.fields = bedEntry.fields; |
| 736 | bedCovList.other_idxs = bedEntry.other_idxs; |
| 737 | bedCovList.zeroLength = bedEntry.zeroLength; |
| 738 | |
| 739 | bedCovListMap[bedEntry.chrom][bin].push_back(bedCovList); |
| 740 | } |
| 741 | } |
| 742 | Close(); |
| 743 | } |
| 744 | |
| 745 | |
| 746 | void BedFile::loadBedFileIntoMapNoBin() { |
no test coverage detected