roundCNR | R Documentation |
Rounds an X matrix to the nearest integer with special threasholds specific to single-cell quantal data from the Varbin algorithm for deletions, losses, and neutral (2 copies)
roundCNR(X, neut = 2.5, loss = 1.2, del = 0.2)
X |
a numerical matrix composed of bins with copy numbers estimates integer or numerical |
neut |
maximum value that will be floored to a neutral copy number for diploid species i.e. 2 |
loss |
lower bound for neutral, and upper bound threshold to be considered a loss of one copy |
del |
maximum threshold to consider a total deletion of the bin i.e. 0 copies |
Rounds X based on quantal
data(copynumbers)
head(copynumbers)
cni <- roundCNR(copynumbers)
head(cni)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.