getParameter: Get Kit Parameters

Description Usage Arguments Details Value Examples

View source: R/getParameter.r

Description

Provides parameters for simulation for different STR kits and methods.

Usage

1
2
3
4
5
6
7
8
getParameter(
  kit = NULL,
  what = NA,
  method = NA,
  show.messages = FALSE,
  .kit.param = NULL,
  debug = FALSE
)

Arguments

kit

string or integer specifying the kit.

what

string to specify which information to return. Default is 'NA' which return all info. Not case sensitive.

method

string to specify which method to return. Default is 'NA' which return all info. Not case sensitive.

show.messages

logical, default TRUE for printing messages to the R promt.

.kit.param

data frame, run function on a data frame instead of the parameters.txt file.

debug

logical indicating printing debug information.

Details

The function returns various information for kit and parameters specified in parameters.txt.

Value

vector of data frame with kit information.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Returns vector of available kits.
getParameter()

# Returns vector of all methods.
getParameter(what="methods")

# Returns methods for specified kit.
getParameter(kit="SGMPlus", what="methods")

# Returns vector of available options.
getParameter(what="options")

# Returns vector of markers for specified kit.
getParameter(kit="SGMPlus", what="Marker")

# Returns data frame of all information for specified kit and method.
getParameter(kit="SGMPlus", method = "Default")

OskarHansson/pcrsim documentation built on Jan. 22, 2022, 11:55 a.m.