View source: R/plotting_mutation_patterns.R
get_mutations_in_flanked_sites | R Documentation |
Prepares data frame of mutations at relative positions along flanks and sites
get_mutations_in_flanked_sites(mutations, this_sites, window_size, n_patients)
mutations |
Data frame of mutations |
this_sites |
Data frame of sites |
window_size |
Integer indicating the half-width of sites and flanking regions (added to both sides of midpoint) |
n_patients |
Integer indicating number of patients |
Data frame containing the frequency of mutations across site and flank positions
the relative position of each base to nearest site midpoint
the number of overlapping mutations
boolean indicating if the position is within the site
frequency of mutations calculated as mut_count / n_patients / total bp * 1e6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.