def bin_measurement(measurement=None, subsampling_factor=<NUM_LIT:3>):
subs = int(subsampling_factor)<EOL>if measurement is None:<EOL><INDENT>measurement = np.array([])<EOL><DEDENT>n = len(measurement)<EOL>binned_measurement = [measurement[i - subs + <NUM_LIT:1>:i].sum()<EOL>for i in range(n) if i % subs == <NUM_LIT:0> and i > <NUM_LIT:0>]<EOL>return np.array(binned_measurement)<EOL>
Perform binning on genome-wide measurements by summing each component
    in a window of variable size (subsampling_factor).