Description Usage Arguments Value Examples
Cancer subclone inference
1 2 |
dat |
A list of data frames for each patient, each of them of the form:
|
parameters.grid |
Is a list composed of : the penalty coefficients
named either |
stat |
|
segDat |
Either a path to the file that contains segmentation
(‘*.rds’ file), by default |
... |
Further arguments to be passed to |
verbose |
A logical value indicating whether to print extra
information. Defaults to |
An object of class c3coFit.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | dataAnnotTP <- acnr::loadCnRegionData(dataSet="GSE11976", tumorFrac=1)
dataAnnotN <- acnr::loadCnRegionData(dataSet="GSE11976", tumorFrac=0)
len <- 500*10 ## Number of loci
K <- 3L ## Number of subclones
n <- 15L ## Number of samples
set.seed(88)
bkps <- list(c(100, 250)*10, c(150, 400)*10, c(150, 400)*10)
regions <- list(c("(1,2)", "(0,2)", "(1,2)"),
c("(0,3)", "(0,1)", "(1,1)"), c("(0,2)", "(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, sparse.coeff=0.7)
dat <- mixSubclones(subClones=datSubClone, W=W)
l1 <- seq(from=1e-6, to=1e-4, length.out=10L)
parameters.grid <- list(lambda=l1, nb.arch=2:5)
res <- c3co(dat, parameters.grid=parameters.grid)
## FIXME: BUG: propagate NA when rank deficient
## FIXME: resC <- c3co(dat, stat="TCN", parameters.grid =parameters.grid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.