Command Line Arguments

Sha Zhu

2016-11-25

Program parameters and options

Mostly used

You may also try

Example

Data exploration, plot the read count ALT vs REF.

library(DEploid)

vcfFile = system.file("extdata", "PG0390-C.test.vcf.gz", package = "DEploid")
PG0390 = extractCoverageFromVcf(vcfFile)
plotAltVsRef( PG0390$refCount, PG0390$altCount )

Plot the histogram of the observed allele frequency within sample.

obsWSAF = computeObsWSAF( PG0390$altCount, PG0390$refCount )
histWSAF(obsWSAF)

Load prior information: PLAF and reference panel

plafFile = system.file("extdata", "labStrains.test.PLAF.txt", package = "DEploid")
plaf = extractPLAF(plafFile)
panelFile = system.file("extdata", "labStrains.test.panel.txt", package = "DEploid")

Deconvolute the haplotypes

set.seed(1)
PG0390.deconv = dEploid(paste("-vcf", vcfFile, "-plaf", plafFile, "-panel", panelFile))
prop = PG0390.deconv$Proportions[dim(PG0390.deconv$Proportions)[1],]
expWSAF = t(PG0390.deconv$Haps) %*% prop

Plot the allele frequency within sample (observed in red, expected in blue) against the population level allele frequency.

plotWSAFvsPLAF(plaf, obsWSAF, expWSAF)

Plot the history of the MCMC proportion estimates.

plotProportions(PG0390.deconv$Proportions)

Plot the allele frequency within sample, observed against expected.

plotObsExpWSAF(obsWSAF, expWSAF)