peelingTwoIterate: A Function to Apply the Peeling Algorithm for Two Copy Number...

peelingTwoIterateR Documentation

A Function to Apply the Peeling Algorithm for Two Copy Number Matrices

Description

This function iteratively applies the peelingTwo function, thereby identifying multiple

Usage

peelingTwoIterate(
  X,
  Y,
  posDT,
  gain = TRUE,
  nullDist = NULL,
  threshold = NULL,
  numIters = 5
)

Arguments

X

A matrix of normalized gene-level copy number data (rows = genes, columns = subjects).

Y

A matrix of normalized gene-level copy number data (rows = genes, columns = subjects).

posDT

A data frame containing genomic position information for the genes in X.

gain

A logical value indicating whether gains (TRUE) or losses (FALSE) will be peeled.

Default = TRUE.

nullDist

An empirical null distribution produced by the cyclic shift algorithm.

Default = NULL.

threshold

A tuning parameter that controls the size of the peeled region. Rows of X

and Y with mean copy number differences less than threshold will not be peeled. Default = NULL.

numIters

The number of times peelingTwo will be iterated. Default = 5.

Details

differences across the genome between a two cohorts. Gains and losses should be analyzed separately.

The peelingTwo function applies the peeling procedure for two cohorts to "nullify" entries in two copy number matrices X and Y that give rise to the most significant copy number difference. Because tumor genomes may contain multiple regions that harbor copy number differences, it is important to apply the peeling procedure for two cohorts iteratively, thereby identifying multiple markers and surrounding genomic regions.

Value

A list containing two elements: X, Y, and interval. X and Y are updated versions of the input copy number matrices in which the peak difference at k has been removed, and interval is genomic region containing k. By construction, interval cannot extend beyond the chromosome arm containing k.

Examples

luad=pD[["X"]]

 lusc=pD[["Y"]]

 posDT=pD[["posDT"]]

 gain = TRUE

 nullDist = NULL

 threshold = NULL

 numIters = 3

 out=peelingTwoIterate(X=luad,Y=lusc,posDT=posDT,gain=TRUE,nullDist=NULL,threshold=NULL,numIters=3)   


DiNAMIC.Duo documentation built on March 7, 2023, 8:38 p.m.