# Convert a dataframe to GRanges object
data(sites)
alldata.rd <- makeGRanges(sites,soloStart=TRUE)
data(genes)
genes.rd <- makeGRanges(genes)
InGenes <- getSitesInFeature(alldata.rd,genes.rd,"InGene")
InGenes
InGenes <- getSitesInFeature(alldata.rd,genes.rd,"InGene",asBool=TRUE)
InGenes
## Parallel version of getSitesInFeature
InGenes <- getSitesInFeature(alldata.rd,genes.rd,"InGene",asBool=TRUE,
parallel=TRUE)
InGenes
InGenes <- getSitesInFeature(alldata.rd,genes.rd,"InGene",
allSubjectCols=TRUE, parallel=TRUE)
InGenes
Run the code above in your browser using DataLab