plotMutProteins: Plot the most frequent mutational events for proteins in the...

Description Usage Arguments Value Examples

View source: R/plotMutProteins.R

Description

Plot the most frequent mutational events for proteins selected. The protein name should be specified correctly (only for SARS-CoV-2).

Usage

1
2
3
4
5
6
plotMutProteins(
  covid_annot = covid_annot,
  proteinName = "NSP2",
  top = 20,
  outdir = NULL
)

Arguments

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.

Value

Plot the mutational events for selected proteins as output.

Examples

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)

CovidMutations documentation built on Sept. 18, 2020, 5:06 p.m.