Usage
lohSpec(x = NULL, path = NULL, fileExt = NULL, y = NULL, genome = "hg19", gender = NULL, step = 1e+06, window_size = 2500000, normal = 0.5, colourScheme = "inferno", plotLayer = NULL, method = "slide", out = "plot")
Arguments
x
object of class data frame with rows representing germline calls.
The data frame must contain columns with the following names "chromosome",
"position", "n_vaf", "t_vaf", "sample". required if path is set to NULL (see
details).
path
Character string specifying the path to a directory containing
germline calls for each sample. Germline calls are expected to be stored as
tab-seperated files which contain the following column names "chromosome",
"position", "n_vaf", "t_vaf", and "sample". required if x is set to null
(see details).
fileExt
Character string specifying the file extensions of files
within the path specified. Required if argument is supplied to path
(see details).
y
Object of class data frame with rows representing chromosome
boundaries for a genome assembly. The data frame must contain columns with
the following names "chromosome", "start", "end" (optional: see details).
genome
Character string specifying a valid UCSC genome (see details).
gender
Character vector of length equal to the number of samples,
consisting of elements from the set "M", "F". Used to suppress the plotting
of allosomes where appropriate.
step
Integer value specifying the step size (i.e. the number of base
pairs to move the window). required when method is set to slide
(see details).
window_size
Integer value specifying the size of the window in base
pairs in which to calculate the mean Loss of Heterozygosity (see details).
normal
Numeric value within the range 0-50 specifying the expected
normal variant allele frequency to be used in Loss of Heterozygosity
calculations. defaults to 50%
colourScheme
Character vector specifying the colour scale to use from
the viridis package. One of "viridis", "magma", "plasma", or "inferno".
plotLayer
Valid ggpot2 layer to be added to the plot.
method
character string specifying the approach to be used for
displaying Loss of Heterozygosity, one of "tile" or "slide" (see details).
out
Character vector specifying the the object to output, one of
"data", "grob", or "plot", defaults to "plot" (see returns).