rephasebins | R Documentation |
This function implements 2 rephasing algorithms. The first mindist
, implementthe dynamic programming algorithm to rephase haplotype copy number first described in CHISEL.
The objective is to find the phase that minimizes the number of copy number events. The second LOH
finds cells with whole chromosome losses and assumes this was a single
event and rephases all the bins relative to this.
rephasebins(
cn,
chromosomes = NULL,
method = "mindist",
whole_chr_cutoff = 0.9,
ncells = 1,
clusterfirst = FALSE,
cl = NULL
)
cn |
either a |
chromosomes |
vector specifying which chromosomes to phase, default is NULL whereby all chromosomes are phased |
method |
either |
ncells |
default 1 |
clusterfirst |
Whether to cluster cells and perform rephasing on clusters rather than cells |
cl |
Precomputed clustering object from |
Either a new hscn
object or a dataframe with rephased bins depdending on the input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.