Learn R Programming

strvalidator (version 0.3.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.

Usage

filterProfile(data, ref, addMissingLoci = FALSE,
    keepNA = FALSE, ignoreCase = TRUE, debug = FALSE)

Arguments

data
data frame with genotype data in 'slim' format.
ref
data frame with reference profile in 'slim' format.
keepNA
logical. FALSE discards NA alleles.
addMissingLoci
logical.
ignoreCase
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'.