sssc: Same Species Sample Contamination
Description
Detects whether a sample is contaminated another sample of its same species. The input file should be in vcf format.
Usage
sssc(file, rmCNV = FALSE, cnvobj = NULL, config = NULL,
class_model = NULL, regression_model = NULL)
Arguments
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
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
Run this code# NOT RUN {
data(vcf_example)
result <- sssc(file = vcf_example)
# }
Run the code above in your browser using DataLab