Scrambles alleles in a dataset to anonymize the profile.
data.frame with columns 'Sample.Name', 'Marker', and 'Allele'.
character defining the allele frequency database to be used.
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
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.
data.frame with changes in 'Allele' column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.