R/data_readiness.R
amp_threshold.Rd
amp_threshold
takes a threshold value and applies it to the numerical
allele data. Also produces a record of which samples were filtered out and
proportions of NA's per loci.
amp_threshold(at)
Numeric value of the average amplification rate to filter the numerical alleles. Values greater than or equal to are retained.
It will write to `results/` three csv files:
filtered alleles data with threshold indicated in the name
sample that were filtered at with threshold indicated in the name
proportion of NA's for the loci
It will also print to screen the number of samples filtered out at this threshold.
The predetermined amplification threshold, ascertained through
visualisation amp_splots
, is used to filter the numerical
alleles data set and written to csv. The names of all the samples that are
rejected at this threshold are also written to csv file.
Lastly the proportion of missing data (NA’s) per locus is written to csv. All outputs are written to `results/`.
if (FALSE) {
amp_threshold(at = 0.8)
}