rangeSampleMeans: Average features in ranges per sample
Description
This function takes per-feature genomic data and returns averages for each of a set of genomic ranges.
The most obvious application is determining the copy number of a set of genes. The features
corresponding to each gene are determined with boundingIndices such that all features with the bounds
of a gene (overlaps). The features on either side of the gene unless those positions
exactly match the first or last base covered by the gene. Therefore, genes falling between two features
will at least cover two features. Range bounding is performed by the boundingIndices function.