eigen_pvals: Calculate associated p-values for AF-vapeR eigenvalues

View source: R/eigen_pvals.R

eigen_pvalsR Documentation

Calculate associated p-values for AF-vapeR eigenvalues

Description

Takes a list containing results from eigen_analyse_vectors() and calculates p-values based on null vectors.

Usage

eigen_pvals(eigen_res, null_vectors)

Arguments

eigen_res

A list of results from eigen_analyse_vectors(). This can be easily created by combining eigen_analyse_vectors with lapply. Each element of the input list should correspond to the eigen decomposition results for a given genome window.

null_vectors

A list of NULL allele frequency change vector matrices as output by calc_AF_vectors() with null_perms set to a numeric value. This is only necessary if wanting to calculate and plot p.values.

Value

Matrix of p-values for each window (rows) for each eigenvector (columns)


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