Description Usage Arguments Value Examples
View source: R/globalProteinMut.R
This function is to visualize the global protein mutational pattern in the SARS-CoV-2 genome.
1 2 3 4 5 6 7 | globalProteinMut(
covid_annot = covid_annot,
outdir = NULL,
figure_Type = "heatmap",
top = 10,
country = "global"
)
|
covid_annot |
The mutation effects provided by "indelSNP" function. |
outdir |
The output directory. |
figure_Type |
Figure type for either "heatmap" or "count". |
top |
The number of variants to plot. |
country |
Choose a country to plot the mutational pattern or choose "global" to profile mutations across all countries. The default is "global". |
Plot the selected figure type as output.
1 2 3 4 5 6 7 8 9 | data("covid_annot")
outdir <- tempdir()
# make sure the covid_annot is a dataframe
covid_annot <- as.data.frame(covid_annot)
globalProteinMut(covid_annot = covid_annot,
outdir = outdir,
figure_Type = "heatmap",
top = 10,
country = "USA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.