View source: R/effects-evaluation.R
This function takes GWAS results from the dive_ functions of snpdiver that create FBM of univariate GWAS effects. It creates a dataframe from these results suitable for an Upset plot, containing only the rows/SNPs significant in at least one univariate GWAS at the -log10p threshold specified.
1 | big_upset_df(effects, thr = 7, quantile = NA, metadata, ncores = nb_cores)
|
effects |
fbm created using 'dive_phe2effects' or 'dive_phe2mash'. Saved under the name "gwas_effects_suffix.rds" and can be loaded into R using the bigstatsr function "big_attach". |
thr |
Numeric. Threshold above which SNP/row is kept for comparisons. |
quantile |
Numeric. Top quantile/percentile to keep for each GWAS for comparisons. |
metadata |
Metadata created using 'dive_phe2effects' or 'dive_phe2mash'. Saved under the name "gwas_effects_suffix_associated_metadata.csv". |
ncores |
Optional integer to specify the number of cores to be used for parallelization. You can specify this with bigparallelr::nb_cores(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.