countingBaseSegments: countingBaseSegments

Description Usage Arguments Details Value Examples

View source: R/cin_metrics.R

Description

Function for counting altered base segments

Usage

1
countingBaseSegments(cnvData, segmentMean = 0.2, numProbes = NA)

Arguments

cnvData

dataframe containing following columns: Sample, Start, End, Num_Probes, Segment_Mean

segmentMean

numerical value for the minimum segment_mean cutoff/ threshold. Default is 0.2

numProbes

Number of Probes

Details

The Altered Base Segment calculation takes all the CNV data for a single patient and first filters it for a segmentation mean of > 0.2 and, if specified, the minimum number of probes covering that area. Then, it calculates the sums of the lengths of each segment for a particular patient and outputs that.

Number\ of\ Altered\ Bases = ∑^{R}_{i = 1} d_i\ where\ |\bar{y}_{S_i}| ≥ 0.2

Value

Number of Base segments for each unique sample

Examples

1

CINmetrics documentation built on Aug. 2, 2021, 9:06 a.m.