
Extracts information from GWASpoly output
Source:R/gwaspoly_helper_functions.R
GWAS_data_from_gwaspoly.RdExtracts GWAS results and chromosome length from GWASpoly output.
Arguments
- gwaspoly_output
A
GWASpoly.fittedorGWASpoly.threshobject (returned byGWASpoly::GWASpoly()orGWASpoly::set.threshold()functions).- traits
Character vector, traits for which GWAS results should be extracted. If
NULL(default value), all traits present are considered.- models
Character vector, genetic models for which GWAS results should be extracted. If
NULL(default value), all genetic models present are considered.
Value
A list with the following elements:
gwas_data_list: A named list ofGWAS_dataobjects, giving the markers score for each possible trait/genetic model combination. The names of the list are in the formtrait (genetic model).gwas_data_thr_list: if the input data is aGWASpoly.threshobject (from theGWASpoly::set.threshold()function), a named list ofGwAS_data_thr, with the significant markers score for each possible trait/genetic model combination. The names of the list are in the formtrait (genetic model).chrom_length: A tibble with one row per chromosome, giving the length (in bp) of each chromosome.