Learn R Programming

SomatiCA (version 2.2.0)

admixtureRate: Estimate the admixture rate of normal cells in a tumor sample.

Description

The estimation of the admixture rate is accomplished by fitting the input tumor somatic copy number (somatic ratio*2) of all segments with a Bayesian finite mixture model, with components centered at the discrete levels. Each segment was assigned with a discrete level based on corresponding posterior probability. Segments with ambiguous assignments will be classified as candidate subclonal events and excluded from admixture rate inference. The admixture rate will be estimated by an optimal solution contributed by explanation of tumor copy number with all remaining segments as integer level.

Usage

admixtureRate(segmentwithratio, mcmc = 10000, burnin = 5000, p = 0.01, weight=FALSE)

Arguments

segmentwithratio
A GRanges object, segments with annotation of somatic ratio.
mcmc
number of MCMC iteration.
burnin
number of MCMC iteration for burnin.
p
posterior probability cutoff for ambiguous integer copy number assignments.
weight
whether penalize the segment based on its length.

Value

admix
Admixture rate.
mu
Posterior mean for each discrete level.
cluster
A two-column matrix for input somatic ratio and corresponding integer somatic copy number level.

Examples

Run this code
data(segwithratio)
seg <-  GRanges(seqnames=segwithratio$chromosome, 
              ranges=IRanges(start=segwithratio$start, 
                             end=segwithratio$end),
              medLAF=segwithratio$medLAF,
              medgLAF=segwithratio$medgermlineLAF,
              ratio=segwithratio$ratio)
bb <- admixtureRate(seg)

Run the code above in your browser using DataLab