Learn R Programming

strvalidator (version 1.4.0)

filterProfile: Filter out profiles from DNA results

Description

filterProfile Filters out the result matching a specified known profiles from typing data containing 'noise' such as stutters. If 'ref' does not contain a 'Sample.Name' column it will be used as reference for all samples in 'data'. NB! add.missing.loci overrides keep.na.

Usage

filterProfile(data, ref, add.missing.loci = FALSE, keep.na = FALSE,
  ignore.case = TRUE, debug = FALSE)

Arguments

data
data frame with genotype data in 'slim' format.
ref
data frame with reference profile in 'slim' format.
add.missing.loci
logical. TRUE add loci present in ref but not in data. Overrides keep.na=FALSE.
keep.na
logical. FALSE discards NA alleles. TRUE keep loci/sample even if no matching allele.
ignore.case
logical TRUE ignore case.
debug
logical indicating printing debug information.

Value

  • data.frame with extracted result.

Details

Returns data where allele names match 'ref' allele names. Required columns are: 'Sample.Name', 'Marker', and 'Allele'.