computeObsWSAF | R Documentation |
Compute observed allele frequency within sample from the allele counts.
computeObsWSAF(alt, ref)
alt |
Numeric array of alternative allele count. |
ref |
Numeric array of reference allele count. |
Numeric array of observed allele frequency within sample.
histWSAF
for histogram.
# Example 1
refFile <- system.file("extdata", "PG0390-C.test.ref", package = "DEploid.utils")
altFile <- system.file("extdata", "PG0390-C.test.alt", package = "DEploid.utils")
PG0390CoverageTxt <- extractCoverageFromTxt(refFile, altFile)
obsWSAF <- computeObsWSAF(PG0390CoverageTxt$altCount, PG0390CoverageTxt$refCount)
# Example 2
vcfFile <- system.file("extdata", "PG0390-C.test.vcf.gz", package = "DEploid.utils")
PG0390CoverageVcf <- extractCoverageFromVcf(vcfFile, "PG0390-C")
obsWSAF <- computeObsWSAF(PG0390CoverageVcf$altCount, PG0390CoverageVcf$refCount)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.