scrambleAlleles: Scramble Alleles

Description Usage Arguments Details Value

Description

Scrambles alleles in a dataset to anonymise the profile.

Usage

1
scrambleAlleles(data, db = "ESX 17 Hill")

Arguments

data

data.frame with columns 'Sample.Name', 'Marker', and 'Allele'.

db

character defining the allele frequecy database to be used.

Details

Internal helper function to create example data. Assumes data with unique alleles per marker i.e. no duplications. This allow for sampling without replacement see sample. Sex markers are currently not scrambled i.e. they are kept intact. Alleles in the dataset is replaced with random alleles sampled from the allele database. If 'Size' is in the dataset it will be replaced by an estimated size. If 'Data.Point' is present it will be removed.

Value

data.frame with changes in 'Allele' column.



Search within the strvalidator package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.