Tidyverse-compatible function to add sequence to an existing GRanges

withSeq(granges, genome)

Arguments

granges

A GRanges object

genome

DNAStringSet object. Ideally, the sequence of an entire genome, obtained for instance by running

Value

GRanges with a seq column containing the sequence of the GRanges.