AssociateWithInterval: Returns index of association between a probe and a set of genomic intervals.
Description
Takes four vectors representing a unique ID, chromosome, start, and end of non-overlapping regions of interest (e.g. known genes, CpG islands, etc.). Two additional vectors representing the chromosome and start position of probes in a tiling array.
One additional argument (optional) specifies the length of the probes. This can be either a vector with one length for each probe, or a scalar if all probes are the same length. If this argument is not specified, probes are assumed to be 25bp in length.
Returns a vector representing the unique ID of the interval in which each probe can be found. Values of NA are returned for probes that are located in any of the given genomic intervals.