Learn R Programming

strvalidator (version 1.3.0)

calculateResultType: Calculate result type

Description

calculateResultType calculate the result type for samples.

Usage

calculateResultType(data, kit = NULL, addMissingMarker = TRUE,
  threshold = NULL, mixtureLimits = NULL, partialLimits = NULL,
  subsetName = NA, markerSubset = NULL, debug = FALSE)

Arguments

data
a data frame containing at least the column 'Sample.Name'.
kit
character string or integer defining the kit.
addMissingMarker
logical, defualt is TRUE which adds missing markers.
threshold
integer indicating the dropout threshold.
mixtureLimits
integer or vector indicating subtypes of 'Mixture'.
partialLimits
integer or vector indicating subtypes of 'Partial'.
subsetName
string naming the subset of 'Complete'.
markerSubset
string with marker names defining the subset of 'Complete'.
debug
logical indicating printing debug information.

Value

  • data.frame with columns 'Sample.Name','Type', and 'Subtype'.

Details

Calculates result types for samples in 'data'. Defined types are: 'No result', 'Mixture', 'Partial', and 'Complete'. Subtypes can be defined by parameters. An integer passed to 'threshold' defines a subtype of 'Complete' "Complete profile all peaks >threshold". An integer or vector passed to 'mixtureLimits' define subtypes of 'Mixture' "> [mixtureLimits] markers". An integer or vector passed to 'partialLimits' define subtypes of 'Partial' "> [partialLimits] peaks". A string with marker names separated by pipe (|) passed to 'markerSubset' and a string 'subsetName' defines a subtype of 'Partial' "Complete [subsetName]".