Learn R Programming

ExomeDepth (version 1.1.15)

initialize,ExomeDepth-method: ExomeDepth initialization tool

Description

Builds an exomeDepth object from test and reference vectors

Usage

# S4 method for ExomeDepth
initialize(
  .Object,
  data = NULL,
  test,
  reference,
  formula = "cbind(test, reference) ~ 1",
  phi.bins = 1,
  prop.tumor = 1,
  subset.for.speed = NULL,
  verbose = TRUE
)

Arguments

.Object

ExomeDepth object

data

Data frame containing potential covariates.

test

Numeric, vector of counts for the test sample.

reference

Numeric, vector of counts for the reference sample.

formula

Linear model to be used when fitting the data.

phi.bins

Numeric, defaults to 1. Number of discrete bins for the over-dispersion parameter phi, depending on read depth. Do not modify this parameter for the standard use of ExomeDepth.

prop.tumor

Numeric, defaults to 1. For the somatic variant calling, this assesses the proportion of the test sample data originating from the tumour. Do not modify this parameter for the standard use of ExomeDepth.

subset.for.speed

Numeric, defaults to NULL. If non-null, this sets the number of data points to be used for an accelerated fit of the data.

verbose

Logical, controls the output level.