powered by
GWAS_data
Creates a GWAS_data object from a tibble or data-frame of GWAS results.
GWAS_data(dat, keep_rownames_as = NULL)
A GWAS_data object, i.e. a tibble.
Tibble, results from a GWAS analysis. See Details.
Character, the name of the column in which to save the rownames of the input data-frame. Default value is NULL, i.e. rownames will be discarded.
NULL
The input data should have one row per marker, and at least the following columns:
chromosome: character column, chromosome on which the marker is located.
chromosome
position: numeric, the physical position of the marker along the chromosome (in bp).
position
score or padj: numeric, the GWAS score or adjusted p-value of the marker. If column score column is missing, will be constructed as -log10(padj).
score
padj
-log10(padj)
x <- get_example_data() GWAS_data(x[["GWAS"]])
Run the code above in your browser using DataLab