explore_mutations | R Documentation |
Open dashboard to explore mutation data generated with call_mutations()
.
explore_mutations( muts.df, dates = NULL, lineage.muts = NULL, read.muts.from = NULL, all.target.muts = FALSE )
muts.df |
A data frame (produced by |
dates |
Path to optional csv file with cols "SAMP_NAME", "LOCATION", and "DATE". Sample names need to match those in the muts.df data frame created by |
lineage.muts |
Path to optional csv file with required cols "Gene", "Mutation", and "Lineage" defining mutations associated with lineages of interest. See example file at "https://github.com/mikesovic/MixviR/blob/main/mutation_files/outbreak_20211202.csv". Additional columns will be ignored. |
read.muts.from |
An alternative to muts.df for providing mutation input. If a data frame generated by |
all.target.muts |
Logical to indicate whether results for all target mutations were written to the output of the |
Shiny Dashboard to Explore Data
if (interactive()) {explore_mutations(read.muts.from = system.file("extdata", "sample_mutations.csv", package = "MixviR"), lineage.muts = system.file("extdata", "example_lineage_muts.csv", package = "MixviR"))} if (interactive()) {explore_mutations(read.muts.from = system.file("extdata", "sample_mutations.csv", package = "MixviR"), dates = system.file("extdata", "example_location_date.csv", package = "MixviR"), lineage.muts = system.file("extdata", "example_lineage_muts.csv", package = "MixviR"))}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.