plotScoreDistribution: Plot distribution of number of variant scores passed

Description Usage Arguments Value Examples

Description

Plots the number of variants that pass each number of scores. Overlayed with gene.

Usage

1
plotScoreDistribution(df, gene.symbol, save.plot = FALSE, output.dir)

Arguments

df

Data frame from sorted scored variant file.

gene.symbol

HGNC gene symbol of the gene that the variants are within.

save.plot

TRUE/FALSE

output.dir

Needed if save.plot == TRUE. The directory that the image should be saved to.

Value

A distribution of the variant scores is plotted and optionally saved to a directory.

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

data("MUC1_variants")
cleanVariants <- removeUnwantedVariants(MUC1_variants)
annotatedVariants <- addVariantAnnotations(cleanVariants, "MUC1")
scoreSortedVariants <- sortScoredVariants(annotatedVariants)
plotScoreDistribution(scoreSortedVariants, "MUC1")

SandersKM/MendelianVariants documentation built on May 12, 2019, 4:35 a.m.