removeSpike {strvalidator} | R Documentation |
Remove Spikes
Description
Remove spikes from data.
Usage
removeSpike(data, spike, invert = FALSE, debug = FALSE)
Arguments
data |
data.frame with data to remove spikes from. |
spike |
data.frame with list of spikes. |
invert |
logical FALSE to remove spikes, TRUE to keep spikes. |
debug |
logical indicating printing debug information. |
Details
Removes identified spikes from the dataset. Spikes are identified using the
function calculateSpike
and provided as a separate dataset.
NB! Samples must have unique identifiers.
Some laboratories use non-unique names for e.g. negative controls. To allow
identification of specific samples when multiple batches are imported into
one dataset an id is automatically created by combining the sample name and
the file name. This work well as long as there is at most 1 identically
named sample in each file (batch). To enable multiple identically named
samples in one file, the sample names can be prefixed with the lane or well
number before importing them to STR-validator.
Value
data.frame with spikes removed.