Combine the UMI4C fragments that overlap a given set of query_regions.

combineUMI4C(umi4c, query_regions)

Arguments

umi4c

UMI4C object as generated by makeUMI4C or the UMI4C constructor.

query_regions

GRanges object containing the coordinates of the genomic regions for combining restriction fragments.

Value

UMI4C object with rowRanges corresponding to query_regions and assay containing the sum of raw UMI counts at each specified query_region.

Examples

data("ex_ciita_umi4c") wins <- makeWindowFragments(ex_ciita_umi4c) umi_comb <- combineUMI4C(ex_ciita_umi4c, wins)