R/annotate_variants.R
add_flank_to_variants.RdUses a genome object to find context and add it to the variant table
add_flank_to_variants(
musica,
g,
flank_start,
flank_end,
build_table = TRUE,
overwrite = FALSE
)Input samples
A BSgenome object indicating which genome reference the variants and their coordinates were derived from.
Start of flank area to add, can be positive or negative
End of flank area to add, can be positive or negative
Automatically build a table using the annotation and add
Overwrite existing count table
None it to the musica
data(musica_sbs96_tiny)
g <- select_genome("19")
add_flank_to_variants(musica_sbs96_tiny, g, 1, 2)
add_flank_to_variants(musica_sbs96_tiny, g, -2, -1)