phased.binstats.Rd
Junction-balanced version of jabba.alleles
Given a balanced unphased genome graph with field $cn populated with integer values Constructs a "melted" haplotype graph with fields $cn and $allele
Given GRanges containing major/minor allele counts and a balanced but unphased gGraph, prepares phased gGraph input to balance.
phased.binstats.legacy(
gg,
bins = NULL,
purity = NULL,
ploidy = NULL,
count.field = "count",
allele.field = "allele",
phase.blocks = NULL,
edge.phase.dt = NULL,
vbase.count.thres = 5,
vbase.prop.thres = 0.9,
min.bins = 3,
min.var = 0.001,
verbose = TRUE,
mc.cores = 8
)
gGraph
GRanges with:
(numeric)
(numeric)
(str) field containing allele read counts (default count)
(str) field for containing allele label for read counts (default allele)
(GRanges) GRanges containing phase blocks (e.g. from HAPCUT). default NULL.
(data.table) with columns n1.major, n2.major, n1.minor, n2.minor and edge.id providing major/minor allele counts
(int) number of variant base counts required to phase edges (default 5)
(float) proportion of allele excess required to phase edges (default 0.9)
(numeric) minimum number of bins for intra segment variance (default 3)
(numeric) min allowable variance (default 0.1)
(bool) default TRUE for debugging
(int) number of cores
gGraph whose nodes are annotated with $cn.major, $cn.minor, $haplotype, and $weight fields