Remove artefact peaks from data.
removeArtefact(
data,
artefact = NULL,
marker = NULL,
allele = NULL,
threshold = NULL,
na.rm = FALSE,
debug = FALSE
)
data.frame with spikes removed.
data.frame with data to remove spikes from.
data.frame that lists artefacts in columns 'Marker', 'Allele', optionally with 'Allele.Proportion'. Alternatively artefacts can be provided using 'marker' and 'allele'.
character vector with marker names paired with values in 'allele'.
character vector with allele names paired with values in 'marker'.
numeric value defining a minimum proportion for artefacts. Requires 'artefacts' including the column 'Allele.Proportion'.
logical TRUE to preserve Allele=NA in 'data'.
logical indicating printing debug information.
Removes identified artefacts from the dataset. Likely artefacts can be
identified using the function calculateAllele
. The output
should then be provided to the 'artefact'. Alternatively known artefacts
can be provided using the 'marker' and 'allele' arguments.