
Last chance! 50% off unlimited learning
Sale ends in
Guesses the correct profile based on peak height.
guessProfile(
data,
ratio = 0.6,
height = 50,
na.rm = FALSE,
ol.rm = TRUE,
debug = FALSE
)
data.frame 'data' with genotype rows only.
a data frame containing at least 'Sample.Name', 'Marker', 'Allele', Height'.
numeric giving the peak height ratio threshold.
numeric giving the minimum peak height.
logical indicating if rows with no peak should be discarded.
logical indicating if off-ladder alleles should be discarded.
logical indicating printing debug information.
Takes typing data from single source samples and filters out the presumed profile based on peak height and a ratio. Keeps the two highest peaks if their ratio is above the threshold, or the single highest peak if below the threshold.
# Load an example dataset.
data(set2)
# Filter out probable profile with criteria at least 70% Hb.
guessProfile(data = set2, ratio = 0.7)
Run the code above in your browser using DataLab