Description Usage Arguments Details Value Examples
Create a mixture of subclones
1 | mixSubclones(subClones, W)
|
subClones |
A list of K subclones, as provided by
|
W |
A n x K matrix of weights in [0,1], as generated by
|
The mixture is performed at the scale of minor and major copy numbers (which is the scale at which copy number events occur). Therefore the data is first mapped to this scale, then mixed, then mapped back to the original (tcn, dh) scale.
By construction, dh, minor and major CN are only defined for heterozygous SNPs. Therefore, in the output data, the corresponding columns are missing for homozygous SNPs. Total copy numbers are not missing, so it makes sense to keep the homozygous SNPs in the output data as they will be exploited at the segmentation step.
A list of n samples obtained by mixing the pure subclones according to the proportions specified in argument W.
1 2 3 4 5 6 7 8 9 10 11 | dataAnnotTP <- acnr::loadCnRegionData(dataSet="GSE11976", tumorFrac=1)
dataAnnotN <- acnr::loadCnRegionData(dataSet="GSE11976", tumorFrac=0)
len <- 500*10 ## Number of loci
K <- 2L ## Number of subclones
n <- 3L ## Number of samples
bkps <- list(c(100, 250)*10, c(150, 400)*10)
regions <- list(c("(0,3)", "(0,2)", "(1,2)"), c("(1,1)", "(0,1)", "(1,1)"))
datSubClone <- buildSubclones(len=len, nbClones=K, bkps=bkps, regions=regions,
dataAnnotTP=dataAnnotTP, dataAnnotN=dataAnnotN)
W <- rSparseWeightMatrix(nb.samp=n, nb.arch=K)
mixture <- mixSubclones(datSubClone, W=W)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.