Description Usage Arguments Value See Also Examples
Given a query and subject GRanges objects, the function breaks query into chunks of N size where each chunk has a respective subject object filtered by seqnames present in the query chunk. This is a helper function used by one of the annotation function in 'See Also' section where each chunk is sent to a parallel node for processing.
1 | makeChunks(sites.rd, features.rd, chunkSize = NULL)
|
sites.rd |
a GRanges object. |
features.rd |
a GRanges object. |
chunkSize |
number of rows to use per chunk of query. Default to length(sites.rd)/detectCores() or length(query)/getDoParWorkers() depending on parallel backend registered. |
a list of GRanges objects where each element is of length 2 representing query & subject chunks.
makeGRanges
, doAnnotation
,
getNearestFeature
, getSitesInFeature
,
getFeatureCounts
.
1 2 3 4 5 | data(sites)
data(genes)
sites <- makeGRanges(sites, soloStart = TRUE)
genes <- makeGRanges(genes)
makeChunks(sites, genes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.