R/segmentation.R
segment.baf.phased.sv.RdThis function takes the SV breakpoints as initial segments and runs PCF on each of those independently. The SVs must be supplied as a simple data.frame with columns chromosome and position
segment.baf.phased.sv(
samplename,
inputfile,
outputfile,
svs = NULL,
gamma = 10,
phasegamma = 3,
kmin = 3,
phasekmin = 3,
no_segmentation = F,
calc_seg_baf_option = 1
)Name of the sample, which is used to name output figures
String that points to the output from the combine.baf.files function. This contains the phased SNPs with their BAF values
String where the segmentation output will be written
Data.frame with chromosome and position columns (Default: NULL)
The gamma parameter controls the size of the penalty of starting a new segment during segmentation. It is therefore the key parameter for controlling the number of segments (Default 10)
Gamma parameter used when correcting phasing mistakes (Default 3)
Kmin represents the minimum number of probes/SNPs that a segment should consist of (Default 3)
Kmin parameter used when correcting phasing mistakes (Default 3)
Do not perform segmentation. This step will switch the haplotype blocks, but then just takes the mean BAFphased as BAFsegm
Various options to recalculate the BAF of a segment. Options are: 1 - median, 2 - mean. (Default: 1)