Description Usage Arguments Value See Also Examples
Fits a number of Gaussian finite mixture models at a CNV region for a collection of samples and returns a single best-fitting model.
1 | cnv_models(mb, grange, snp_se, mp = McmcParams(iter = 1000, burnin = 200))
|
mb |
a MultiBatch instance |
grange |
GRanges object indicating the CNV region |
snp_se |
a SummarizedExperiment with assay data containing B allele frequencies at SNPs |
mp |
a McmcParams instance |
a MultiBatch instance
1 2 3 4 5 6 7 8 9 10 11 12 13 | path <- system.file("extdata", package="CNPBayes")
set.seed(555)
cnp_se <- readRDS(file.path(path, "cnp_se.rds"))["CNP_022", ]
snp_se <- readRDS(file.path(path, "snp_se.rds"))
snp_se <- subsetByOverlaps(snp_se, cnp_se)
path2 <- file.path(path, "CNP_022")
mb.subsamp <- readRDS(file.path(path2, "mb_subsamp.rds"))
## Not run:
mb <- cnv_models(mb.subsamp,
rowRanges(cnp_se)["CNP_022"],
snp_se)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.