int_ploidy: Calculate Integer Ploidy Value for Post-processing

Description Usage Arguments Details Value Examples

View source: R/int_ploidy.R

Description

Set (haplotype) ploidy value to either 1 or 2.

Usage

1

Arguments

var

The current value for all variables (see init_var)

sep

The separation value (see get_sep)

Details

To get the interger ploidy value, we set all the infered ploidy value from FPI to be either 1 or 2, based on their value relative to the seperation value.

This gives us (haplotype) ploidy values for all samples, based on which we could run a lasso-like post-processing step. The post-processing could make the prediction for recurrent CNV before and after WGD more biologically meaningful.

Value

Cector containing integer-valued ploidy

Examples

1
g_int=int_ploidy(FPI_result$var,g_sep)

yun-feng/WGDAP documentation built on Nov. 5, 2019, 1:22 p.m.