plot.VariantAlleleInfo: Plotting the variant allele information

Description Usage Arguments Details Value See Also Examples

Description

This is a generic function to plot different information on the variant allele counts. The information to plot is set by the parameter Value which can be eithe rof the following :

WellsFraction

Wells allele fraction of the variant

WellsCounts

Wells allele counts of the variants

ReadsFraction

Reads allele fraction of the variant

ReadsCounts

Reads allele counts of the variants

Usage

1
2
3
## S3 method for class 'VariantAlleleInfo'
plot(object, region = NULL, samplingRatio = 1,
  value = "WellsFraction", main = "")

Arguments

region

Region to be plotted. If NULL then the whole region covered by the variants will be considered

samplingRatio

Ratio of points to plot. Only 1 each samplingRatio points will be plotted.

main

The title of the plot. default: None

x

an VariantAlleleInfo object containing the list of variant and their genomic location and allele count information

Value

Information to plot. Can be one of WellsFraction, WellsCounts, ReadsFraction, ReadsCounts.

Details

In both types, the paramater Value allow to specifie which variable will be represented on the y-axis. It can be 'Coverage' for the LFR Average Coverage and 'Length' for the LFR lengths.

Value

See Also

getVariantAlleleInfo, getVariantCoverageTable, VariantAlleleInfo

Examples

1
2
3
4
#Example 1:
vcffile<-system.file('extdata','LFR_11152_Tissue_chr22_1000variants.vcf.gz',package='DigitalPicoTools')
AlleleInfo_df = getVariantAlleleInfo(vcffile)
plot(AlleleInfo_df,'chr22')

chedonat/DigitalPicoTools documentation built on May 13, 2019, 3:39 p.m.