ploidy | R Documentation |
Infer Ploidy from ATAC-seq Fragment Overlap
ploidy(
fragmentoverlap,
levels,
s = 100,
epsilon = 1e-08,
subsamplesize = NULL,
dobayes = FALSE,
prop = 0.9
)
fragmentoverlap |
Frequency of fragment overlap in each cell
computed by the function |
levels |
Possible values of ploidy. For example,
|
s |
Seed for random numbers used in EM algorithm. |
epsilon |
Convergence criterion for the EM algorithm. |
subsamplesize |
EM algorithm becomes difficult to converge
when the number of cells is very large.
By setting the parameter (e.g. to 1e4),
we can run EM algorithm iteratively,
first for |
dobayes |
(experimental feature) Whether to perform Bayesian inference, which takes long computation time. |
prop |
Proportion of peaks that can be fitted with binomal distribution in ploidy.bayes. The rest of peaks are allowed to have depth larger than the ploidy. |
A data.frame with each row corresponding to a cell.
For each cell, its barcode, ploidy inferred by 1) moment method,
2) the same with additional K-means clustering,
3) EM algorithm of mixture, and, optionally,
4) Bayesian inference are given.
I recommend using ploidy.moment
or ploidy.em
.
When fragmentoverlapcount
was computed with dobptonext=TRUE
,
we only use the chromosomal sites with chromatin accessibility in top 10
This requires longer computation time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.