fractionPlotDf: Plot Dataframe

Description Usage Arguments Details Author(s) Examples

Description

Summarizes information to ease creating plots

Usage

1
2
3
4
fractionPlotDf(x, snp, strand = "*", top.fraction.criteria = "maxcount", ...)

## S4 method for signature 'ASEset'
fractionPlotDf(x, snp, strand = "*", top.fraction.criteria = "maxcount", ...)

Arguments

x

ASEset

snp

rownames identifier for ASEset or row number

strand

'+', '-' or '*'

top.fraction.criteria

'maxcount', 'ref' or 'phase'

...

arguments to forward to internal functions

Details

Main purpose is to reduce the amount of overall code and ease maintenance.

top.fraction.criteria can take three options, maxcount, ref and phase. The top allele will be every second row in the data frame, with start from row 2. The maxcount argument will put the allele with most reads on top of the bivariate fraction. Similarly the ref argument will put always the reference allele on top. The phase arguments puts the maternal phase always on top. The top.fraction.criteria for the ref or phase arguments requires that both ref and alt is set in mcols(ASEset).

Author(s)

Jesper R. Gadin, Lasse Folkersen

Examples

1
2
3
4
#test on example ASEset
data(ASEset)
a <- ASEset
df <- fractionPlotDf(a, 1, strand="+")

pappewaio/AllelicImbalance documentation built on April 11, 2020, 2:58 a.m.