Arguments
data
data.frame with data to remove spikes from.
artefact
data.frame that lists artefacts in columns 'Marker',
'Allele', optionally with 'Allele.Proportion'.
Alternatively artefacts can be provided using 'marker' and 'allele'.
marker
character vector with marker names paired with values in 'allele'.
allele
character vector with allele names paired with values in 'marker'.
threshold
numeric value defining a minimum proportion for artefacts.
Requires 'artefacts' including the column 'Allele.Proportion'.
na.rm
logical TRUE to preserve Allele=NA in 'data'.
debug
logical indicating printing debug information.