MCPcopy Create free account
hub / github.com/arq5x/bedtools2 / loadBedCovListFileIntoMap

Method loadBedCovListFileIntoMap

src/utils/bedFile/bedFile.cpp:720–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720void 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
746void BedFile::loadBedFileIntoMapNoBin() {

Callers 1

AnnotateBedMethod · 0.80

Calls 2

getBinFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected