Description Usage Arguments Value Examples
View source: R/set_threshold.R
Function truncates the genotypes (column gtype
) given a threshold (cutoff) an classification method. This causes that all genotypes below threshold defined in threshol
will be called as NC (no-call)
1 | set_threshold(.data,clfcol,threshold)
|
.data |
dataframe from |
clfcol |
column with classification score |
threshold |
threshold from 0 to 1 |
data frame with gtype set to NC for classification score below chosen threshold
1 2 3 4 5 6 7 8 9 10 11 | setwd(system.file(package='SureTypeSCR'))
samplesheet=system.file('files/GSE19247_example.csv',package='SureTypeSCR')
manifest=system.file('files/HumanCytoSNP-12v2_H.bpm',package='SureTypeSCR')
cluster=system.file('files/HumanCytoSNP-12v2_H.egt',package='SureTypeSCR')
##Load data
#df=scbasic(manifest,cluster,samplesheet)
##changing Gencall score threshold
#df %>% set_threshold(clfcol='score',threshold=0.5) %>% callrate()
##with higher threshold we expect lower call rate
#df %>% set_threshold(clfcol='score',threshold=0.75) %>% callrate()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.