make_test_instance: Make a tester

Description Usage Arguments Value Examples

Description

Generate a list of functions $test(), $get_successes(all = FALSE), $get_failures(all = FALSE), $reset(), $get_run_ldids(), that allow testing the performance of the mapper against NeXtype results fro a test dataset.

Usage

1
2
3

Arguments

testdata

A dataset generated by a call to get_testdata.

lookup

A <lookup_table>.

alleles

A vector of alleles

mapper

A <mapper> function.

remapper

A <remapper> fucntion.

Value

A list of functions.

Examples

1
2
3
4
5
6
7
8
9
lookup <- lookup_list(rep_dpb1, eag)
tester <- make_test_instance(testdata, lookup)
tester$test(limit = 20)
tester$get_successes()
tester$get_failures()
tester$test(limit = 20)
tester$get_failures()

run_tests_on("ID11732060", testdata, lookup)

gschofl/HLAsim documentation built on May 17, 2019, 8:51 a.m.