Helper function to bin a variable
get_hist_bins(x, from, to, by, normalized, custom_bins = NULL)
the variable to be binned
the minimum range
the maximum range
the break length
whether to normalize the counts to total counts.
A numeric vector for custom breaks to bin the histogram of fragment length. Over-rides bin_size.
A numeric vector having counts within bins normalized by the sum of the variable