normalizeCARMA: Normalize CARMA scores

Description Usage Arguments Details Value

View source: R/normalizeCARMA.R View source: R/normalizeCARMA 2.R

Description

This function will not be called directly by the user. The function is used by the CARMA function to calculate normalized regional CARMA scores. The function returns normalized CARMA scores per region for a list of samples, as well as normalized genome wide CARMA scores for a list of samples.

Usage

1
normalizeCARMA(carma.res.reg, carma.res.genome, indx, region.type = "arm", bin.regions = NULL, exclude.x.chrom = T, normalization.set = NULL, quant = 0.99)

Arguments

carma.res.reg

a list containing raw regional CARMA scores

carma.res.genome

a list containing aggregated regional CARMA scores (genome wide CARMA scores)

indx

names of the CARMA scores

region.type

type of region, either "arm", "chrom" or "bin".

bin.regions

if region.type="bin", a data frame giving the start and end positions for the bins is required. It is generated using the binRegions function.

exclude.x.chrom

if exclude.x.chrom=T, the X chromosome is excluded from the analysis.

normalization.set

if normalization.set=NULL the dataset currently being analyzed is used for normalization. Optionally a different set of CARMA scores can be used as a normalization set. The format of the data would then be the direct output of the CARMA function.

quant

the percentile calculated within each region-specific CARMA score in the normalization set used for normalization.

Details

Normalization is performed by first defining a normalization set, which by default is set to the dataset currently being analyzed. Optionally an external dataset can be provided for normalization. The input format of the normalization set would then be the direct output from the CARMA function. Next the 99th percentile for the CARMA score within each region is calculated in the normalization set. Each raw regional CARMA scores in each sample is then divided by the corresponding 99th percentile score.

Value

Two lists of lengths corresponding to the number of samples. The first list ([["regional"]]) containes normalized regional CARMA scores. The second list ([["genome"]]) contains normalized aggregated genome wide CARMA scores.


arnevpladsen/CARMA documentation built on Dec. 19, 2021, 4:39 a.m.