R/data_readiness.R
miss_threshold.Rd
miss_threshold
takes a "missingness" threshold and applies it to a
filtered numerical allele data set and then writes the results to csv.
miss_threshold(mt, at)
Numeric value of the "missingness" threshold to further filter the numerical alleles. Values less than the threshold are retained.
Numeric value of the average amplification threshold used on the input data. NOTE used to select a pre-made data.
Writes a numerical alleles data csv, filtered to the `at` and `mt` thresholds, to the `results/` sub-directory. It will also print to screen the number of loci that will be filtered out at this "missingness" threshold.
The predetermined "missingness" threshold, ascertained through
visualisation miss_hist
, is used to further filter the
numerical alleles data set and written to csv to the `results/`
sub-directory.
The amplification threshold parameter is used to select the correct
data set from the `results/` sub-directory that had been created by the
amp_threshold
function.
if (FALSE) {
miss_threshold(mt = 0.2, at = 0.8)
}