classMat: Classification matrix estimating accuracy of model.

Description Usage Arguments Value Examples

View source: R/classMat.R

Description

Classification matrix estimating accuracy of model.

Usage

1
classMat(comb)

Arguments

comb

List containing both negtive (n) and positive (v) clonotype percentages.

Value

Matrix with % correct predictions from training data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
FIELD <- "vGeneName aminoAcid jGeneName"
COUNT <- "copy"
P_CUTOFF <- 0.1
MIN_PUBLIC <- 2
COPY_RANGE <- "1 99"

listPos <- tsvDir(system.file("extdata", "Post", package="iCAT"))
listNeg <- tsvDir(system.file("extdata", "Pre", package="iCAT"))

naive <- readTrn(listNeg, FIELD, COUNT, COPY_RANGE, "naive")
vaccs <- readTrn(listPos, FIELD, COUNT, COPY_RANGE, "vacc")  

mod <- train(naive, vaccs, listNeg, listPos, FIELD, COUNT, COPY_RANGE, P_CUTOFF, MIN_PUBLIC, NULL)
classMat(mod)

BioHPC/iCAT documentation built on Oct. 30, 2021, 3:12 p.m.