Current implementation uses getBedEntryDescriptionFromLocation that uses processBed which was designed for preprocessing and scrores recalculation. Initially BedParser reads bed file using BedEntry it is lightweight version containing only location related info (chr, start, end). To find suitable bed records it is ok just to read & check BedEntry and then only parse rest fields in the found record. Instead getBedEntryDescriptionFromLocation actually parses every BedEntry to ExtendedBedEntry which is just time wasting for record lookup task.
Current implementation uses
getBedEntryDescriptionFromLocation
that usesprocessBed
which was designed for preprocessing and scrores recalculation. Initially BedParser reads bed file usingBedEntry
it is lightweight version containing only location related info (chr, start, end). To find suitable bed records it is ok just to read & checkBedEntry
and then only parse rest fields in the found record. InsteadgetBedEntryDescriptionFromLocation
actually parses everyBedEntry
toExtendedBedEntry
which is just time wasting for record lookup task.