Learn R Programming

scPloidy (version 0.3.0)

ploidy: Infer Ploidy from ATAC-seq Fragment Overlap

Description

Infer Ploidy from ATAC-seq Fragment Overlap

Usage

ploidy(fragmentoverlap, levels, s = 100)

Value

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.

Arguments

fragmentoverlap

Frequency of fragment overlap in each cell computed by the function fragmentoverlapcount.

levels

Possible values of ploidy. For example, c(2, 4) if the cells can be diploids or tetraploids. The values must be larger than one.

s

Seed for random numbers used in EM algorithm.