find_null_cutoff: Find Null Cutoffs Based on Randomised Null Permuted Allele...

View source: R/find_null_cutoff.R

find_null_cutoffR Documentation

Find Null Cutoffs Based on Randomised Null Permuted Allele Frequency Change Vectors

Description

This function takes the output the eigen analysis and returns a matrix of summed values where each eigenvalue is the sum of itself and the eigenvalues that preceed it. This summed value is what is plotted and tested for significance. This function can be run over a list of eigen_analyse_vectors with lapply().

Usage

find_null_cutoff(null_res = NULL, cutoffs = c(0.99))

Arguments

null_res

A list of NULL allele frequency change vector matrices as output by calc_AF_vectors() with null_perms set to a numeric value.

cutoffs

Numeric vector of alpha thresholds for null distribution cutoffs, for e.g. 0.95 = 5%, 0.99 = 1% e.t.c.

Value

A matrix of null cutoffs with one row per eigenvalue and one column per significance threshold


JimWhiting91/afvaper documentation built on Aug. 30, 2022, 10:03 a.m.