Infer Ploidy from ATAC-seq Fragment Overlap
ploidy(fragmentoverlap, levels, s = 100)A data.frame with each row corresponding to a cell.
For each cell, its barcode, ploidy inferred by moment method,
the same with additional K-means clustering,
and ploidy inferred by EM algorithm of mixture are given.
I recommend using ploidy.moment.
Frequency of fragment overlap in each cell
computed by the function fragmentoverlapcount.
Possible values of ploidy. For example,
c(2, 4) if the cells can be diploids or tetraploids.
The values must be larger than one.
Seed for random numbers used in EM algorithm.