Given a query and a subject GRanges, this function returns a matrix with number of rows equal to the number of regions in query and number of columns equal to the number of bins. For each bin of each region, the occurrence (1) or not (0) of subject is returned.
The countOverlaps method can be used to determine the overlap between a query and a subject GRanges.
The countOverlapsInBins method add the functionality to partition query in bins.
To be used in this form:
countOverlapsInBins(query, subject, nbins)
where:
query: GRanges
subject: GRanges
nbins: numeric, the number of bins
It returns a matrix with number of rows equal to the number of regions in query and number of columns equal to the number of bins.
For each bin of each region 1 is assigned of subject GRanges overlap, 0 if it does not.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.