Description Usage Arguments Examples
View source: R/HoneyBADGER_allele.R
Calculate posterior probability of CNVs using allele data
1 2 | calcAlleleCnvProb(r.maf, n.sc, l.maf, n.bulk, snps, geneFactor, region = NULL,
filter = FALSE, pe = 0.1, mono = 0.7, verbose = FALSE)
|
r.maf |
Matrix of alt allele count in single cells. |
n.sc |
Matrix of site coverage count in single cells. |
l.maf |
Vector of alt allele count in pooled single cells or bulk. |
n.bulk |
Vector of site coverage count in pooled single cells or bulk. |
snps |
SNP annotations |
geneFactor |
Output of |
region |
GenomicRanges region of interest such as expected CNV boundaries. |
filter |
Boolean for whether to filter out SNP sites with no coverage. (default: TRUE) |
pe |
Effective error rate to capture error from sequencing, etc. (default: 0.01) |
mono |
Rate of mono-allelic expression. (default: 0.7) |
verbose |
Verbosity(default: FALSE) |
1 2 3 4 5 6 7 8 9 | data(r)
data(cov.sc)
allele.mats <- setAlleleMats(r, cov.sc)
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
geneFactor <- setGeneFactors(allele.mats$snps, TxDb.Hsapiens.UCSC.hg19.knownGene)
## test region known to be commonly deleted in glioblastoma
results <- calcAlleleCnvProb(allele.mats$r.maf, allele.mats$n.sc,
allele.mats$l.maf, allele.mats$n.bulk, allele.mats$snps, geneFactor,
region=GenomicRanges::GRanges('chr10', IRanges::IRanges(0,1e9)), verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.