defcon: DEtection of Frequency CONtamination

Description Usage Arguments Value Examples

View source: R/defcon.R

Description

Detects whether a sample is contaminated another sample of its same species. The input file should be in vcf format.

Usage

1
2
defcon(file, rmCNV = FALSE, cnvobj = NULL, config = NULL,
  class_model = NULL, regression_model = NULL)

Arguments

file

VCF input object

rmCNV

Remove CNV regions, default is FALSE

cnvobj

CNV object, default is NULL

config

config information of parameters. A default set is generated as part of the model and is included in a model object, which contains

class_model

An SVM classification model

regression_model

An SVM regression model

Value

A list containing (1) stat: a data frame with all statistics for contamination estimation; (2) result: contamination estimation (Class = 0, pure; Class = 1, contaminated)

Examples

1
2

vanquish documentation built on May 2, 2019, 9:42 a.m.