Learn R Programming

CINmetrics (version 0.1.0)

countingBaseSegments: countingBaseSegments

Description

Function for counting altered base segments

Usage

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

Value

Number of Base segments for each unique sample

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 = \sum^{R}_{i = 1} d_i\ where\ |\bar{y}_{S_i}| \ge 0.2 $$

Examples

Run this code
# NOT RUN {
countingBaseSegments(cnvData = maskCNV_BRCA)
# }

Run the code above in your browser using DataLab