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

Method MakeFixedSizeWindow

src/windowMaker/windowMaker.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 return num_windows;
88}
89void WindowMaker::MakeFixedSizeWindow(const BED& interval) {
90 uint32_t i=1;
91 uint32_t num_windows = CalculateWindows(interval);
92 for (uint32_t start = interval.start; start <= interval.end; start += _step, ++i) {
93 string name = GenerateID(interval, i, num_windows, _reverse);
94 if ((start + _size) <= interval.end) {
95 cout << interval.chrom << "\t" << start << "\t" << start + _size << name << endl;
96 }
97 else if (start < interval.end) {
98 cout << interval.chrom << "\t" << start << "\t" << interval.end << name << endl;
99 }
100 }
101}
102
103void WindowMaker::MakeFixedCountWindow(const BED& interval) {
104 CHRPOS interval_size = interval.end - interval.start ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected