assignPartitions.Rd
Takes a GRanges object, then assigns each element to a partition from the provided partitionList, and then tallies the number of regions assigned to each partition. A typical example of partitions is promoter, exon, intron, etc; this function will yield the number of each for a query GRanges object There will be a priority order to these, to account for regions that may overlap multiple genomic partitions.
assignPartitions(query, partitionList, remainder = "intergenic")
query | GRanges or GRangesList with regions to classify |
---|---|
partitionList | an ORDERED and NAMED list of genomic partitions GRanges. This list must be in priority order; the input will be assigned to the first partition it overlaps |
remainder | A character vector to assign any query regions that do not overlap with anything in the partitionList. Defaults to "intergenic" |