# Convert a dataframe to GRanges object
data(sites)
alldata.rd <- makeGRanges(sites,soloStart=TRUE)
data(genes)
genes.rd <- makeGRanges(genes)
geneCounts <- getFeatureCounts(alldata.rd,genes.rd,"NumOfGene")
geneCounts <- getFeatureCounts(alldata.rd,genes.rd,"NumOfGene",
doInChunks=TRUE, chunkSize=200)
geneCounts
## Parallel version of getFeatureCounts
# geneCounts <- getFeatureCounts(alldata.rd,genes.rd,"NumOfGene",
parallel=TRUE)
# geneCounts
Run the code above in your browser using DataLab