View source: R/input_data_constructors.R
GWAS_data | R Documentation |
GWAS_data
objectCreates a GWAS_data
object from a tibble or data-frame of GWAS results.
GWAS_data(dat, keep_rownames_as = NULL)
dat |
Tibble, results from a GWAS analysis. See Details. |
keep_rownames_as |
Character, the name of the column in which to save the
rownames of the input data-frame. Default value is |
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.
position
: numeric, the physical position of the marker along the chromosome (in bp).
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)
.
A GWAS_data
object, i.e. a tibble.
x <- get_example_data() GWAS_data(x[["GWAS"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.