Description Usage Arguments Value Examples
View source: R/plotMutProteins.R
Plot the most frequent mutational events for proteins selected. The protein name should be specified correctly (only for SARS-CoV-2).
1 2 3 4 5 6 | plotMutProteins(
covid_annot = covid_annot,
proteinName = "NSP2",
top = 20,
outdir = NULL
)
|
covid_annot |
The mutation effects provided by "indelSNP" function. |
proteinName |
Proteins in the SARS-CoV-2 genome, available choices: 5'UTR, NSP1~NSP10, NSP12a, NSP12b, NSP13, NSP14, NSP15, NSP16, S, ORF3a, E, M, ORF6, ORF7a, ORF7b, ORF8, N, ORF10. |
top |
The number of objects to display. |
outdir |
The output directory. |
Plot the mutational events for selected proteins as output.
1 2 3 4 5 | data("covid_annot")
# make sure the covid_annot is a dataframe
covid_annot <- as.data.frame(covid_annot)
#outdir <- tempdir() specify your output directory
plotMutProteins(covid_annot = covid_annot,proteinName = "NSP2", top = 20, outdir = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.