segmentstotemplate: Create a template data frame from input that only provides...

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/accessory_functions.R

Description

segmentstotemplate "explodes" segment data and creates a data frame with information for all bins. This enables the use of data limited to segments in ACE-related functions.

Usage

1
2
segmentstotemplate(segmentdf, chrci = 1, startci = 2, endci = 3, 
  binsci = 4, meanci = 5, seci, sdci, log = FALSE)

Arguments

segmentdf

Data frame or file path. Data frame or file path to tab-delimited file with segment data

chrci

Integer. Specifies the index of the column containing chromosome information. Default = 1

startci

Integer. Specifies the index of the column containing start positions. Default = 2

endci

Integer. Specifies the index of the column containing end positions. Default = 3

binsci

Integer. Specifies the index of the column containing number of bins or number of probes. Default = 4

meanci

Integer. Specifies the index of the column containing the segment value. Default = 5

seci

Integer. Optional. Specifies the index of the column containing standard errors of the segment mean. See details below

sdci

Integer. Optional. Specifies the index of the column containing standard deviations of the segment mean. See details below

log

Logical or integer. If the data is given in log-values, the data is converted to linear scale using the given log base, or inverting the natural logarithm when set to TRUE. Default = FALSE

Details

Even though there is no copy number information for each bin, this needs to be provided for several ACE-related functions. By default, segmentstotemplate will just "copy" the segment data. If the segment data comes with either standard deviations or standard errors, it is possible to "simulate" copy number data. To do so, segmentstotemplate will use the R stats rnorm function.

Value

Returns a template data frame.

Note

Author(s)

Jos B. Poell

See Also

compresstemplate


ACE documentation built on Nov. 8, 2020, 5:30 p.m.